Host cloud MCP sessions on our own DO with the v2 stack - #1608
Closed
RhysSullivan wants to merge 2 commits into
Closed
Host cloud MCP sessions on our own DO with the v2 stack#1608RhysSullivan wants to merge 2 commits into
RhysSullivan wants to merge 2 commits into
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
executor-marketing | d62e666 | Commit Preview URL Branch Preview URL |
Aug 16 2026, 03:59 PM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
executor-cloud | d62e666 | Aug 16 2026, 04:00 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: |
Collaborator
Author
|
CI verdict: 3 cloud e2e shards red — the acceptance gate working as intended. Four distinct failures:
Iterating with the narrow e2e scenarios locally; will push the fix commit to this branch. |
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.
The big consolidation step: Cloudflare MCP session serving moves off
McpAgentonto our own Durable Object hosting the SDK v2 sessionful stack.patches/[email protected](911 lines) is deleted andagentsis out of every MCP path.DurableObjectdirectly: per-session v2WebStandardStreamableHTTPServerTransport+ the sessionful v2 assembly, directstub.fetchresponse streaming (theMcpAgent/PartyServer WebSocket bridge and its delivery-ack protocol are gone — stream resumability is the event store's job).do-event-store.ts: DO-storageEventStorecarrying the patch's semantics as first-class code — 64 events / 2 MiB per stream, never evict the newest, >120 KiB events deliver live but don't persist, best-effort writes that never break the send path, replay strictly afterLast-Event-ID.sse-response-rotation.ts: 30-minute stream rotation with graceful reconnect framing, aligned with the alarm policy.e2e/cloud/mcp-priming-reconnect.test.tsis the CI arbiter.idFromString); class names and wrangler bindings unchanged, so no DO migrations. Deliberate cutover behavior: sessions created before this deploy get one clean 404 and clients re-initialize transparently — no storage-compat restore of agents-internal state.Tests: 57 hosts/cloudflare + 204 hosts/mcp + 24 host-cloudflare + 244 cloud (3 known-environmental failures pre-exist on parent). Key acceptance signal is CI's cloud e2e: priming reconnect, SSE replay, oversize response, session survival.
Stacked on #1606. Next PR deletes the v1 assembly and the V2 naming.