MCP.so
登录

MCP Sandbox

@danstarns

基本信息

分类

推理

许可证

MIT

传输方式

stdio

作者

danstarns

关于 MCP Sandbox

Turn any JavaScript module into a sandboxed MCP (Model Context Protocol) server with automatic reflection and type inference.

MCP Sandbox 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

MCP Sandbox 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP Sandbox?

MCP Sandbox automatically converts JavaScript modules into MCP (Model Context Protocol) compatible servers, making any JavaScript function accessible to AI systems. It uses VM sandboxing for security, automatic type inference, and generates proper MCP configurations. It is for developers who want to expose JavaScript functions as tools for AI models without writing MCP server code manually.

How to use MCP Sandbox?

Install globally with npm install -g @mcp-sandbox/cli and run mcp-sandbox start <module> to start an MCP server for any JavaScript module. The server runs at http://localhost:3000 by default, and tools are automatically discovered from exported functions in the module.

Key features of MCP Sandbox

  • Automatic reflection of JavaScript modules and function signatures
  • Secure sandboxing with VM isolation and configurable timeouts
  • Smart type inference from parameter defaults and naming patterns
  • JSDoc integration for extracting documentation from comments
  • Full JSON-RPC 2.0 and SSE protocol support
  • Legacy REST API endpoints for easy testing

Use cases of MCP Sandbox

  • Expose math or string utility functions as AI-callable tools
  • Turn any Node.js module into a server for MCP-compatible agents
  • Provide a secure sandbox for running untrusted JavaScript functions
  • Rapidly prototype MCP tools without writing boilerplate server code

常见问题

1

What is MCP Sandbox and what problem does it solve?

MCP Sandbox automatically converts JavaScript modules into MCP compatible servers, eliminating the need to manually write MCP server code for exposing functions to AI systems.

2

What are the runtime requirements and how do I install it?

Requires Node.js and npm. Install globally with `npm install -g @mcp-sandbox/cli` or add packages `@mcp-sandbox/core` and `@mcp-sandbox/cli` to a project.

3

What security measures does MCP Sandbox provide?

It provides VM isolation, configurable execution timeouts, memory limits (default 64MB), controlled require access in the sandbox, and input validation on parameters.

4

What transports and protocols are supported?

Full MCP protocol (JSON-RPC 2.0) via `POST /mcp/jsonrpc`, SSE via `GET /sse`, and legacy REST endpoints for testing including `GET /tools` and `POST /execute/:toolName`.

评论

推理 分类下的更多 MCP 服务器