Skip to content

chore: regenerate management API types - #481

Merged
Rodriguespn merged 1 commit into
mainfrom
ai-1356-regen-mgmt-api-types
Oct 22, 2026
Merged

Rodriguespn merged 1 commit into
mainfrom
ai-1356-regen-mgmt-api-types

Conversation

@Rodriguespn

@Rodriguespn Rodriguespn commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

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

@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 39782255078

Coverage remained the same at 97.541%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 5607
Covered Lines: 5500
Line Coverage: 98.09%
Relevant Branches: 1062
Covered Branches: 1005
Branch Coverage: 94.63%
Branches in Coverage %: Yes
Coverage Strength: 149.36 hits per line

💛 - Coveralls

@Rodriguespn
Rodriguespn merged commit b528090 into main Oct 22, 2026
5 checks passed
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants