
302 沙盒 MCP
概览
一个MCP服务,带有代码沙盒,允许AI助手安全地执行任意代码。 - 🔧 动态加载 - 自动从远程服务器更新工具列表。- 🌐 支持多种模式,您可以本地使用 stdin 模式,或作为远程 HTTP 服务器托管 - 一键代码执行 - 创建沙盒 - 查询你的沙箱列表 - 销毁沙盒 - 运行代码 - 运行命令行 - 在指定路径查询文件信息 - 导入沙盒文件 - 导出沙盒文件 要配合Claude Desktop使用,添加服务器配置: 在 macOS 上:~/library/Application support/Claude/claude_desktop_config.json 在 Windows 上:%APPDATA%/Claude/claude_desktop_config.json 要配合 Cherry Studio 使用,添加服务器配置: 要与ChatWise一起使用,请将以下内容复制到夹板 进入设置 -> 工具 -> 添加按钮 -> 选择从剪贴板导入
概述(AI 翻译)
一个MCP服务,带有代码沙盒,允许AI助手安全地执行任意代码。
中文 |英文 |日本語
预览
以下是一些使用示例
以下是支持的工具列表
✨ 特色 ✨
- 🔧 动态加载 - 自动从远程服务器更新工具列表。
- 🌐 支持多模式,你可以在本地使用
stdin模式,也可以作为远程 HTTP 服务器托管
🚀 工具清单
- 一键代码执行
- 创建沙盒
- 查询您的沙盒列表
- 摧毁沙盒
- 运行代码
- 运行命令行
- 指定路径上的查询文件信息
- 导入文件数据到沙盒
- 导出沙盒文件
发展
安装依赖:
搭建服务器:
关于自动重建的开发:
安装
要配合Claude Desktop使用,添加服务器配置:
在 MacOS 上:~/Library/Application Support/Claude/claude_desktop_config.json
Windows版:%APPDATA%/Claude/claude_desktop_config.json
要配合 Cherry Studio 使用,添加服务器配置:
要与ChatWise一起使用,请将以下内容复制到夹板
进入设置 -> 工具 -> 添加按钮 -> 选择从剪贴板导入
在这里找到你的302AI_API_KEY
使用教程
调试
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
🤖 302AI Sandbox MCP Server🚀✨
An MCP service with code sandbox that allows AI assistants to safely execute arbitrary code.
中文 | English | 日本語
Previews
Here are some usage examples
Here is the list of supported tools
✨ Features ✨
- 🔧 Dynamic Loading - Automatically update tool list from remote server.
- 🌐 Multi modes supported, you can use
stdinmode locally, or host it as a remote HTTP server
🚀 Tool List
- One-click Code Execution
- Create Sandbox
- Query Your Sandbox List
- Destroy Sandbox
- Run-Code
- Run Command Line
- Query File Information at Specified Path
- Import File Data into Sandbox
- Export Sandbox Files
Development
Install dependencies:
npm install
Build the server:
npm run build
For development with auto-rebuild:
npm run watch
Installation
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"302ai-sandbox-mcp": {
"command": "npx",
"args": ["-y", "@302ai/sandbox-mcp"],
"env": {
"302AI_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
To use with Cherry Studio, add the server config:
{
"mcpServers": {
"Li2ZXXJkvhAALyKOFeO4N": {
"name": "302ai-sandbox-mcp",
"description": "",
"isActive": true,
"registryUrl": "",
"command": "npx",
"args": [
"-y",
"@302ai/[email protected]"
],
"env": {
"302AI_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
To use with ChatWise, copy the following content to clipboard
{
"mcpServers": {
"302ai-sandbox-mcp": {
"command": "npx",
"args": ["-y", "@302ai/sandbox-mcp"],
"env": {
"302AI_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
Go to Settings -> Tools -> Add button -> Select Import from Clipboard
安装
npx -y @302ai/sandbox-mcp配置
{
"mcpServers": {
"302ai-sandbox-mcp": {
"command": "npx",
"args": ["-y", "@302ai/sandbox-mcp"],
"env": {
"302AI_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}