Skip to main content

Architecture summary

SuperBox execution runs entirely on Cloudflare’s developer platform (Worker + Durable Objects + R2). The Go API origin is a separate self-hosted service managed via Docker. Cloudflare resources are provisioned with Terraform (config in /infra).

Cloudflare Worker

Edge compute that routes MCP requests to the correct Durable Object

McpSession Durable Object

Stateful session runtime - one instance per client session

Cloudflare R2

Object storage for server metadata (S3-compatible API)

Firebase Auth

JWT-based authentication for the Go API and the Worker

Component map

Cloudflare Worker

The Worker (superbox-executor) is the MCP execution endpoint. All AI client traffic goes through it.

Durable Objects

McpSession is the stateful session class. One instance per Mcp-Session-Id.

Cloudflare R2

R2 stores server metadata. The Go API writes to it via a Python subprocess (s3_helper.py) using the S3-compatible boto3 endpoint.

Go API (backend)

The Go API (Gin, 1.26) handles server CRUD and security scanning. It runs as a Docker container.

Deployment summary