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

supabase / mcp / 45635067618
98%

Build:
DEFAULT BRANCH: main
Ran 25 Nov 2026 02:34PM UTC
Jobs 1
Files 50
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

25 Nov 2026 02:31PM UTC coverage: 98.389% (+0.003%) from 98.386%
45635067618

push

github

web-flow
fix(mcp-server-supabase): skip cost confirmation for $0 projects on clients without forms (#608)

## What kind of change does this PR introduce?

Bug fix

## What is the current behavior?

A free org on a client without form support (ChatGPT and most others)
has to "confirm" a $0 project:

1. `create_project` fails with "first confirm the cost"
2. `get_cost` returns $0
3. `confirm_cost` with $0
4. `create_project` again with the ID, and it works

Some agents get lost in that loop. In the last 3 weeks about 4.5K users
never got a project because of it. It also logs ~26K
`confirmation_required` errors a week, 89% of them on free orgs where
the cost is $0.

Form-capable clients already skip confirmation when the cost is $0.

## What is the new behavior?

Clients without forms get the same rule: if the next project costs $0,
`create_project` creates it on the first call. Paid projects still need
`confirm_cost_id`, unchanged.

If cost confirmation isn't configured, the schema still requires
`confirm_cost_id`, so that path doesn't change.

## How to Review

1. **Legacy path in `create_project`**
   - `packages/mcp-server-supabase/src/tools/account-tools.ts`
- The $0 check now runs before the missing or mismatched
`confirm_cost_id` checks, and records `bypass` / `zero_cost` like the
form-capable path.

2. **Tests**
- `packages/mcp-server-supabase/src/server.account.test.ts`: new $0
cases (no ID, stale ID). The mismatch test moved to a paid org.
- `packages/mcp-server-supabase/src/server.functions.test.ts`: the
URL-only legacy-lane test moved to a paid org, so it still exercises the
confirmation steps.

**Review questions**

- [ ] Is it fine that a wrong `confirm_cost_id` is ignored when the cost
is $0? Same as the form-capable path.
- [ ] Do paid projects still always need confirmation?

## Verification

- `CI=1 pnpm vitest run --project unit src/` in
`packages/mcp-server-supabase`: 976 passed
- `tsc --noEmit` and `biome check` are clean
- Manual, on staging... (continued)

1427 of 1478 branches covered (96.55%)

Branch coverage included in aggregate %.

12 of 12 new or added lines in 1 file covered. (100.0%)

6636 of 6717 relevant lines covered (98.79%)

302.31 hits per line

Jobs
ID Job ID Ran Files Coverage
1 45635067618.1 25 Nov 2026 02:34PM UTC 50
98.39
GitHub Action Run
Source Files on build 45635067618
  • Tree
  • List 50
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #45635067618
  • 50cfc370 on github
  • Prev Build on main (#45613772375)
  • Next Build on main (#45652783304)
  • 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