Skip to content

SSE handler callback not triggered for GET:/mcp in WebClientStreamableHttpTransport #316

@qnnn

Description

@qnnn

Hi @chemicL ,
I've observed an issue where the SSE handler callback is not being triggered for GET:/mcp in WebClientStreamableHttpTransport.

The reconnect(null) call in WebClientStreamableHttpTransport consumes the jsonrpcMessage but fails to execute the corresponding SSE handler callback for endpoint GET:/mcp.

if (transportSession
.markInitialized(response.headers().asHttpHeaders().getFirst("mcp-session-id"))) {
// Once we have a session, we try to open an async stream for
// the server to send notifications and requests out-of-band.
reconnect(null).contextWrite(sink.contextView()).subscribe();
}

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions