• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / mcp / 45363703973
98%

Build:
DEFAULT BRANCH: main
Ran 24 Nov 2026 09:19AM UTC
Jobs 1
Files 49
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 Nov 2026 09:16AM UTC coverage: 98.158% (+0.001%) from 98.157%
45363703973

push

github

web-flow
fix(mcp): confirm UPDATEs without WHERE that use inheritance syntax (#565)

## What kind of change does this PR introduce?

Bug fix

## What is the current behavior?

Fixes #564

This is the follow-up named in the review of #524. `execute_sql` and
`apply_migration` ask for confirmation before an `UPDATE` without
`WHERE`, but not when the table is written `films*` or `ONLY (films)`.
The update runs and changes every row.

Postgres spells the target of an `UPDATE` four ways (`relation_expr` in
`gram.y`): `t`, `t *`, `ONLY t` and `ONLY (t)`.
`updateWithoutWhereRegex` matches only the first and the third, so the
other two never reach the `WHERE` check.

## What is the new behavior?

`updateWithoutWhereRegex` matches all four. Whitespace around `*` and
the parentheses is optional, as it is in Postgres.

| query | before | after |
| ----- | ------ | ----- |
| `update public.films* set id = 2` | runs | asks |
| `update films * as f set id = 2` | runs | asks |
| `update only (films) set id = 2` | runs | asks |
| `update only(public.films)f set id = 2` | runs | asks |
| `explain analyze update films* set id = 2` | runs | asks |
| any of the above with `where id = 1` | runs | runs |

`run_notebook` already asks before any cell that isn't a plain read, and
its prompt now counts these statements as destructive. No change to tool
names, descriptions, or input and output schemas.

Not covered: the spellings under Additional context, which miss for
other reasons. `UPDATE ONLY t * ...` isn't valid Postgres but now
matches, so the server asks and Postgres then rejects the statement.

#426 plans a parser for this check, and the regex stays on as its
fallback (#532), so the fix still applies once the parser lands.

## How to Review

1. **UPDATE check**
   - `packages/mcp-server-supabase/src/tools/destructive-sql.ts`
- `updateWithoutWhereRegex` is now built from named parts, like
`directDropColumnRegex`. `updateIdentifier` and `updateTable` are the
old sub-patterns, unch... (continued)

1340 of 1388 branches covered (96.54%)

Branch coverage included in aggregate %.

7 of 7 new or added lines in 1 file covered. (100.0%)

6279 of 6374 relevant lines covered (98.51%)

297.17 hits per line

Jobs
ID Job ID Ran Files Coverage
1 45363703973.1 24 Nov 2026 09:19AM UTC 49
98.16
GitHub Action Run
Source Files on build 45363703973
  • Tree
  • List 49
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #45363703973
  • 687b3eee on github
  • Prev Build on main (#45348374565)
  • Next Build on main (#45366330996)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc