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

supabase / mcp / 47244603007
98%

Build:
DEFAULT BRANCH: main
Ran 04 Dec 2026 01:37AM UTC
Jobs 1
Files 56
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

04 Dec 2026 01:34AM UTC coverage: 98.271% (+0.02%) from 98.255%
47244603007

push

github

web-flow
feat(http): add bind address, allowed hosts, HTTP token and startup features to --http (#680)

`--http` only listens on `127.0.0.1` and only accepts localhost `Host`
headers, so a client in a Docker sandbox can't reach it. This adds
startup flags so evals
([supabase/evals#574](https://github.com/supabase/evals/pull/574)) can
start `mcp-server-supabase --http` directly instead of running a gateway
in front of it. The defaults are unchanged: loopback only, and the
client's bearer is the PAT.

```mermaid
flowchart LR
  agent["agent in sandbox"] -->|"Bearer run token¹"| http["mcp-server-supabase --http²"]
  http -->|"--access-token³"| api["Management API"]
```

¹ `--http-token` sets the bearer clients must send. The server compares
SHA-256 digests in constant time and returns 401 on a mismatch.
² `--bind-address` picks the listen address. `--allowed-host`
(repeatable) adds `Host` names besides localhost. A non-loopback bind
fails without `--http-token`.
³ With `--http-token`, the server calls the API with `--access-token` or
`SUPABASE_ACCESS_TOKEN`, so the client never sees the PAT.

`--features` and `--skip-elicitations` now work with `--http` and fix
those params for every request. A URL that also sets `features` or
`skip_elicitations` gets a 400.

```bash
mcp-server-supabase --http --port 0 --bind-address 0.0.0.0 \
  --allowed-host host.docker.internal --http-token "$RUN_TOKEN" \
  --access-token "$SUPABASE_ACCESS_TOKEN" --features docs,account --skip-elicitations create_branch
```

**Note:** the token is passed on argv, like `--access-token`.

## Verification

New tests in
[`local-http-entry.test.ts`](https://github.com/supabase/mcp/blob/Rodriguespn/ai-1475-http-startup-flags/packages/mcp-server-supabase/src/transports/local-http-entry.test.ts)
cover the extra allowed host, the token and access token split, startup
validation, and fixed features and skips (72/72 pass). A smoke run of
the built CLI with the flags above listened on `*:<port>`, returned ... (continued)

1633 of 1703 branches covered (95.89%)

Branch coverage included in aggregate %.

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

7288 of 7375 relevant lines covered (98.82%)

2244.58 hits per line

Jobs
ID Job ID Ran Files Coverage
1 47244603007.1 04 Dec 2026 01:37AM UTC 56
98.27
GitHub Action Run
Source Files on build 47244603007
  • Tree
  • List 56
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #47244603007
  • 6a35d3fb on github
  • Prev Build on main (#47199518607)
  • Next Build on main (#47302244595)
  • 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