Skip to main content
Node.js only. Enable on MCPClient to let agents execute JavaScript with access to connected MCP tools.

Enable

Methods

executeCode(code, timeout?)

Runs code with tool namespaces exposed as serverName.toolName(args). Returns ExecutionResult:

searchTools(query?, detailLevel?)

Search tools across active sessions. detailLevel: "names" | "descriptions" | "full". Returns ToolSearchResponse with results and meta (counts, namespaces).

Executors

CodeModeConnector exposes internal execute_code and search_tools MCP tools.

Types