{"_id":"@302ai/sandbox-mcp","_rev":"8-887917b7045a1188a4762ee374971a36","name":"@302ai/sandbox-mcp","dist-tags":{"latest":"0.2.1"},"versions":{"0.2.0":{"name":"@302ai/sandbox-mcp","version":"0.2.0","keywords":["MCP","Model Context Protocol","302AI","sandbox"],"author":{"name":"302.ai"},"license":"MIT","_id":"@302ai/sandbox-mcp@0.2.0","maintainers":[{"name":"mthezi","email":"mthezi@163.com"}],"homepage":"https://github.com/302ai","bugs":{"url":"https://github.com/302ai/302_sandbox_mcp/issues"},"bin":{"sandbox-mcp":"build/index.js"},"dist":{"shasum":"d54f7757a3b8aded8e9809eac9cc60ade260f535","tarball":"https://registry.npmjs.org/@302ai/sandbox-mcp/-/sandbox-mcp-0.2.0.tgz","fileCount":4,"integrity":"sha512-ezdwiQpwnAE8JNInhpAZkBX9MH++0ykdbHvkEp+B4Kuw9sy3F7hxhjdEfA2e8y0QHr/vd+Tzygs3aLRutxaPcA==","signatures":[{"sig":"MEUCIDvYIK7lKsanmVDOhz4q6Vbt/ji7l9U6wHmHtJceM5qzAiEArJtEsj76vyErnQ5DXra+xZPioUwXbI6yyMGlMojZdN4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7812},"type":"module","gitHead":"ad44a987b7d8e97b91b03d955ba5c92e19817c2e","scripts":{"build":"tsc && node -e \"require('fs').chmodSync('build/index.js', '755')\"","start":"node build/index.js","watch":"tsc --watch","format":"biome format --write","prepare":"npm run build","inspector":"npx @modelcontextprotocol/inspector build/index.js"},"_npmUser":{"name":"mthezi","email":"mthezi@163.com"},"repository":{"url":"git+https://github.com/302ai/302_sandbox_mcp.git","type":"git"},"_npmVersion":"11.1.0","description":"A Model Context Protocol server","directories":{},"_nodeVersion":"22.12.0","dependencies":{"ky":"^1.8.0","zod":"^3.23.8","dotenv":"^16.4.5","@chatmcp/sdk":"^1.0.5","zod-to-json-schema":"^3.23.5","@better-fetch/fetch":"^1.1.18","@modelcontextprotocol/sdk":"0.6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.3.3","@types/node":"^20.11.24","@biomejs/biome":"2.0.0-beta.1","@changesets/cli":"^2.28.1"},"_npmOperationalInternal":{"tmp":"tmp/sandbox-mcp_0.2.0_1744110198385_0.007814867053326235","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@302ai/sandbox-mcp","version":"0.2.1","keywords":["MCP","Model Context Protocol","302AI","sandbox"],"author":{"name":"302.ai"},"license":"MIT","_id":"@302ai/sandbox-mcp@0.2.1","maintainers":[{"name":"mthezi","email":"mthezi@163.com"}],"homepage":"https://github.com/302ai","bugs":{"url":"https://github.com/302ai/302_sandbox_mcp/issues"},"bin":{"sandbox-mcp":"build/index.js"},"dist":{"shasum":"165592b32d8e8290996dd11edfe627ce92cf6a4b","tarball":"https://registry.npmjs.org/@302ai/sandbox-mcp/-/sandbox-mcp-0.2.1.tgz","fileCount":4,"integrity":"sha512-gwvGQ30kHB3DNpzaTaIbcWHVkK55y2azd6DyBS18l6SZkz5mdFe/xH2ouQpcsU3RxNP68dGZ6qLMT1Okh46EOQ==","signatures":[{"sig":"MEQCIEKedDE1DrTtvU0lcnVtn4weyKXYLObqUmEAV3CpQr08AiA1HrumCINFFD02zI9+XxUrPy/RFZvhO5+WnHx46/GH4Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11470},"type":"module","gitHead":"2bb19b9eade293e4657df7fac51f48cea2b3129d","scripts":{"build":"tsc && node -e \"require('fs').chmodSync('build/index.js', '755')\"","start":"node build/index.js","watch":"tsc --watch","format":"biome format --write","prepare":"npm run build","inspector":"npx @modelcontextprotocol/inspector build/index.js"},"_npmUser":{"name":"mthezi","actor":{"name":"mthezi","type":"user","email":"mthezi@163.com"},"email":"mthezi@163.com"},"repository":{"url":"git+https://github.com/302ai/302_sandbox_mcp.git","type":"git"},"_npmVersion":"11.1.0","description":"A Model Context Protocol server","directories":{},"_nodeVersion":"22.12.0","dependencies":{"ky":"^1.8.0","zod":"^3.23.8","dotenv":"^16.4.5","@chatmcp/sdk":"^1.0.5","zod-to-json-schema":"^3.23.5","@better-fetch/fetch":"^1.1.18","@modelcontextprotocol/sdk":"0.6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.3.3","@types/node":"^20.11.24","@biomejs/biome":"2.0.0-beta.1","@changesets/cli":"^2.28.1"},"_npmOperationalInternal":{"tmp":"tmp/sandbox-mcp_0.2.1_1750150836712_0.0532761676438358","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-04-08T11:03:18.314Z","modified":"2026-02-10T11:40:11.050Z","0.1.0":"2025-04-08T10:39:01.286Z","0.1.1":"2025-04-08T10:47:11.045Z","0.1.2":"2025-04-08T10:54:33.892Z","0.2.0":"2025-04-08T11:03:18.575Z","0.2.1":"2025-06-17T09:00:36.901Z"},"bugs":{"url":"https://github.com/302ai/302_sandbox_mcp/issues"},"author":{"name":"302.ai"},"license":"MIT","homepage":"https://github.com/302ai","keywords":["MCP","Model Context Protocol","302AI","sandbox"],"repository":{"url":"git+https://github.com/302ai/302_sandbox_mcp.git","type":"git"},"description":"A Model Context Protocol server","maintainers":[{"email":"ji4jun0097@gmail.com","name":"trashcodermaker"}],"readme":"# <p align=\"center\">🤖 302AI Sandbox MCP Server🚀✨</p>\r\n\r\n<p align=\"center\">An MCP service with code sandbox that allows AI assistants to safely execute arbitrary code.</p>\r\n\r\n<p align=\"center\"><a href=\"https://www.npmjs.com/package/@302ai/sandbox-mcp\" target=\"blank\"><img src=\"https://file.302.ai/gpt/imgs/github/20250102/72a57c4263944b73bf521830878ae39a.png\" /></a></p >\r\n\r\n<p align=\"center\"><a href=\"README_zh.md\">中文</a> | <a href=\"README.md\">English</a> | <a href=\"README_ja.md\">日本語</a></p>\r\n\r\n![](docs/302_Sandbox_MCP_Server_en.jpg) \r\n\r\n## Previews\r\n\r\nHere are some usage examples\r\n\r\n![](docs/302_Sandbox_MCP_Server_en_screenshot_01.png)     \r\n\r\n![](docs/302_Sandbox_MCP_Server_en_screenshot_02.png)     \r\n\r\nHere is the list of supported tools\r\n\r\n![](docs/302_Sandbox_MCP_Server_en_screenshot_03.png)\r\n\r\n\r\n## ✨ Features ✨\r\n\r\n- 🔧 Dynamic Loading - Automatically update tool list from remote server.\r\n- 🌐 Multi modes supported, you can use `stdin` mode locally, or host it as a remote HTTP server\r\n\r\n## 🚀 Tool List\r\n- [One-click Code Execution](https://302ai.apifox.cn/api-276039652)\r\n- [Create Sandbox](https://302ai.apifox.cn/api-276079606)\r\n- [Query Your Sandbox List](https://302ai.apifox.cn/api-276086526)\r\n- [Destroy Sandbox](https://302ai.apifox.cn/api-276092957)\r\n- [Run-Code](https://302ai.apifox.cn/api-276100061)\r\n- [Run Command Line](https://302ai.apifox.cn/api-276106261)\r\n- [Query File Information at Specified Path](https://302ai.apifox.cn/api-276110558)\r\n- [Import File Data into Sandbox](https://302ai.apifox.cn/api-276123813)\r\n- [Export Sandbox Files](https://302ai.apifox.cn/api-276123525)\r\n\r\n## Development\r\n\r\nInstall dependencies:\r\n\r\n```bash\r\nnpm install\r\n```\r\n\r\nBuild the server:\r\n\r\n```bash\r\nnpm run build\r\n```\r\n\r\nFor development with auto-rebuild:\r\n\r\n```bash\r\nnpm run watch\r\n```\r\n\r\n## Installation\r\n\r\nTo use with Claude Desktop, add the server config:\r\n\r\nOn MacOS: `~/Library/Application Support/Claude/claude_desktop_config.json`     \r\nOn Windows: `%APPDATA%/Claude/claude_desktop_config.json`\r\n\r\n```json\r\n{\r\n  \"mcpServers\": {\r\n    \"302ai-sandbox-mcp\": {\r\n      \"command\": \"npx\",\r\n      \"args\": [\"-y\", \"@302ai/sandbox-mcp\"],\r\n      \"env\": {\r\n        \"302AI_API_KEY\": \"YOUR_API_KEY_HERE\"\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nTo use with Cherry Studio, add the server config:\r\n\r\n```json\r\n{\r\n  \"mcpServers\": {\r\n    \"Li2ZXXJkvhAALyKOFeO4N\": {\r\n      \"name\": \"302ai-sandbox-mcp\",\r\n      \"description\": \"\",\r\n      \"isActive\": true,\r\n      \"registryUrl\": \"\",\r\n      \"command\": \"npx\",\r\n      \"args\": [\r\n        \"-y\",\r\n        \"@302ai/sandbox-mcp@0.2.0\"\r\n      ],\r\n      \"env\": {\r\n        \"302AI_API_KEY\": \"YOUR_API_KEY_HERE\"\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nTo use with ChatWise, copy the following content to clipboard\r\n```json\r\n{\r\n  \"mcpServers\": {\r\n    \"302ai-sandbox-mcp\": {\r\n      \"command\": \"npx\",\r\n      \"args\": [\"-y\", \"@302ai/sandbox-mcp\"],\r\n      \"env\": {\r\n        \"302AI_API_KEY\": \"YOUR_API_KEY_HERE\"\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\nGo to Settings -> Tools -> Add button -> Select Import from Clipboard\r\n![](docs/302_Sandbox_MCP_Server_en_screenshot_04.jpg)\r\n\r\n### Find Your 302AI_API_KEY [here](https://dash.302.ai/apis/list)\r\n[Using Tutorials](https://help.302.ai/en/docs/API-guan-li)\r\n\r\n### Debugging\r\n\r\nSince MCP servers communicate over stdio, debugging can be challenging. We recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector), which is available as a package script:\r\n\r\n```bash\r\nnpm run inspector\r\n```\r\n\r\nThe Inspector will provide a URL to access debugging tools in your browser.\r\n\r\n## ✨ About 302.AI ✨\r\n[302.AI](https://302.ai/en/) is an enterprise-oriented AI application platform that offers pay-as-you-go services, ready-to-use solutions, and an open-source ecosystem.✨\r\n1. 🧠 Integrates the latest and most comprehensive AI capabilities and brands, including but not limited to language models, image models, voice models, and video models.\r\n2. 🚀 Develops deep applications based on foundation models - we develop real AI products, not just simple chatbots\r\n3. 💰 Zero monthly fee, all features are pay-per-use, fully open, achieving truly low barriers with high potential.\r\n4. 🛠 Powerful management backend for teams and SMEs - one person manages, many people use.\r\n5. 🔗 All AI capabilities provide API access, all tools are open source and customizable (in progress).\r\n6. 💡 Strong development team, launching 2-3 new applications weekly, products updated daily. Developers interested in joining are welcome to contact us.\r\n","readmeFilename":"README.md"}