chore: prepare update to the stateless protocol - #327
Conversation
Coverage Report for CI Build 29822337775Coverage remained the same at 96.336%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
The hide-tools test added in #334 imports from the v1 monolithic SDK (@modelcontextprotocol/sdk), which this branch removes. Port it to the v2 client package and its typed callTool result, matching server.test.ts.
|
Following up on the next steps you left in the catchup notes while you're out, I went ahead with the regression-check half of the ship-strategy question. Pushed two commits: a merge of latest main plus one small test fix. Plain push, no force, your commits are untouched. The merge was textually clean, but #334 (hide tools) landed on main with one semantic break against this branch. Its new Results on the merged branch:
Two more small things I noticed along the way:
None of this blocks anything, it just answers the regression half of your open question. From what I can see the SDK swap behaves identically on top of latest main, so merging this independently looks safe once CI confirms the e2e runs. We still want the merge-vs-rebase call and undrafting to be your deliberate call rather than something decided while you're away, so I'll leave it here. Very open to redoing this as a rebase instead if you prefer that history 🙂 |
What kind of change does this PR introduce?
Start updating to the stateless Protocol https://blog.modelcontextprotocol.io/posts/2026-07-28-release-candidate/
Part of https://linear.app/supabase/issue/AI-894/spike-estimate-work-to-support-the-2026-07-28-mcp-spec
Migrates the three published packages from the v1 monolithic
@modelcontextprotocol/sdkto the v2 beta SDK (@modelcontextprotocol/server+@modelcontextprotocol/client,2.0.0-beta.2), which implements the 2026-07-28 spec:@supabase/mcp-utils@supabase/mcp-server-supabase@supabase/mcp-server-postgrestWhat is the current behavior?
Packages depend on
@modelcontextprotocol/sdk@^1.25.2(pre-2026-07-28).mcp-utilsregisters handlers against Zod schemas via the low-levelServerWhat is the new behavior?
Packages build and pass on the v2 beta.
Additional context
Server+TransportAPI we rely on.'Connection closed'instead of'MCP error -32000'.