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

supabase / mcp / 44155886473
98%

Build:
DEFAULT BRANCH: main
Ran 17 Nov 2026 07:13PM UTC
Jobs 1
Files 49
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

17 Nov 2026 07:11PM UTC coverage: 97.797% (+0.07%) from 97.731%
44155886473

push

github

web-flow
test(mcp-server-supabase): make list_tables system schema assertions meaningful (#554)

## What kind of change does this PR introduce?

Test fix. No runtime code changes.

## What is the current behavior?

Closes #553 and #555.

`listing all tables excludes system schemas` in
`packages/mcp-server-supabase/src/server.database.test.ts` passes even
when the system-schema filter is removed from `listTablesSql`. There are
two causes:

1. **It never reaches the code it covers.** The test calls `list_tables`
without `schemas`, so the tool uses its `["public"]` default. The branch
that excludes `SYSTEM_SCHEMAS` only runs for `schemas: []`, as the
parameter description says.
2. **Its assertions cannot fail.** This is the cause #553 reports. The
negated `expect.arrayContaining(...)` is compared against the `{ tables
}` result object, not an array, and it matches on a `schema` key.
Compact tables don't have that key, because the schema is part of the
qualified `name`.

## What is the new behavior?

- The test calls `list_tables` with `schemas: []`.
- It asserts that no qualified name in `result.tables` starts with
`pg_catalog.`, `information_schema.`, `pg_toast.` or
`_timescaledb_internal.`, covering every `SYSTEM_SCHEMAS` entry.
- PGlite has no TimescaleDB, so the test creates
`_timescaledb_internal.test_3`; otherwise that assertion would pass
vacuously.
- It creates tables in `public` and in a custom `test` schema and
asserts that both are returned, so an empty or public-only result can't
pass.

## How to Review

1. **Test**
- `packages/mcp-server-supabase/src/server.database.test.ts`, the
`listing all tables excludes system schemas` case
- Check that it now exercises the `schemas: []` branch of
`listTablesSql` in `src/pg-meta/index.ts`.

**Review questions**

- [ ] Does the test cover the observable contract (system schemas hidden
for `schemas: []`) and not implementation details?
- [ ] All four `SYSTEM_SCHEMAS` entries are listed explicitly rather
than impor... (continued)

1316 of 1365 branches covered (96.41%)

Branch coverage included in aggregate %.

6187 of 6307 relevant lines covered (98.1%)

293.57 hits per line

Jobs
ID Job ID Ran Files Coverage
1 44155886473.1 17 Nov 2026 07:13PM UTC 49
97.8
GitHub Action Run
Source Files on build 44155886473
  • Tree
  • List 49
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #44155886473
  • 854980b7 on github
  • Prev Build on main (#44151770059)
  • Next Build on main (#44361702938)
  • 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