Skip to main content

Input

Type: GraphTypes.ToolCallRequest The data type that MCPCallToolNode accepts as input

Output

Type: GraphTypes.ToolCallResponse The data type that MCPCallToolNode outputs

Examples

const mcpComponent = new MCPClientComponent({ sessionConfig: { ... } });
const mcpCallToolNode = new MCPCallToolNode({
mcpComponent,
reportToClient: true
});

Constructors

Interfaces


Constructors

constructor

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

Parameters

props
MCPCallToolNodeProps | MCPCallToolNodeWithComponentProps
required
Configuration for the MCP call tool node.

Returns

MCPCallToolNode

Interfaces

MCPCallToolNodeProps

Properties

sessionConfig: Config MCP session configuration for establishing the connection to the MCP server.

MCPCallToolNodeWithComponentProps

Configuration interface for MCPCallToolNode creation.

Properties

mcpComponent: MCPClientComponent Existing MCP component to use.