Repository navigation
chore: regenerate management API types - #481
Merged
Merged
Conversation
Coverage Report for CI Build 39782255078Coverage remained the same at 97.541%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats💛 - Coveralls |
mattrossman
approved these changes
Oct 22, 2026
Rodriguespn
added a commit
that referenced
this pull request
Oct 22, 2026
New public exports from `@supabase/mcp-server-supabase`:
`ToolCallerError` and `isToolCallerError(error)`. The guard checks a
`Symbol.for('supabase.mcp.callerError')` brand instead of `instanceof`,
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):**
| Tool | Error | Why it's the client's error |
|---|---|---|
| `create_project`, `create_branch` | Missing `confirm_cost_id` | The
client skipped the `get_cost` → `confirm_cost` step before creating. |
| `create_project`, `create_branch` | `confirm_cost_id` doesn't match
the current cost | The client sent a confirmation for a different or
outdated cost. |
| `search_docs` | Query fails to parse | The client sent text that isn't
valid GraphQL. |
| `search_docs` | Query fails schema validation (only when
`validateSchema` is on) | The client asked for fields or types the docs
schema doesn't have. |
| `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_feedback` | `Cannot … in
read-only mode.` | The client called a write tool that read-only mode
hides from its tool list. |
Everything else stays a plain `Error` and 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 production `search_docs` are left as plain `Error` for
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 `check` job flags as stale. Rebase this PR after it merges.
Refs AI-1356
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
The Management API spec added two Realtime advisor lint names,
realtime_authorization_timeoutsandrealtime_postgres_changes_spike, to the lintnameenum.This updates
V1ProjectAdvisorsResponse_Outputinmanagement-api/types.tsand both lint unions inmanagement-api-v2/types.ts. It fixes the stale-typescheckfailure on #480.Refs AI-1356