Skip to content

chore: prepare update to the stateless protocol#327

Draft
raulb wants to merge 3 commits into
mainfrom
raulb/spike-mcp-v2
Draft

chore: prepare update to the stateless protocol#327
raulb wants to merge 3 commits into
mainfrom
raulb/spike-mcp-v2

Conversation

@raulb

@raulb raulb commented Jul 9, 2026

Copy link
Copy Markdown
Member

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/sdk to 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-postgrest

What is the current behavior?

Packages depend on @modelcontextprotocol/sdk@^1.25.2 (pre-2026-07-28). mcp-utils registers handlers against Zod schemas via the low-level Server

What is the new behavior?

Packages build and pass on the v2 beta.

Additional context

  • Mechanical migration. v2 keeps the low-level Server + Transport API we rely on.
  • v1→v2 delta: a stdio server exiting mid-init now throws 'Connection closed' instead of 'MCP error -32000'.
  • SDK-package upgrade only . It doesn't yet enable the new protocol at any HTTP host (MRTR / stateless serving come next, in mgmt-api). Versions pinned exactly (beta).

@raulb raulb self-assigned this Jul 9, 2026
@raulb raulb changed the title chore: update to mcp v2 chore: update to the stateless protocol Jul 9, 2026
@coveralls

coveralls commented Jul 9, 2026

Copy link
Copy Markdown

Coverage Report for CI Build 29101914124

Coverage remained the same at 96.243%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 2820
Covered Lines: 2735
Line Coverage: 96.99%
Relevant Branches: 347
Covered Branches: 313
Branch Coverage: 90.2%
Branches in Coverage %: Yes
Coverage Strength: 41.36 hits per line

💛 - Coveralls

@raulb raulb changed the title chore: update to the stateless protocol chore: prepare update to the stateless protocol Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants