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

supabase / mcp / 46589010438
98%

Build:
DEFAULT BRANCH: main
Ran 01 Dec 2026 06:17AM 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

01 Dec 2026 06:15AM UTC coverage: 98.267%. Remained the same
46589010438

push

github

web-flow
fix(mcp-server-supabase): accept us-west-2 in create_project region (#639)

## What kind of change does this PR introduce?

Bug fix.

## What is the current behavior?

Fixes #638

`create_project` checks `region` against the list in `src/regions.ts`.
That list has no `us-west-2` (West US, Oregon). So a call with `region:
"us-west-2"` fails input checks and never reaches the API.

The [docs regions
page](https://supabase.com/docs/guides/platform/regions) and the
Management API types in this repo both list `us-west-2`.

## What is the new behavior?

`us-west-2` is added to the list, next to `us-west-1`. `create_project`
accepts it and sends it to the API. The same list is used by
`projectCostStateSchema` and by `createProjectOptionsSchema`, so they
accept it too.

## How to Review

1. **The fix**
- `packages/mcp-server-supabase/src/regions.ts`: one new entry in
`AWS_REGION_CODES`.

2. **Tests**
- `packages/mcp-server-supabase/src/server.account.test.ts`: the `create
project` test now runs for `us-east-1` and `us-west-2`, with the same
full result check.

**Review questions**

- [ ] `ap-east-1` is in the API types but not on the docs regions page.
Should it be added too?
- [ ] Should this list come from the API types so it cannot fall behind
again?

## Verification

From the repo root:

```bash
pnpm --filter @supabase/mcp-server-supabase test:unit --run
pnpm --filter @supabase/mcp-server-supabase typecheck
pnpm format:check
```

- With the change: 36 files, 1053 tests passed.
- With only `regions.ts` reverted to main, `src/server.account.test.ts`
has 1 failed and 38 passed. The failure is `create project in
us-west-2`, with `Invalid option: expected one of
"us-west-1"|"us-east-1"|...`. `create project in us-east-1` passes.
- `typecheck` and `format:check`: clean.

Not tested: creating a real project in `us-west-2` through the API. That
would create a billed project. The tests use the repo's mock API.

1412 of 1473 branches covered (95.86%)

Branch coverage included in aggregate %.

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

6640 of 6721 relevant lines covered (98.79%)

2335.4 hits per line

Jobs
ID Job ID Ran Files Coverage
1 46589010438.1 01 Dec 2026 06:17AM UTC 50
98.27
GitHub Action Run
Source Files on build 46589010438
  • 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 #46589010438
  • 86bba258 on github
  • Prev Build on main (#46458383228)
  • Next Build on main (#46615825871)
  • 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