Skip to main content

Module mcp_tool

Module mcp_tool 

Source
Expand description

Executor for McpTool workflow nodes.

When a workflow node has kind McpTool, this executor:

  1. Resolves the MCP server configuration from the workflow IR.
  2. Connects to the MCP server (stdio or HTTP).
  3. Sends the initialize handshake.
  4. Invokes the specified tool with mapped inputs.
  5. Returns the tool’s output as the node result.

Each invocation opens a fresh connection. For Phase 2, connection pooling and persistent stdio processes can be added.

Structs§

McpToolExecutor
Executor for mcp_tool nodes.