Class HttpSseMcpClient

Assembly: redb.Route.Llm.Mcp.dll

HTTP + SSE transport. POSTs JSON-RPC requests to the base URL, opens a parallel
SSE channel (GET) for server-initiated frames (notifications, tools/list_changed).
Bearer auth via .

public sealed class HttpSseMcpClient : McpClientBase, IMcpClient, IAsyncDisposable

Inheritance

Object→McpClientBase→HttpSseMcpClient

Implements

Inherited Members

Methods

SendFrameAsync(string, CancellationToken)

Writes a single JSON frame to the server. Implementations must serialize concurrent writes.

protected override Task SendFrameAsync(string frameJson, CancellationToken cancellationToken)

StartTransportAsync(CancellationToken)

Brings up the byte-level transport (e.g. spawn process, open HTTP/SSE channels).

protected override Task StartTransportAsync(CancellationToken cancellationToken)

StopTransportAsync()

Tears the transport down. Should not throw on already-stopped state.

protected override Task StopTransportAsync()

Constructors