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

supabase / mcp
98%

Build:
DEFAULT BRANCH: main
Repo Added 04 Jun 2026 09:07PM UTC
Token uvMUPKDvl4PRk4vi50UQ1IHvKAHoFiZeF regen
Build 642 Last
Files 49
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

LAST BUILD ON BRANCH main
branch: main
CHANGE BRANCH
x
Reset
Sync Branches
  • main
  • Rodriguespn/ai-1292-hide-branching-mcp
  • Rodriguespn/ai-1425-project-ref-length
  • Rodriguespn/ai-1429-1430-submit-feedback
  • Rodriguespn/ai-1431-explain-no-elicit
  • Rodriguespn/deprecate-mcp-server-postgrest
  • Rodriguespn/fix-publish-job-failure
  • Rodriguespn/mcp-agentcat-analytics-expanded
  • Rodriguespn/mcp-ui-host-vs-inspector
  • Rodriguespn/notebook-url-outputs
  • Rodriguespn/pin-hono-node-server
  • Rodriguespn/postgrest-deprecation-notice
  • add_security_md
  • ai-1356-regen-mgmt-api-types
  • ai-1356-tool-caller-error
  • als/mcp-sql-host-boundary
  • anthonylio/depr-698-explore-agent-feedback-capabilities-in-supabase-docs
  • barryroodt/ai-1044-dual-era-serving
  • barryroodt/ai-1091-hosted-cost-policy
  • barryroodt/ai-1091-stateless-elicitation-runtime
  • barryroodt/ai-1091-tool-policy-foundation
  • barryroodt/ai-1217-http-skip-elicitations
  • barryroodt/ai-1238-mcp-test-split
  • barryroodt/ai-1283-dollar-quoted-update-values
  • barryroodt/ai-1303-tool-descriptions-for-openai-scanner
  • barryroodt/ai-1328-detect-instant-elicitation-cancels-from-clients-that-answer
  • barryroodt/ai-1372-return-a-clear-confirmation-expired-tool-error-instead-of
  • barryroodt/ai-1438-per-flow-elicitation-ttl
  • barryroodt/ai-178-improve-mcp-db-tool-error-for-wrong-organization-selection
  • barryroodt/ai-651-support-edge-function-logs-in-supabase-mcp
  • barryroodt/docs-how-to-review-pr-guidance
  • barryroodt/fix-double-cost-confirmation
  • barryroodt/fix-packed-consumer-elapsed-ms
  • barryroodt/fix-password-flake
  • barryroodt/harden-packed-consumer-ci
  • barryroodt/mcp-elicitations-poc
  • barryroodt/mcp-tool-input-descriptions
  • barryroodt/release-firewall-fix
  • barryroodt/rls-post-execution-elicitation
  • barryroodt/search-knowledge-base-tool
  • barryroodt/tool-error-labels
  • chore/create-notebook-tool
  • chore/dep-firewall
  • chore/link-management-types-pr
  • chore/regenerate-management-api-types
  • chore/regenerate-management-api-v1-types
  • chore/split-schema-table-in-rls-advisory
  • ci/force-publish-workflow
  • ci/management-api-type-sync
  • claude/fix-edge-function-invalid-url
  • claude/mcp-query-logs-direct
  • claude/pin-mise-node-24
  • claude/shared-ttl-cache
  • claude/skills-over-mcp
  • content-api-url
  • etienne/sec-960
  • feat/bound-run-notebook-cost
  • feat/branch-cost-elicitation
  • feat/create-project-tools
  • feat/delete-notebook-tool
  • feat/destructive-sql-confirmation
  • feat/enable-notebook-write-run-tools
  • feat/hide-legacy-cost-tools
  • feat/hide-tools
  • feat/hosted-project-cost-elicitation
  • feat/list-tables-information-schema
  • feat/local-http-entry
  • feat/local-http-oauth
  • feat/local-oauth-resource-server
  • feat/logs-dialect
  • feat/mcp-apps-tooling
  • feat/mcp-observability-cost
  • feat/mcp-observability-destructive-sql
  • feat/mcp-observability-lifecycle
  • feat/mcp-observability-p1
  • feat/mcp-structured-output
  • feat/project-card-views
  • feat/query-block-agent-edits
  • feat/run-notebook-cells
  • feat/run-notebook-tool
  • feat/show-logs-view
  • feat/show-query-view
  • feat/show-row-view
  • feat/sql-classifier-interface
  • feat/sql-confirmation-classifier-interface
  • feat/url-mode-secret-collection
  • fix/branch-scope-enforcement
  • fix/delete-notebook-caller-error
  • fix/intent-based-server-instructions
  • fix/repo-transfer-urls
  • fix/scoped-legacy-branch-cost
  • fix/sql-confirmation-accept-only
  • fix/workflows
  • jordi/add-health-advisor-v2
  • jordi/add-management-v2-client
  • jordi/add-platform-api-client
  • jordi/debug-311-mcp-issues
  • jordi/debug-311-preview-head-checkout
  • joshenlim/ai-1240-mcp-add-functionality-for-listing-and-getting-notebooks
  • mattrossman/ai-1017-add-feedback-submission-and-deletion-to-mcp
  • mattrossman/ai-1136-group-lints-in-get_advisors-to-reduce-response-bloat
  • mattrossman/ai-1166-add-a-dev-http-server-to-mcp-package
  • mattrossman/ai-900-document-strategy-for-mcp-server-breaking-changes
  • pedrorodrigues/ai-1354-serve-notebook-tools-by-default-on-hosted-when
  • pedrorodrigues/ai-1377-hide-notebook-tools-from-toolslist-and-mcp-release-0150
  • prodrigues/add-agents-md
  • raulb/add-code-owners
  • raulb/fixes-281
  • raulb/minor-doc-update
  • raulb/minor-readme-update
  • raulb/spike-mcp-v2
  • release-please--branches--main

