fromClient
Creates a ToolRegistry with tools from an existing MCP client.
This method retrieves all available tools from the MCP server using the provided client, transforms them into the agent framework's Tool interface, and registers them in a ToolRegistry.
Return
A ToolRegistry containing all tools from the MCP server.
Parameters
The MCP client connected to an MCP server.
Information about the MCP server.
Deprecated
Use fromClient with serverInfo param
Creates a ToolRegistry with tools from an existing MCP client.
This method retrieves all available tools from the MCP server using the provided client, transforms them into the agent framework's Tool interface, and registers them in a ToolRegistry.
Return
A ToolRegistry containing all tools from the MCP server.
Parameters
The MCP client connected to an MCP server.