Repository navigation
fix(mcp): clarify cost and deploy tool descriptions for OpenAI scanner - #467
Merged
barryroodt merged 3 commits intoOct 12, 2026
Merged
Conversation
Coverage Report for CI Build 38254924416Coverage remained the same at 96.995%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
barryroodt
marked this pull request as ready for review
October 12, 2026 12:53
raulb
approved these changes
Oct 12, 2026
Merged
barryroodt
added a commit
that referenced
this pull request
Oct 13, 2026
…branch (#468) ## What kind of change does this PR introduce? This fixes a double cost confirmation on `create_project` and `create_branch`, a follow-up to #467. Refs #466, AI-1303. ## What is the current behavior? Since #467, the tool descriptions tell the model the user must agree to the cost first. So form-capable clients like Claude Code ask in chat, then show the server's cost form, and the user confirms *twice*. ## What is the new behavior? Every client gets the same description: call the tool without `confirm_cost_id` (unless required) and don't ask about cost in chat. The server then shows its cost form, or returns the steps to get a confirmation ID. It has to be one description because Codex reads OpenAI's cached tool snapshot, which a scanner without forms took, but Codex supports forms at runtime. A missing ID now returns those steps (`get_cost` -> `confirm_cost` -> retry with its `confirmation_id` as `confirm_cost_id`) where it used to return the opaque hash-mismatch error. `create_project` also mentions that a $0 project skips the form. No schema changes. ## How to Review Paths are under `packages/mcp-server-supabase/src/`. 1. **Shared description and missing-ID message:** `tools/confirmation.ts` 2. **Tool descriptions and missing-ID guard:** `tools/account-tools.ts`, `tools/branching-tools.ts` 3. **Tests:** `server.account.test.ts`, `server.branching.test.ts` ## Verification I tested on supabase.green with a local HTTP server from this branch and Claude Code. Creating a project and a branch each showed a single cost form, and the server log shows no `get_cost`/`confirm_cost` calls. ## Additional context The scanner-facing text changes, so OpenAI will likely re-review it.
barryroodt
pushed a commit
that referenced
this pull request
Oct 14, 2026
🤖 I have created a release *beep* *boop* --- <details><summary>mcp-utils: 0.9.0</summary> ## [0.9.0](mcp-utils-v0.8.0...mcp-utils-v0.9.0) (2026-10-14) ### Features * **mcp-utils:** add bounded request lifecycle observations ([#427](#427)) ([b11d62b](b11d62b)) </details> <details><summary>mcp-server-supabase: 0.14.0</summary> ## [0.14.0](mcp-server-supabase-v0.13.0...mcp-server-supabase-v0.14.0) (2026-10-14) ### Features * **advisors:** add health advisor support ([#420](#420)) ([8a26508](8a26508)) * **mcp-server-supabase:** add bounded cost lifecycle observations ([#428](#428)) ([657d1f3](657d1f3)) * **mcp-server-supabase:** add destructive SQL observations ([#455](#455)) ([4595698](4595698)) ### Bug Fixes * **mcp:** clarify cost and deploy tool descriptions for OpenAI scanner ([#467](#467)) ([1f9da03](1f9da03)) * **mcp:** stop double cost confirmation on create_project and create_branch ([#468](#468)) ([3c3b1fc](3c3b1fc)) </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.
What kind of change does this PR introduce?
Bug fix, but it only changes tool descriptions.
What is the current behavior?
OpenAI's reworked plugin dashboard runs a new automatic scanner. It flagged 4 of our tools with "This tool update needs further review before it can go live" and gave no reason (thread).
create_project/create_branchhave held updates. The only change in the held version is thatconfirm_cost_idis no longer required, which came from the form-elicitation work (feat(mcp): add project cost confirmation elicitation #391, feat(mcp): add branch cost confirmation elicitation #394, feat(mcp): hide legacy cost tools from form-capable clients #411). The scanner connects without form elicitation to a server that has it configured, so it sees the optional field.confirm_cost/deploy_edge_functionare flagged on their live definitions, which we didn't change. So the scanner is re-reviewing tools it already approved.The held update breaks Codex users, who can't create projects through the plugin. Codex validates against the old live schema, which requires
confirm_cost_id, but our server leaves that field out for form-capable clients and rejects it (AI-1303, #466). Once OpenAI approves the held update, Codex's schema matches ours again.The scanner gives no reason, so this is our read. The held change looks like a weaker cost safeguard explained in protocol jargon, and neither create tool says it makes a billed resource.
confirm_costsays "Ask the user to confirm" but only hashes its input, which goes against OpenAI's descriptions-that-match-behavior guideline.deploy_edge_functionnever said a redeploy replaces the live function, and itsverify_jwttext used SHOULD ALWAYS/ONLY instructions.What is the new behavior?
This PR only changes descriptions. The schemas, required fields and annotations stay the same.
create_project/create_branchdescriptions now say the resource is billed and the user has to agree to the cost first.confirm_cost_iduses one shared description fromtools/confirmation.ts, without the elicitation jargon. It carries theget_cost→confirm_coststeps, so only clients that receive the field see them. Form-capable clients never get the field, and thecreate_*descriptions no longer mention the hidden cost tools.confirm_costnow says it returns a confirmation ID for the quoted cost, and that it should only be called after the user explicitly agrees.deploy_edge_functionnow says a deploy replaces the live function and serves it publicly right away. I rewroteverify_jwtas plain guidance and leftopenWorldHint: falseon purpose.How to Review
packages/mcp-server-supabase/src/tools/confirmation.ts,account-tools.ts,branching-tools.tsconfirm_costdescriptions match what the code does.packages/mcp-server-supabase/src/tools/edge-function-tools.tsReview questions
openWorldHint: falsestill right fordeploy_edge_function?Verification
I dumped
tools/listbefore and after for three client shapes: no elicitation, elicitation configured with a client that doesn't support forms (what the scanner sees), and a form-capable client. With thedescriptionkeys removed, the before and after JSON is identical for all three. Typecheck, Biome and the unit suite pass. No tests check this wording.Additional context
After release I'll hit Rescan in the OpenAI dashboard, and only Appeal if the tools are still flagged, since an appeal pauses scans. If they're still flagged, we'll also ask #partner-openai-supabase for more detail.
Refs #466, AI-1303