Skip to content

Serve both MCP eras from the v2 stack on neutral hosts - #1606

Closed
RhysSullivan wants to merge 1 commit into
mcp-server-v2-cloudfrom
mcp-consolidate-neutral
Closed

Serve both MCP eras from the v2 stack on neutral hosts#1606
RhysSullivan wants to merge 1 commit into
mcp-server-v2-cloudfrom
mcp-consolidate-neutral

Conversation

@RhysSullivan

Copy link
Copy Markdown
Collaborator

First consolidation step: the neutral hosts (selfhost + local) now serve BOTH protocol eras from the SDK v2 stack — the v1 assembly is no longer used outside the Cloudflare hosts.

  • in-memory-session-store.ts builds sessions on the v2 WebStandardStreamableHTTPServerTransport + the v2 assembly (sessionful mode: apps capability and elicitation support follow the live initialize-negotiated state, preserving the cold-restore semantics).
  • Native elicitation for legacy clients rides the SDK's built-in legacy shim (inputRequired returns become real elicitation/create requests); native sessions use SSE responses as the shim requires, model/browser sessions keep JSON.
  • apps/local stdio moves to serveStdio — one process now serves legacy AND modern stdio clients (deferral removed).
  • selfhost drops its v1 SDK dependency entirely; local's is dev-only (compat tests).

Interop evidence (new tests): a real v1-SDK client against the consolidated store — initialize, tools/list with negotiated Apps tools, sessionCount() === 1 on reuse, and the full native-elicitation round-trip (elicitation/create emitted by the shim, response accepted, execution completes). stdio covers both a legacy v1 client and a modern-pinned v2 client.

Tests: 204 hosts/mcp + 72 local + 102 selfhost; no existing behavioral assertion changed.

Next: the cloud DO rewrite off McpAgent (deletes the 911-line agents patch), then removal of the v1 assembly and the V2 naming.

Stacked on #1604.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 16, 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 074a9be Aug 16 2026, 02:03 PM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 16, 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 074a9be Commit Preview URL

Branch Preview URL
Aug 16 2026, 02:02 PM

@github-actions

github-actions Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Cloudflare preview

Torn down — the PR is closed.

@pkg-pr-new

pkg-pr-new Bot commented Aug 16, 2026

Copy link
Copy Markdown

Open in StackBlitz

@executor-js/cli

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

@executor-js/config

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

@executor-js/execution

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

@executor-js/sdk

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

@executor-js/codemode-core

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

@executor-js/runtime-quickjs

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

@executor-js/plugin-file-secrets

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

@executor-js/plugin-graphql

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

@executor-js/plugin-keychain

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

@executor-js/plugin-mcp

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

@executor-js/plugin-onepassword

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

@executor-js/plugin-openapi

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

executor

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

commit: 074a9be

@RhysSullivan

Copy link
Copy Markdown
Collaborator Author

Folded into #1611 (single consolidated PR per review preference).

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