StreamableHttpConfig

Configuration for connecting to an MCP server over the Streamable HTTP transport.

Used as the receiver of the configuration lambda passed to streamableHttp. The url property is required; the remaining properties have sensible defaults and are optional.

Example:

val registry = McpToolRegistryProvider.streamableHttp {
url = "http://localhost:3000/mcp"
}

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

HttpClient used for the MCP connection. Must have the Ktor SSE plugin installed (the Streamable HTTP transport relies on it).

Link copied to clipboard

Custom MCP tool descriptor parser.

Link copied to clipboard

Client name reported to the server.

Link copied to clipboard
lateinit var url: String

MCP server URL (required).

Link copied to clipboard

Client version reported to the server.