McpToolRegistryProvider
A provider for creating tool registries that connect to Model Context Protocol (MCP) servers.
This class facilitates the integration of MCP tools into the agent framework by:
Connecting to MCP servers through various transport mechanisms (stdio, SSE)
Retrieving available tools from the MCP server
Transforming MCP tools into the agent framework's Tool interface
Registering the transformed tools in a ToolRegistry
Properties
Functions
Creates a default server-sent events (SSE) transport from a provided URL.
Creates a default standard input/output transport for a provided process.
Creates a ToolRegistry with tools from an existing MCP client.
Creates a Mcp ToolRegistry instance from a process using default standard input/output transport.
Creates a ToolRegistry with tools from an MCP server using a server-sent events (SSE) transport.
Creates a ToolRegistry with tools from an MCP server using provided transport for communication.