Optionaloptions: VMExecutorOptionsClean up resources. VM executor doesn't need cleanup, but method kept for interface consistency.
Create a search function for discovering available MCP tools. Used by code execution environments to find tools at runtime.
Execute JavaScript/TypeScript code with access to MCP tools.
Code to execute
Optionaltimeout: number
Execution timeout in milliseconds (default: configured timeout or 30000)
VM-based code executor using Node.js vm module. Executes code in an isolated V8 context with access to MCP tools.