VOOZH about

URL: https://glama.ai/mcp/servers/garc33/js-sandbox-mcp-server?locale=zh-CN

⇱ JavaScript 沙盒 MCP 服务器 by garc33 | Glama


js-sandbox MCP 服务器

提供安全 JavaScript 执行环境的模型上下文协议服务器。

特征

工具

  • execute_js - 在隔离环境中执行 JavaScript 代码

    • 参数:

      • code (必需):要执行的 JavaScript 代码

      • timeout (可选):最大执行时间(以毫秒为单位)(100-30000ms)

      • memory (可选):内存限制(以字节为单位)(1MB-100MB)

    • 返回代码执行的结果

安全

  • 在受控环境中隔离代码执行

  • 可配置的执行时间和内存限制

  • 防范恶意代码

Related MCP server: MCP QuickJS Runner

发展

安装依赖项:

npm install

构建服务器:

npm run build

具有自动重建的开发模式:

npm run watch

安装

要与 Claude Desktop 一起使用,请添加服务器配置:

MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json

{
 "mcpServers": {
 "js-sandbox": {
 "command": "/path/to/js-sandbox/build/index.js"
 }
 }
}

调试

由于 MCP 服务器通过 stdio 进行通信,调试起来可能比较困难。我们推荐使用MCP Inspector ,其运行方式如下:

npm run inspector

检查器将提供一个 URL 来访问浏览器中的调试工具。

F
license - not found
B
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/garc33/js-sandbox-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server