Overview
SuperBox uses Cloudflare Durable Objects to execute MCP servers in isolated, stateful sessions. Each session runs in its ownMcpSession DO instance - completely separated from other users and servers.
Session Isolation
One Durable Object per session, keyed on
Mcp-Session-IdNo Local Proxy
AI clients connect directly over HTTP - no stdio proxy process needed
Auto-Eviction
Sessions idle for 30 minutes are automatically torn down
Test Mode
Run unreleased servers directly from a GitHub URL
Execution Architecture
Execution Flow
Client sends a request
The AI client (Cursor, VS Code, Claude Desktop, etc.) sends a No local proxy or
POST request directly to the Cloudflare Worker:cmd: entry is needed.Worker routes to a Durable Object
The Worker looks up (or creates) a
McpSession Durable Object for the given session ID. Each DO stores the session state in memory for its lifetime.DO fetches server metadata
The DO reads
{server-name}.json from the superbox-mcp-registry R2 bucket to find the entrypoint and repository URL.TypeScript interpreter executes Python
The MCP server’s Python entrypoint runs inside an embedded TypeScript interpreter - no subprocess, no Pyodide WASM, no
pip install. The interpreter handles:requests-based HTTP tool calls- JSON parsing and serialisation
- Common Python control flow and string manipulation
httpx, aiohttp, async def, C extensions, class definitions, file I/O.Response streams back
The JSON-RPC result is returned as an HTTP response. For streaming use cases, Server-Sent Events are supported.
Test Mode
You can run an unreleased server directly from its GitHub repository without publishing it to the registry:Security Model
DO isolation
Each session runs in a separate Durable Object with its own memory space. One session cannot access another’s state.
No persistent filesystem
The TypeScript interpreter has no access to the host filesystem. No files are written between requests.
Network via requests only
Outbound network is only possible through the
requests library shim. Raw socket access is not available.Short-lived sessions
The 30-minute idle alarm and explicit DELETE endpoint ensure sessions do not accumulate.