代码沙箱 MCP 服务器
一个基于 Docker 的安全代码沙箱环境,为 AI 应用提供隔离的代码执行服务。
快速入门
安装前提
- 确保已安装并运行 Docker。
快速安装
Linux 和 macOS
运行以下命令: curl -fsSL https://raw.githubusercontent.com/Automata-Labs-team/code-sandbox-mcp/main/install.sh | bash
Windows
在 PowerShell 中运行: irm https://raw.githubusercontent.com/Automata-Labs-team/code-sandbox-mcp/main/install.ps1 | iex
手动安装
- 从 发布页面 下载适合您平台的最新版本。
- 将二进制文件放置在 PATH 目录中。
- 在 Unix 系统上设置可执行权限:chmod +x code-sandbox-mcp
使用方法
初始化环境:sandbox_initialize 复制项目目录:copy_project 执行命令:sandbox_exec 停止容器:sandbox_stop