Skip to content

Drop the MCP Durable Object from the SSR app graph - #1696

Merged
RhysSullivan merged 1 commit into
mainfrom
perf/drop-do-from-ssr-graph
Aug 19, 2026
Merged

Drop the MCP Durable Object from the SSR app graph#1696
RhysSullivan merged 1 commit into
mainfrom
perf/drop-do-from-ssr-graph

Conversation

@RhysSullivan

Copy link
Copy Markdown
Collaborator

No description provided.

app.ts imported McpSessionDOSqlite only to pass it through as mcpExport
and re-export it. ExecutorApp.make documents mcpExport as passed back
out untouched, its result cloudMcpExport has no consumers, and server.ts
imports the DO class directly for Cloudflare's required export. So the
import was dead weight that pulled the MCP DO stack and the QuickJS WASM
into TanStack Start's loadEntries closure (9.22MB -> 8.58MB without it).

No measured latency win: loadEntries cost does not track closure size,
same as isolate startup. Kept as dead-code removal and because the SSR
graph should not depend on the MCP session DO.
@RhysSullivan
RhysSullivan merged commit 54cde5e into main Aug 19, 2026
1 check was pending
@RhysSullivan
RhysSullivan deleted the perf/drop-do-from-ssr-graph branch August 19, 2026 17:13
@github-actions

github-actions Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Cloudflare preview

Torn down — the PR is closed.

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