Serve MCP 2026-07-28 clients on the Cloudflare hosts - #1604
Closed
RhysSullivan wants to merge 1 commit into
Closed
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
executor-cloud | 3220892 | Aug 16 2026, 12:36 PM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
executor-marketing | 3220892 | Commit Preview URL Branch Preview URL |
Aug 16 2026, 12:35 PM |
Contributor
Cloudflare previewTorn down — the PR is closed. |
@executor-js/cli
@executor-js/config
@executor-js/execution
@executor-js/sdk
@executor-js/codemode-core
@executor-js/runtime-quickjs
@executor-js/plugin-file-secrets
@executor-js/plugin-graphql
@executor-js/plugin-keychain
@executor-js/plugin-mcp
@executor-js/plugin-onepassword
@executor-js/plugin-openapi
executor
commit: |
This was referenced Aug 16, 2026
Collaborator
Author
|
Folded into #1611 (single consolidated PR per review preference). |
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.
Final step of MCP spec 2026-07-28 serving: the Cloudflare hosts (executor-cloud and self-host-cloudflare) now speak the modern protocol. This is the endpoint modern clients hit in production.
Architecture — wire-stateless, DO-backed execution affinity:
McpAgentpath byte-for-byte;agentsstays at 0.17.3 + patch.tools/callmethods are served by a resource-cached stateless v2 handler in the worker — no DO touch.tools/callroutes into a Durable Object for execution affinity: fresh executes get anewUniqueId()DO running a DO-local v2 handler over the existing execution engine; a pause registersexecutionId → modern:<doId>in the execution-owner directory before returninginput_requiredwith signedrequestState.resumetool calls verify/extract theexecutionIdin the worker, look up the owner directory, enforce the same cross-bearer ownership contract as legacy (403 -32003), and forward to the owning DO. Tampered or expired state degrades to a DO-less server whose codec rejects (-32602) or whose engine reports the existingexecution_not_foundshape — no new error surfaces.execution_expiredoutcome legacy has today.Mcp-Param-<name>support), telemetry recordsmcp.client.protocol_versionfrom the modern envelope.Deployment prerequisite (before merge): both workers need the shared continuation-signing secret, ≥32 bytes, visible to worker + session DOs:
No generated fallback — the modern path fails loudly without it. Documented in both wrangler configs.
Tests: 74 hosts/cloudflare + 24 host-cloudflare + 244 cloud + 201 hosts/mcp. The 3 cloud failures in
org-api-key-revoke.node.test.tsreproduce identically on the parent branch (pre-existing/environmental; CI arbitrates).Stacked on #1602.