Repository navigation
feat: mark client-caused tool errors as ToolCallerError - #480
Merged
Merged
Conversation
commit: |
Coverage Report for CI Build 39782966802Warning No base build found for commit Coverage: 97.56%Details
Uncovered Changes
Coverage RegressionsRequires a base build to compare against. How to fix this → Coverage Stats💛 - Coveralls |
Rodriguespn
force-pushed
the
ai-1356-tool-caller-error
branch
from
October 22, 2026 12:59
d01feb6 to
4db23bd
Compare
Rodriguespn
changed the base branch from
main
to
ai-1356-regen-mgmt-api-types
October 22, 2026 12:59
Rodriguespn
force-pushed
the
ai-1356-tool-caller-error
branch
from
October 22, 2026 13:00
4db23bd to
f22e305
Compare
Rodriguespn
added a commit
that referenced
this pull request
Oct 22, 2026
The Management API spec added two Realtime advisor lint names, `realtime_authorization_timeouts` and `realtime_postgres_changes_spike`, to the lint `name` enum. This updates `V1ProjectAdvisorsResponse_Output` in `management-api/types.ts` and both lint unions in `management-api-v2/types.ts`. It fixes the stale-types `check` failure on #480. Refs AI-1356
Throw ToolCallerError for missing or mismatched confirm_cost_id in create_project/create_branch and for invalid GraphQL queries, and export isToolCallerError, which checks a Symbol.for brand so hosts can recognize caller errors across package copies. Refs AI-1356 Co-authored-by: Claude Opus 5.5 <[email protected]>
Throw ToolCallerError for every read-only mode denial, and brand only the caller's GraphQL query parse and validation errors so a malformed server schema stays a server fault. Check that onToolCall receives the branded error and that the brand matches across the packed CJS and ESM builds. Refs AI-1356
Rodriguespn
force-pushed
the
ai-1356-tool-caller-error
branch
from
October 22, 2026 14:00
f22e305 to
876598f
Compare
Rodriguespn
changed the base branch from
ai-1356-regen-mgmt-api-types
to
main
October 22, 2026 14:00
Rodriguespn
marked this pull request as ready for review
October 22, 2026 14:03
barryroodt
approved these changes
Oct 22, 2026
Merged
Rodriguespn
pushed a commit
that referenced
this pull request
Oct 29, 2026
🤖 I have created a release *beep* *boop* --- <details><summary>mcp-server-supabase: 0.15.0</summary> ## [0.15.0](mcp-server-supabase-v0.14.0...mcp-server-supabase-v0.15.0) (2026-10-29) ### Features * `submit_feedback` and `delete_feedback` tools ([#474](#474)) ([f50318a](f50318a)) * mark client-caused tool errors as ToolCallerError ([#480](#480)) ([4a619c1](4a619c1)) * **mcp-server-supabase:** detect instant elicitation cancels ([#483](#483)) ([5ad1a2a](5ad1a2a)) ### Bug Fixes * **mcp-server-supabase:** return a tool error when a confirmation expires ([#490](#490)) ([5ab9a98](5ab9a98)) * **mcp-server-supabase:** use POSIX path resolution for edge function filenames ([#393](#393)) ([55d2d24](55d2d24)) * **mcp:** don't split an UPDATE on a semicolon inside a dollar-quoted value ([#482](#482)) ([9f07410](9f07410)) * **mcp:** don't split an UPDATE on a semicolon inside a quoted value ([#459](#459)) ([6d93b50](6d93b50)) * **pg-meta:** order list_tables columns by ordinal position ([c242e63](c242e63)) * **pg-meta:** order primary key columns by key position and exclude INCLUDE columns ([#382](#382)) ([25d357c](25d357c)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: supabase-releaser[bot] <223506987+supabase-releaser[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New public exports from
@supabase/mcp-server-supabase:ToolCallerErrorandisToolCallerError(error). The guard checks aSymbol.for('supabase.mcp.callerError')brand instead ofinstanceof, so it works across two installed copies of the package and across its CJS and ESM builds. Platform imports both from the package root instead of keeping its own copy.Tool call errors classified as
ToolCallerError(traces sampled):create_project,create_branchconfirm_cost_idget_cost→confirm_coststep before creating.create_project,create_branchconfirm_cost_iddoesn't match the current costsearch_docssearch_docsvalidateSchemais on)create_project,pause_project,restore_project,create_branch,delete_branch,merge_branch,reset_branch,rebase_branch,apply_migration,deploy_edge_function,create_edge_function_secret,update_storage_config,create_notebook,submit_feedback,delete_feedbackCannot … in read-only mode.Everything else stays a plain
Errorand is kept, including Content API failures (fetch, response parse, upstream GraphQL errors, no data) and a malformed docs schema during validation, which is a server fault. Invalid fields in productionsearch_docsare left as plainErrorfor now: the production client doesn't validate locally, and mislabelling there only keeps an extra trace.Related: supabase/platform#40406, which keeps traces for every tool error that isn't a caller error and samples the ones that are.
AI disclosure: implemented with an AI agent (omp, Claude). Pedro Rodrigues is the accountable owner and reviews before merge.
Depends on: #481, which regenerates the Management API types that the
checkjob flags as stale. Rebase this PR after it merges.Refs AI-1356