Skip to content

Migrate outbound MCP client to SDK v2 (spec 2026-07-28) - #1591

Draft
RhysSullivan wants to merge 1 commit into
mcp-sdk-floorsfrom
mcp-client-v2
Draft

Migrate outbound MCP client to SDK v2 (spec 2026-07-28)#1591
RhysSullivan wants to merge 1 commit into
mcp-sdk-floorsfrom
mcp-client-v2

Conversation

@RhysSullivan

Copy link
Copy Markdown
Collaborator

Moves packages/plugins/mcp/src/sdk/ from @modelcontextprotocol/sdk v1 to @modelcontextprotocol/client/core 2.0.0, so outbound connections can speak MCP 2026-07-28 while keeping full legacy interop.

  • Streamable HTTP connections negotiate the era automatically (versionNegotiation: auto); forced-SSE and stdio keep the SDK legacy default (SSE is legacy-only; stdio spawns per call).
  • The endpoint shape probe advertises 2025-11-25 and adds a server/discover fallback for 2026-07-28-only servers; a transport failure on the fallback keeps the primary probe verdict.
  • Transport errors classify via v2 types (SdkHttpError.status, SseError.code, InsufficientScopeError) instead of matching SDK-internal message strings; remaining message matches re-verified against the installed v2 source.
  • Elicitation and tools/list_changed handlers use v2 method-string registration; accepted elicit content is decoded into the v2 content shape.
  • src/testing/ (the public v1 test server) intentionally stays on SDK v1 until the server-side migration; v1 and v2 coexist under different package names.

Stacked on #1590.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 14, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
executor-marketing 11295eb Commit Preview URL

Branch Preview URL
Aug 14 2026, 01:46 PM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 14, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
executor-cloud 11295eb Aug 14 2026, 01:47 PM

@github-actions

Copy link
Copy Markdown
Contributor

Cloudflare preview

Console https://executor-preview-pr-1591.executor-e2e.workers.dev
MCP https://executor-preview-pr-1591.executor-e2e.workers.dev/mcp
Deployed commit 11295eb

Sign-in is Cloudflare Access (one-time PIN to an allowed email). The preview has its own database and encryption key; it is destroyed when this PR closes.

@pkg-pr-new

pkg-pr-new Bot commented Aug 14, 2026

Copy link
Copy Markdown

Open in StackBlitz

@executor-js/cli

npm i https://pkg.pr.new/@executor-js/cli@1591

@executor-js/config

npm i https://pkg.pr.new/@executor-js/config@1591

@executor-js/execution

npm i https://pkg.pr.new/@executor-js/execution@1591

@executor-js/sdk

npm i https://pkg.pr.new/@executor-js/sdk@1591

@executor-js/codemode-core

npm i https://pkg.pr.new/@executor-js/codemode-core@1591

@executor-js/runtime-quickjs

npm i https://pkg.pr.new/@executor-js/runtime-quickjs@1591

@executor-js/plugin-file-secrets

npm i https://pkg.pr.new/@executor-js/plugin-file-secrets@1591

@executor-js/plugin-graphql

npm i https://pkg.pr.new/@executor-js/plugin-graphql@1591

@executor-js/plugin-keychain

npm i https://pkg.pr.new/@executor-js/plugin-keychain@1591

@executor-js/plugin-mcp

npm i https://pkg.pr.new/@executor-js/plugin-mcp@1591

@executor-js/plugin-onepassword

npm i https://pkg.pr.new/@executor-js/plugin-onepassword@1591

@executor-js/plugin-openapi

npm i https://pkg.pr.new/@executor-js/plugin-openapi@1591

executor

npm i https://pkg.pr.new/executor@1591

commit: 11295eb

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.

1 participant