23 Nov 2026 08:23AM UTC coverage: 98.157% (+0.01%) from 98.146%
45138238505

push

github

web-flow
fix(mcp-server-supabase): keep a declined or cancelled SQL confirmation final (#581)

First PR in the stack replacing #454. Base: `main` (1/5).

## Why this changes

When `execute_sql` or `apply_migration` asks for confirmation, the
client sends a second tool call with the server-issued state and the
user’s answer. Today, only **Accept** skips a second SQL classification.
If the user clicks **Decline** or **Cancel**, the server checks the SQL
again before it honors that answer.

The current regex always gives the same answer for the same SQL. The
next PR makes the classifier replaceable, so a parser could flag a query
on the first call and a fallback could clear it on the second. Today,
that would run SQL the user just declined. #455 added observability and
a test that captures this behavior.

## What changes

The server checks that the signed state is valid and unexpired, then
matches it to the current tool, project ID and exact SQL text. For
`apply_migration`, the migration name must also match.

| Answer for a matching prompt | What the server does |
| --- | --- |
| Decline or Cancel | Returns the user’s answer immediately. It skips
classification and stops before executing the SQL. |
| No answer | Asks again, even if the classifier now clears the SQL. In
that case, the prompt says “This SQL was flagged for confirmation
earlier and still needs your approval.” |
| Accept | Runs the SQL, as it does today. |

A decline ends that call. The client can still send **Accept** for the
same prompt before the state expires. If the client changes the SQL, the
earlier answer doesn’t apply to the new query. The server classifies it
as before.

## Where to review

Start with `checkDestructiveSqlConfirmation`, which decides when to
classify the SQL. The updated tests show what happens when the
classifier changes its answer or throws after the first prompt. [SQL
confirmation
handling](https://github.com/supabase/mcp/blob/92be4920a/pac... (continued)

1340 of 1388 branches covered (96.54%)

Branch coverage included in aggregate %.

39 of 39 new or added lines in 2 files covered. (100.0%)

6274 of 6369 relevant lines covered (98.51%)

296.23 hits per line

Relevant lines Covered
Build:
Build:
6369 RELEVANT LINES 6274 COVERED LINES
296.23 HITS PER LINE
Source Files on main
  • Tree
  • List 49
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
45138238505 main fix(mcp-server-supabase): keep a declined or cancelled SQL confirmation final (#581) First PR in the stack replacing #454. Base: `main` (1/5). ## Why this changes When `execute_sql` or `apply_migration` asks for confirmation, the client sends a... push 23 Nov 2026 08:26AM UTC web-flow github
98.16
44810007099 main fix(mcp-ui): shared project card for create-project and create-branch (#578) Stacked on #573. Redesigns the `create_project` and `create_branch` views as one shared project card. ## What changed - **One card for both views.** `ProjectCard` show... push 20 Nov 2026 08:20PM UTC web-flow github
98.15
44744630036 main chore: release main (#572) :robot: I have created a release *beep* *boop* --- <details><summary>mcp-server-supabase: 0.19.0</summary> ## [0.19.0](https://github.com/supabase/mcp/compare/mcp-server-supabase-v0.18.0...mcp-server-supabase-v0.19.0... push 20 Nov 2026 02:44PM UTC web-flow github
98.14
44616441978 main refactor(mcp-ui): co-locate component CSS so views ship only what they import (#576) Stacked on #573 ## What kind of change does this PR introduce? Refactor (no intended change to rendered output; see Verification). ## What is the current beha... push 19 Nov 2026 09:15PM UTC web-flow github
98.14
44615957696 main feat(mcp apps): create project and create branch ui (#573) ## What kind of change does this PR introduce? Add MCP App views for create project and create branch ## What is the current behavior? No UI for either ## What is the new behavior? <... push 19 Nov 2026 09:12PM UTC web-flow github
98.14
44552740726 main chore: regenerate management API types (#579) Automatically generated by the [Sync Management API Types](https://github.com/supabase/mcp/actions/workflows/sync-management-api-types.yml) workflow. This regenerates the Management API types from th... push 19 Nov 2026 03:18PM UTC web-flow github
97.8
44361702938 main chore: regenerate management API types (#577) Automatically generated by the [Sync Management API Types](https://github.com/supabase/mcp/actions/workflows/sync-management-api-types.yml) workflow. This regenerates the Management API types from th... push 18 Nov 2026 05:45PM UTC web-flow github
97.8
44155886473 main test(mcp-server-supabase): make list_tables system schema assertions meaningful (#554) ## What kind of change does this PR introduce? Test fix. No runtime code changes. ## What is the current behavior? Closes #553 and #555. `listing all table... push 17 Nov 2026 07:13PM UTC web-flow github
97.8
44151770059 main fix(mcp-server-supabase): detect deno.jsonc as the default edge function import map (#559) ## What kind of change does this PR introduce? Bug fix ## What is the current behavior? Fixes #558. When `deploy_edge_function` is called without `impo... push 17 Nov 2026 06:51PM UTC web-flow github
97.73
44146712974 main chore(postgrest): stop releasing @supabase/mcp-server-postgrest (#569) Stops releasing `@supabase/mcp-server-postgrest` now that its final release (0.2.1, with the error-handling fix from #541 and the deprecation notice from #570) is out. Removal... push 17 Nov 2026 06:22PM UTC web-flow github
97.73
See All Builds (642)

Badge your Repo: mcp

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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