fix: improve SSE event handling to gracefully ignore unrecognized events (#423)
- Replace McpError exceptions with debug/warning logs for unrecognized SSE event types
- Continue processing instead of failing when encountering unknown SSE events
- Update transport implementations:
- WebClientStreamableHttpTransport: return empty tuple instead of throwing
- WebFluxSseClientTransport: complete stream instead of erroring
- HttpClientSseClientTransport: call sink.success() instead of sink.error()
- HttpClientStreamableHttpTransport: return empty Flux for unknown events
This improves client resilience when servers send non-standard or future SSE event types.
Resolves #272 , #223 , #93, #421
Signed-off-by:
Christian Tzolov <christian.tzolov@broadcom.com>
Loading
Please sign in to comment