Code Interpreter MCP Server - Secure code execution via E2B on Function Compute
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"fc-code-interpreter-mcp-server","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
# FC Code Interpreter MCP Server 基于 FastMCP 框架的 MCP 服务器,支持通过 Sandbox 服务进行安全的代码执行,提供多种传输协议(stdio、SSE、HTTP Streamable)。 ## 🚀 快速开始 ### 方式 1: 使用 Docker Compose(推荐) 一键启动 Sandbox 和 MCP Server 服务: ```bash # 启动所有服务 make up # 验证服务运行 curl http://localhost:5001/health # Sandbox 健康检查 curl http://localhost:3000/sse # MCP Server SSE 端点 # 停止服务 make down ``` **服务端点**: - **Sandbox API**: `http://localhost:5001` - **MCP Server (SSE)**: `http://localhost:3000/sse` ### 方式 2: 手动启动 #### 1. 启动 Sandbox Docker 服务 ```bash # 启动本地 sandbox docker-compose up -d sandbox-code-interpreter # 等待服务就绪(需要约 40 秒) sleep 45 # 验证服务运行 curl http://localhost:5001/health ``` **预期输出**: `{"status":"healthy"}` #### 2. 安装依赖 ```bash # 使用 UV (推荐) uv install # 或使用 pip pip install -e . ``` #### 3. 启动 MCP Server ```bash # SSE 协议 (推荐) make run-sse # HTTP Streamable 协议 make run-http-streamable # stdio 协议(用于 Claude Desktop) make run-stdio ``` ## ⚙️ 配置说明 ### 环境变量 MCP Server 支持以下环境变量配置(**命令行参数优先级更高**): | 环境变量 | 默认值 | 说明 | 命令行参数 | |---------|--------|------|-----------| | `MCP_TRANSPORT` | `stdio` | 传输协议 (stdio/sse/http) | `--transport` | | `MCP_HOST` | `0.0.0.0` | 监听地址 | `--host` | | `MCP_PORT` | `3000` | 服务端口 | `--port` | | `MCP_PATH` | `/mcp` | HTTP 端点路径 | `--path` | | `SANDBOX_URL` | `http://localhost:5001` | Sandbox 服务地址(对于 Docker 环境使用 `http://sandbox-code-interpreter:5000`) | `--sandbox-url` | | `LOG_LEVEL` | `INFO` | 日志级别 | - | ### 配置方式 #### 方式 1: 环境变量 ```bash # 直接设置环境变量 export MCP_TRANSPORT=sse export MCP_HOST=0.0.0.0 export MCP_PORT=3000 export SANDBOX_URL=http://localhost:5001 # 运行服务器 uv run python mcp_server/main.py ``` #### 方式 2: 命令行参数(优先级更高) ```bash # 使用命令行参数 uv run python mcp_server/main.py \ --transport sse \ --host 0.0.0.0 \ --port 3000 \ --sandbox-url http://localhost:5001 ``` #### 方式 3: Docker Compose `docker-compose.yml` 已预配置 SSE 协议的环境变量: ```yaml environment: - MCP_TRANSPORT=sse - MCP_HOST=0.0.0.0 - MCP_PORT=3000 - MCP_PATH=/sse - SANDBOX_URL=http:/…
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.