MCP代码执行器
一个允许大语言模型在指定Conda环境中执行Python代码的MCP服务器。
快速入门
- 克隆仓库: git clone https://github.com/bazinga012/mcp_code_executor.git
- 进入项目目录: cd mcp_code_executor
- 安装依赖: npm install
- 构建项目: npm run build
- 配置MCP服务器,在配置文件中添加以下内容: { "mcpServers": { "mcp-code-executor": { "command": "node", "args": ["/path/to/mcp_code_executor/build/index.js"], "env": { "CODE_STORAGE_DIR": "/path/to/code/storage", "CONDA_ENV_NAME": "your-conda-env" } } } }
- 启动服务后即可使用。
更多详情查看仓库README。