A Model Context Protocol (MCP) server for executing JavaScript code using Vimble.
- Execute arbitrary JavaScript code in a sandboxed environment.
- Time-limited execution (10 second default) to prevent runaway scripts.
- Debug mode for verbose logging.
- node/npx
Add the following to your MCP JSON configuration
{
"mcpServers": {
...
"vimble-mcp": {
"command": "npx",
"args": [ "-y", "vimble-mcp"]
}
}
}
- Name: execute_javascript
- Description: Execute JavaScript code. Use
console.log
to emit output. - Input Schema:
{
code: string; // JavaScript code to execute
context?: object; // Optional context injected into the execution environment
}
- Response:
{
content: [{ type: "text", text: string }];
success: boolean;
error?: string;
}
This project is licensed under the MIT License