java-sdk/mcp-spring
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Christian Tzolov c3a0b1855a 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>
2025-07-25 12:13:37 +02:00
..
mcp-spring-webflux fix: improve SSE event handling to gracefully ignore unrecognized events (#423) 2025-07-25 12:13:37 +02:00
mcp-spring-webmvc cleanup: Cleaned up some unused imports. (#358) 2025-07-14 11:14:17 +02:00