Skip to main content
MCP call tool node that calls multiple tools on an MCP server in parallel. This node processes tool call requests and executes them against the configured MCP server, returning the results of all tool executions. Input: GraphTypes.ToolCallRequest - The data type that MCPCallToolNode accepts as input Output: GraphTypes.ToolCallResponse - The data type that MCPCallToolNode outputs Example:
const mcpComponent = new MCPClientComponent({ sessionConfig: { ... } });
const mcpCallToolNode = new MCPCallToolNode({
  mcpComponent,
  reportToClient: true
});

Constructor

new MCPCallToolNode(
    props: MCPCallToolNodeProps | MCPCallToolNodeWithComponentProps
): MCPCallToolNode
Creates a new MCPCallToolNode instance.

Parameters

props (MCPCallToolNodeProps | MCPCallToolNodeWithComponentProps) Configuration for the MCP call tool node. Can provide either sessionConfig to create a new internal component, or pass mcpComponent to reuse an existing one.

Returns

MCPCallToolNode Overrides AbstractNode.constructor