@focus-mcp/brick-sandbox
v1.2.2
Published
Sandboxed code execution — run JavaScript/TypeScript snippets in an isolated VM context.
Maintainers
Readme
@focusmcp/sandbox
Sandboxed code execution — run JavaScript snippets in an isolated Node.js VM context.
Tools
| Tool | Exposed as | Description |
|------|-----------|-------------|
| run | box_run | Execute a JavaScript snippet in a sandboxed VM context |
| file | box_file | Read a JS file and execute it in the sandbox |
| eval | box_eval | Evaluate a single JavaScript expression |
| languages | box_languages | List supported languages and their status |
Security
- Uses Node.js
node:vmmodule — no unsafe dynamic evaluation methods - Isolated context:
process,require,__dirname,globalare not available - Configurable execution timeout (default: 5000ms for
run/file, 2000ms foreval) - Errors are caught and returned gracefully — no exceptions propagate to the caller
