• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / mcp / 33731279743
96%

Build:
DEFAULT BRANCH: main
Ran 03 Sep 2026 08:04AM UTC
Jobs 1
Files 34
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Sep 2026 08:03AM UTC coverage: 96.466% (-0.1%) from 96.592%
33731279743

push

github

web-flow
feat(mcp): add branch cost confirmation elicitation (#394)

Stacked on [#391](https://github.com/supabase/mcp/pull/391). Review that
first. This is part of
[AI-1091](https://linear.app/supabase/issue/AI-1091/ship-form-mode-cost-confirmation-stage-a-supabasemcp).

## What kind of change does this PR introduce?

Feature: add form-mode cost confirmation to `create_branch`.

## What is the current behavior?

#391 provides the shared confirmation codec/verifier, `ServerContext`,
result passthrough, and project flow. Branch creation still uses the
existing hash validation.

## What is the new behavior?

Modern form clients can call `create_branch` without `confirm_cost_id`.
They receive an action-only, property-less prompt for **$0.01344/hr**
(about **$9.68 over 30 days**).

Acceptance creates the branch from signed arguments. Missing responses
and changed costs re-prompt. A wrong-tool state or changed arguments
fail. Decline and cancel create no branch.

Capability-free and URL-only clients keep hash validation. A supplied
legacy ID cannot bypass the capable-client flow. Project-scoped
injection works, and existing output fields such as `with_data` remain.

## How to Review

1. **Server and shared state**
   - `packages/mcp-server-supabase/src/server.ts`
   - `packages/mcp-server-supabase/src/tools/cost-confirmation.ts`

2. **Branch handler and pricing**
   - `packages/mcp-server-supabase/src/tools/branching-tools.ts`
   - `packages/mcp-server-supabase/src/pricing.ts`

3. **Behavioral coverage**
   - `packages/mcp-server-supabase/src/server.test.ts`
- Inspect the capable, legacy, argument-binding, and project-scoped
paths.

- [ ] Is `create_branch` enabled only through the intended server path?
- [ ] Does the discriminated state bind project ID, branch name, and
`BranchCost`?
- [ ] Do capable clients always use elicitation, even with a legacy ID?
- [ ] Do accept, decline, cancellation, wrong-tool, and argument-change
outcomes look correct?

## Verification... (continued)

439 of 473 branches covered (92.81%)

Branch coverage included in aggregate %.

126 of 128 new or added lines in 3 files covered. (98.44%)

21 existing lines in 1 file now uncovered.

3273 of 3375 relevant lines covered (96.98%)

58.32 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
97.73
0.43% packages/mcp-server-supabase/src/tools/branching-tools.ts

Coverage Regressions

Lines Coverage ∆ File
21
95.1
-2.51% packages/mcp-server-supabase/src/tools/account-tools.ts
Jobs
ID Job ID Ran Files Coverage
1 33731279743.1 03 Sep 2026 08:04AM UTC 34
96.47
GitHub Action Run
Source Files on build 33731279743
  • Tree
  • List 34
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #33731279743
  • 867a1609 on github
  • Prev Build on main (#33669055202)
  • Next Build on main (#33748692782)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc