Repository navigation
fix(mcp): stop double cost confirmation on create_project and create_branch - #468
Conversation
Coverage Report for CI Build 38383712908Coverage decreased (-0.03%) to 96.961%Details
Uncovered ChangesNo uncovered changes found. Coverage Regressions4 previously-covered lines in 1 file lost coverage.
Coverage Stats
💛 - Coveralls |
raulb
left a comment
There was a problem hiding this comment.
@barryroodt Please, let's stop posting PR descriptions generated by AI.
The section "How to review" is clearly written by an LLM since it lists the modified files I can see already myself.
I would like to spend my time reading things that add value and are written by a human.
While most of the description has been generated by AI initially, I do read through and edit it before posting. I'm often torn between how much detail to leave in, since I'm aware that some people prefer to run the initial review through an agent first, vs leaving it broad and easier for humans to go through. That said, thanks for the review and the feedback, appreciated. |
|
@barryroodt All good. It's possible that I used the wrong example to voice my frustration, but I only want to make sure we all post content we do believe adds value. Every word / paragraph (here / Slack / anywhere else) counts toward the reader's / reviewer's time, and lately I've been frustrated by everyone's (general) lack of ability to summarize. I admit it's taking a toll on me. |
|
@raulb Totally understandable. On the converse side I'm finding the need to constantly review and summarise and double check everything coming out of these agents frustrating as well. It's tolling on both ends for sure. |
🤖 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>
What kind of change does this PR introduce?
This fixes a double cost confirmation on
create_projectandcreate_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 itsconfirmation_idasconfirm_cost_id) where it used to return the opaque hash-mismatch error.create_projectalso mentions that a $0 project skips the form. No schema changes.How to Review
Paths are under
packages/mcp-server-supabase/src/.tools/confirmation.tstools/account-tools.ts,tools/branching-tools.tsserver.account.test.ts,server.branching.test.tsVerification
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_costcalls.Additional context
The scanner-facing text changes, so OpenAI will likely re-review it.