{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_dx6w3xf63cxt","handle":"fc-code-interpreter-mcp-server","url":"https://wellknown.network/agents/fc-code-interpreter-mcp-server","links":{"self":"https://wellknown.network/agents/fc-code-interpreter-mcp-server/record.json","html":"https://wellknown.network/agents/fc-code-interpreter-mcp-server","markdown":"https://wellknown.network/agents/fc-code-interpreter-mcp-server/record.md","api":"https://wellknown.network/api/v1/agents/fc-code-interpreter-mcp-server","status":"https://wellknown.network/api/v1/agents/fc-code-interpreter-mcp-server/status","claim":"https://wellknown.network/agents/fc-code-interpreter-mcp-server/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/fc-code-interpreter-mcp-server/claim.json","badge":"https://wellknown.network/agents/fc-code-interpreter-mcp-server/badge.svg","openapi":"https://wellknown.network/openapi.json","history":"https://wellknown.network/api/v1/agents/fc-code-interpreter-mcp-server/history","tools":"https://wellknown.network/api/v1/agents/fc-code-interpreter-mcp-server/tools"},"ard":{"identifier":"urn:air::server:fc-code-interpreter-mcp-server","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"fc-code-interpreter-mcp-server","summary":"Code Interpreter MCP Server - Secure code execution via E2B on Function Compute","description":"# FC Code Interpreter MCP Server\n\n基于 FastMCP 框架的 MCP 服务器，支持通过 Sandbox 服务进行安全的代码执行，提供多种传输协议（stdio、SSE、HTTP Streamable）。\n\n## 🚀 快速开始\n\n### 方式 1: 使用 Docker Compose（推荐）\n\n一键启动 Sandbox 和 MCP Server 服务：\n\n```bash\n# 启动所有服务\nmake up\n\n# 验证服务运行\ncurl http://localhost:5001/health  # Sandbox 健康检查\ncurl http://localhost:3000/sse     # MCP Server SSE 端点\n\n# 停止服务\nmake down\n```\n\n**服务端点**：\n- **Sandbox API**: `http://localhost:5001`\n- **MCP Server (SSE)**: `http://localhost:3000/sse`\n\n### 方式 2: 手动启动\n\n#### 1. 启动 Sandbox Docker 服务\n\n```bash\n# 启动本地 sandbox\ndocker-compose up -d sandbox-code-interpreter\n\n# 等待服务就绪（需要约 40 秒）\nsleep 45\n\n# 验证服务运行\ncurl http://localhost:5001/health\n```\n\n**预期输出**: `{\"status\":\"healthy\"}`\n\n#### 2. 安装依赖\n\n```bash\n# 使用 UV (推荐)\nuv install\n\n# 或使用 pip\npip install -e .\n```\n\n#### 3. 启动 MCP Server\n\n```bash\n# SSE 协议 (推荐)\nmake run-sse\n\n# HTTP Streamable 协议\nmake run-http-streamable\n\n# stdio 协议（用于 Claude Desktop）\nmake run-stdio\n```\n\n## ⚙️ 配置说明\n\n### 环境变量\n\nMCP Server 支持以下环境变量配置（**命令行参数优先级更高**）：\n\n| 环境变量 | 默认值 | 说明 | 命令行参数 |\n|---------|--------|------|-----------|\n| `MCP_TRANSPORT` | `stdio` | 传输协议 (stdio/sse/http) | `--transport` |\n| `MCP_HOST` | `0.0.0.0` | 监听地址 | `--host` |\n| `MCP_PORT` | `3000` | 服务端口 | `--port` |\n| `MCP_PATH` | `/mcp` | HTTP 端点路径 | `--path` |\n| `SANDBOX_URL` | `http://localhost:5001` | Sandbox 服务地址（对于 Docker 环境使用 `http://sandbox-code-interpreter:5000`） | `--sandbox-url` |\n| `LOG_LEVEL` | `INFO` | 日志级别 | - |\n\n### 配置方式\n\n#### 方式 1: 环境变量\n\n```bash\n# 直接设置环境变量\nexport MCP_TRANSPORT=sse\nexport MCP_HOST=0.0.0.0\nexport MCP_PORT=3000\nexport SANDBOX_URL=http://localhost:5001\n\n# 运行服务器\nuv run python mcp_server/main.py\n```\n\n#### 方式 2: 命令行参数（优先级更高）\n\n```bash\n# 使用命令行参数\nuv run python mcp_server/main.py \\\n  --transport sse \\\n  --host 0.0.0.0 \\\n  --port 3000 \\\n  --sandbox-url http://localhost:5001\n```\n\n#### 方式 3: Docker Compose\n\n`docker-compose.yml` 已预配置 SSE 协议的环境变量：\n\n```yaml\nenvironment:\n  - MCP_TRANSPORT=sse\n  - MCP_HOST=0.0.0.0\n  - MCP_PORT=3000\n  - MCP_PATH=/sse\n  - SANDBOX_URL=http:/…","publisher":null,"homepage":"https://github.com/alibaba/fc-code-interpreter-mcp-server#readme","repository":"https://github.com/alibaba/fc-code-interpreter-mcp-server#readme","version":"0.1.12","license":"MIT","protocols":["mcp"],"tags":["code-interpreter","e2b","function-compute","mcp","sandbox"],"pricing":null,"endpoints":[{"url":"pypi:fc-code-interpreter-mcp-server","type":"package_pypi","auth":null,"probeable":false}],"skills":null,"tools":null,"extra":null,"attribution":{"kind":"pypi","name":"pypi","license":"pypi","repoUrl":"pypi","summary":"pypi","version":"pypi","description":"pypi","homepageUrl":"pypi"}},"derived":{"capabilities":[{"slug":"code.execution","name":"Code Execution","confidence":1,"provenance":"declared"}],"categories":["code"],"language":"fr"},"observed":{"status":"unknown","statusReason":"Distributed as a package to run locally; no network endpoint to check.","lastOkAt":null,"lastProbedAt":null,"statusComputedAt":null,"reliability30d":null,"latestObservations":[],"tools":null,"package":{"name":"fc-code-interpreter-mcp-server","registry":"pypi","observedAt":"2026-10-28T00:27:50.064Z","publishedAt":"2025-10-29T14:33:11.504558Z","latestVersion":"0.1.12"},"toolSurface":null,"endpointFacts":[]},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"fc-code-interpreter-mcp-server","url":"https://pypi.org/project/fc-code-interpreter-mcp-server/","firstSeenAt":"2026-09-09T15:22:34.398Z","fetchedAt":"2026-10-28T00:27:02.572Z","normalizedAt":"2026-10-28T00:27:02.572Z"}]},"firstSeenAt":"2026-09-09T15:22:34.398Z","updatedAt":"2026-10-28T00:27:50.064Z"}