feat(mcp): add dual-era 2026-07-28 transport support - #1562
Open
Schreezer wants to merge 4 commits into
Open
Conversation
Schreezer
marked this pull request as ready for review
August 12, 2026 16:11
Schreezer
force-pushed
the
feat/mcp-2026-07-28
branch
from
August 13, 2026 11:29
7a2c117 to
8578cd9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
executeandskillsImplementation
@modelcontextprotocol/sdkv1 for the existing legacy server and MCP Apps surfaceclient,core, andserverpackages only at the migration seamscreateMcpHandler(..., { legacy: "reject" })for the modern pathserver/discoverthrough theexecutor mcpstdio-to-daemon bridge, and retain era-aware legacy session recovery behaviorMCP_2026_07_28_ENABLED=falseas an inbound-only rollback switch; modern discovery returns a non-5xx protocol error so v2 auto negotiation can fall back to legacyReview loop
The same review sub-agent reviewed and re-reviewed the implementation through four rounds:
Verification
bun run lintbun run format:check@executor-js/host-mcp: typecheck and 195 tests@executor-js/plugin-mcp: typecheck and 131 tests, 29 skipped live-server cases, including real v1/v2 SDK negotiation, discovery, invocation, and stateless connection reuse@executor-js/cloudflare: typecheck and 66 tests, including the Durable Object lifecycle race coveragetools/list,execute, and legacy initialize compatibilityexecutor mcp: returned a complete 2026-07-28 discovery responseinput_required, and real v2-client rollback fallback to legacyThe workspace-wide typecheck is currently blocked in the untouched
@executor-js/integrations-registrypackage by missing Node type declarations. The workspace-wide test run reached 31 successful packages before the MCP Apps browser suite failed because/usr/bin/google-chromeis unavailable in the environment.Current scope boundary
executeandskillssurfaceexecutor mcpaccepts both eras: modern clients negotiate withserver/discoverbeforeinitialize, while legacy clients retain the existing initialize and broader tool surfaceReferences
Closes #1449