Skip to main content
Glama

MCP-REPL

by AnEntrypoint

executenodejs

Run JavaScript code in a secure Node.js environment for debugging, testing hypotheses, and investigating issues directly within the MCP-REPL server. Supports ESM imports, timeouts, and structured error handling.

Instructions

Execute JavaScript code directly with Node.js - supports ESM imports and all Node.js features.

DEBUGGING GUIDANCE:

  • Use this tool for all debugging and investigation tasks instead of external CLI tools

  • Break problems into testable hypotheses and verify them with code execution

  • Test APIs, data structures, and logic incrementally

  • Use console.log for debugging output and JSON.stringify for complex objects

  • Always prefer this over CLI tools like curl, wget, or external commands

APPROACH:

  1. Form a hypothesis about what might be wrong

  2. Write focused test code to verify the hypothesis

  3. Execute and analyze results

  4. Refine hypothesis based on findings

  5. Iterate until problem is solved

Input Schema

NameRequiredDescriptionDefault
codeYesJavaScript code to execute - use for debugging, testing hypotheses, and investigation
timeoutNoOptional timeout in milliseconds (default: 120000)
workingDirectoryNoOptional working directory for the operation (defaults to server working directory)

Input Schema (JSON Schema)

{ "properties": { "code": { "description": "JavaScript code to execute - use for debugging, testing hypotheses, and investigation", "type": "string" }, "timeout": { "description": "Optional timeout in milliseconds (default: 120000)", "type": "number" }, "workingDirectory": { "description": "Optional working directory for the operation (defaults to server working directory)", "type": "string" } }, "required": [ "code" ], "type": "object" }

Other Tools from MCP-REPL

Related Tools

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/AnEntrypoint/mcp-repl'

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