Skip to main content
MCP list tools node that lists available tools from an MCP server. This node connects to an MCP server and retrieves the list of available tools. It takes no inputs and returns a ListToolsResponseData containing all available tools. Input: any - The data type that MCPListToolsNode accepts as input Output: GraphTypes.ListToolsResponse - The data type that MCPListToolsNode outputs Example:
const mcpComponent = new MCPClientComponent({ id: 'my-mcp-component', sessionConfig: { ... } });
const mcpListToolsNode = new MCPListToolsNode({
  mcpComponent,
  reportToClient: true
});

Constructor

new MCPListToolsNode(
    props: MCPListToolsNodeProps | MCPListToolsNodePropsWithComponent
): MCPListToolsNode
Creates a new MCPListToolsNode instance.

Parameters

props (MCPListToolsNodeProps | MCPListToolsNodePropsWithComponent) Configuration for the MCP list tools node. Can provide either sessionConfig to create a new internal component, or pass mcpComponent to reuse an existing one.

Returns

MCPListToolsNode Overrides AbstractNode.constructor