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

supabase / mcp / 45613601602
98%

Build:
DEFAULT BRANCH: main
Ran 25 Nov 2026 12:28PM UTC
Jobs 1
Files 49
Run time 2min
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 12:25PM UTC coverage: 98.363% (+0.007%) from 98.356%
45613601602

push

github

web-flow
fix(mcp-server-supabase): match Studio's notebook row_limit and clarify skip and blank-input messages (#593)

applyRowLimit now ignores semicolons inside literals via lexSql, and
treats a read-only CTE (`with … select`) as a select, the same way
Studio's applyAutoLimit does. Cells skipped after an oversized result
get their own reason instead of 'run result budget spent'. Blank
notebook SQL and names get explicit validation messages. tools/list is
unchanged.

## What kind of change does this PR introduce?

Bug fix. There are no changes to `tools/list`: tool names, descriptions,
and input/output schemas are byte-identical.

## What is the current behavior?

Fixes #595

1. **`row_limit` is silently ignored** for common SELECT shapes.
`applyRowLimit` counts every `;` with a regex over the raw text,
including ones inside string or `$$` literals, and it skips every CTE,
including read-only ones that Studio limits. Each cell below has
row_limit 5 (the `$$` cell has row_limit 3):

   | SQL | Rows returned |
   |---|---|
   | `select g from generate_series(1,50) g` | 5 |
   | `select g, 'a;b' as s from generate_series(1,50) g` | 50 |
| `with s as (select g from generate_series(1,50) g) select * from s` |
50 |
   | `select g, $$a;b$$ as body from generate_series(1,20) g` | 20 |

2. **After an oversized cell, later cells are reported as `"run result
budget spent"`**, even though about 998 KB of the budget was never used.
The cell ran fine on its own.
3. **`create_notebook` with whitespace-only SQL (`" "`)** fails with
`Too small: expected string to have >=1 characters`, because the schema
trims before checking length. That message is misleading for a
3-character input.

## What is the new behavior?

1. **Statement count:** `applyRowLimit` lexes the SQL with the existing
`lexSql`, so only `;` in code spans separates statements. A single
SELECT with `;` inside a string, E-string, quoted identifier or
dollar-quoted body now gets `limit N`. Unterminated SQL is retu... (continued)

1355 of 1403 branches covered (96.58%)

Branch coverage included in aggregate %.

36 of 36 new or added lines in 3 files covered. (100.0%)

6335 of 6415 relevant lines covered (98.75%)

310.63 hits per line

Jobs
ID Job ID Ran Files Coverage
1 45613601602.1 25 Nov 2026 12:28PM UTC 49
98.36
GitHub Action Run
Source Files on build 45613601602
  • Tree
  • List 49
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #45613601602
  • ad07f1b7 on github
  • Prev Build on main (#45601493603)
  • Next Build on main (#45613772375)
  • 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