-
Notifications
You must be signed in to change notification settings - Fork 384
Open
Labels
T-bugBug fixes and error correctionsBug fixes and error corrections
Description
Describe the bug
I have a case using RMCP based client connects successfully to the MCP server but it fails to list tools.
The streamable HTTP transport can deliver server-sent notifications (e.g., logging or connection-established events) before the JSON‑RPC initialize response. The previous implementation read only the first SSE frame and treated it as the response, which could stall initialization and cause later requests (like tools/list) to time out. This change makes the handshake resilient by waiting for the actual response.
To Reproduce
Steps to reproduce the behavior:
- Currently I tested using an internal MCP server
Expected behavior
RMCP based client can connect and list tools.
Additional context
I add a patch to show what the fix could be: #467
Metadata
Metadata
Assignees
Labels
T-bugBug fixes and error correctionsBug fixes and error corrections