fromTransport
suspend fun fromTransport(transport: Transport, serverInfo: McpServerInfo, mcpToolParser: McpToolDescriptorParser = DefaultMcpToolDescriptorParser, name: String = DEFAULT_MCP_CLIENT_NAME, version: String = DEFAULT_MCP_CLIENT_VERSION): ToolRegistry(source)
Creates a ToolRegistry with tools from an MCP server using provided transport for communication.
This method establishes a connection to an MCP server through provided transport. It's typically used when the MCP server is running as a separate process (e.g., a Docker container or a CLI tool).
Return
A ToolRegistry containing all tools from the MCP server.
Parameters
transport
The transport to use.
serverInfo
Information about the MCP server.
name
The name of the MCP client.
version
The version of the MCP client.