Documentation Index
Fetch the complete documentation index at: https://acm-aa28ebf6.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Deployment issues
wrangler deploy fails with authentication error
wrangler login and complete the browser OAuth flow. Your session token is stored in ~/.wrangler/config/default.toml.
Worker deploys but requests return 500
Check live logs:
| Symptom | Likely cause | Fix |
|---|---|---|
R2Error: Access Denied | Missing/wrong R2 binding | Verify wrangler.jsonc has r2_buckets binding pointing to superbox-mcp-registry |
TypeError: Cannot read properties of undefined | Durable Object class not exported | Ensure McpSession is exported as a named export in the Worker’s entry file |
RangeError: Maximum call stack size exceeded | Infinite loop in server code | Review the published server’s entrypoint |
Bundle too large
- Run
npx wrangler deploy --dry-run --outdir distto inspect what’s in the bundle - Move large static assets out of the Worker and into R2
- Tree-shake unused imports
R2 bucket not found
wrangler.jsonc has:
Durable Object errors
wrangler.jsonc declares the DO class with the correct class name:
McpSession is a named export in src/index.ts.
Runtime issues
401 Unauthorized on every request
The Firebase JWT is missing, expired, or belongs to the wrong project.
Fix:
- Verify
FIREBASE_PROJECT_IDin the backend.envmatches your Firebase project - Confirm the AI client is sending the token in
Authorization: Bearer <token> - Check token expiry - Firebase JWTs expire after 1 hour
Session not found after reconnect
AI client receives404 on a resumed session.
This is expected - DO sessions evict after 30 minutes of inactivity. The client should start a new session by omitting the Mcp-Session-Id header (or using a new UUID).
Server not found in R2
- Run
superbox pushagain to republish the server metadata - Verify the object key in R2:
wrangler r2 object get superbox-mcp-registry my-server.json - Check Back end logs for R2 write errors during push
Backend API issues
Go API crashes on startup
.env:
security_helper.py or s3_helper.py not found
The Go API invokes these as subprocess commands. They must be on the PATH or in the working directory.
Fix:
superbox package in editable mode, making both helpers available as module scripts.