loading…
Search for a command to run...
loading…
Remote MCP server executor on Cloudflare Workers that runs Python-based tools from GitHub repos via a lightweight TypeScript interpreter, supporting requests an
Remote MCP server executor on Cloudflare Workers that runs Python-based tools from GitHub repos via a lightweight TypeScript interpreter, supporting requests and common builtins.
Remote MCP server executor built on Cloudflare Workers + Durable Objects.
MCP Client (VS Code / Cursor / Antigravity / Claude Desktop / ChatGPT)
|
| POST /mcp?name=<server>
v
Cloudflare Worker (superbox-executor.workers.dev)
| validates name in R2 registry, routes to Durable Object by session ID
v
McpSession Durable Object (one per session)
| fetches Python source from GitHub, parses tools, runs on request
v
TypeScript interpreter -> executes tool functions -> returns JSON-RPC response
|
+-- outbound HTTP via native fetch (requests.get/post/put/patch/delete)
+-- JSON processing, dict/list ops, f-strings, common builtins
npm i -g wrangler)wrangler login)cd cloudflare
npm install
wrangler r2 bucket create superbox-mcp-registry
For local dev, the preview bucket is superbox-mcp-registry-dev:
wrangler r2 bucket create superbox-mcp-registry-dev
npm run dev
# Worker available at http://localhost:8787
npm run deploy
# URL: https://superbox-executor.<your-account>.workers.dev
Copy the deployed URL and set it in your backend .env:
CLOUDFLARE_WORKER_URL=https://superbox-executor.<your-account>.workers.dev
GET /health
POST /mcp?name=<server-name>
Content-Type: application/json
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"test","version":"0.0.1"}}}
POST /mcp?name=my-test&test_mode=true&repo_url=https://github.com/user/repo&entrypoint=main.py
Tools are executed by a lightweight TypeScript interpreter built into the Worker. Cloudflare Workers cannot run Pyodide (WASM bundle exceeds the 10 MB script limit, and eval() / new Function() are blocked at the V8 level), so this interpreter handles the patterns that cover the vast majority of published MCP servers.
requests.get/post/put/patch/delete (mapped to native fetch)if/elif/else, for loops, try/exceptint, float, str, bool, len, min, max, range, enumerate, ziphttpx, aiohttp, or any HTTP library other than requestspandas, numpy, cryptography, etc.)async def / awaitos, subprocess, socket, etc.)uv, pip, and poetry are package managers -- what matters is what they install. Servers that install requests-based packages work. Servers that install httpx, C-extension packages, or rely on async patterns do not.
wrangler tail superbox-executor --format pretty
Выполни в терминале:
claude mcp add superbox-executor -- npx Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.