test
) with a disposable MCP server.mcp-node-code-sandbox
toolkit.Tool | Short Description |
---|---|
get_dependency_types | Given an array of npm package names (and optional versions), fetch whether each package ships its own TypeScript definitions or has a corresponding @types/… package, and return the raw .d.ts text. |
run_js | Install npm dependencies and run JavaScript code inside a running sandbox container. |
run_js_ephemeral | Run a JavaScript snippet in a temporary disposable container with optional npm dependencies, then automatically clean up. |
sandbox_exec | Execute one or more shell commands inside a running sandbox container. |
sandbox_initialize | Start a new isolated Docker container running Node.js. |
sandbox_stop | Terminate and remove a running sandbox container. |
search_npm_packages | Search for npm packages by a search term and get their name, description, and a README snippet. |
get_dependency_types
Parameters | Type | Description |
---|---|---|
dependencies | array |
run_js
./files
directory for persistence.Parameters | Type | Description |
---|---|---|
code | string | JavaScript code to run inside the container. |
container_id | string | Docker container identifier |
dependencies | array (optional) | npm dependencies to install before running. Each must have name and version . |
listenOnPort | number (optional) | Expose this port to the host if set. |
run_js_ephemeral
./files
directory.Parameters | Type | Description |
---|---|---|
code | string | JavaScript code to run. |
dependencies | array (optional) | npm dependencies to install. |
image | string (optional) | Docker image to use, e.g., node:lts-slim , mcr.microsoft.com/playwright:v1.52.0-noble , alfonsograziano/node-chartjs-canvas:latest . |
sandbox_exec
Parameters | Type | Description |
---|---|---|
commands | array | Shell commands to run. |
container_id | string |
sandbox_initialize
Parameters | Type | Description |
---|---|---|
image | string (optional) | |
port | number (optional) | Map this port. |
sandbox_stop
Parameters | Type | Description |
---|---|---|
container_id | string |
search_npm_packages
Parameters | Type | Description |
---|---|---|
searchTerm | string | Search term (may include + to combine concepts). |
qualifiers | object (optional) | Qualifiers to filter results (by author, scope, etc). |