sse

fun sse(url: String, mcpToolParser: McpToolDescriptorParser = DefaultMcpToolDescriptorParser, name: String = DEFAULT_MCP_CLIENT_NAME, version: String = DEFAULT_MCP_CLIENT_VERSION)(source)

Registers tools from an MCP server using server-sent events (SSE) transport.

This method establishes an SSE connection to an MCP server at the given URL to retrieve and register tools in the tool registry.

Parameters

url

The URL to establish the SSE connection with the MCP server.

mcpToolParser

A parser for converting the MCP SDK tool definitions into a standardized format. Defaults to DefaultMcpToolDescriptorParser.

name

The name of the MCP client. Defaults to DEFAULT_MCP_CLIENT_NAME.

version

The version of the MCP client. Defaults to DEFAULT_MCP_CLIENT_VERSION.