ruby-sdk/test/mcp/client
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ates Goral b832933f9f Parse SSE responses in HTTP client via event_stream_parser
The Streamable HTTP spec allows servers to respond with either
`application/json` or `text/event-stream`. The client previously
rejected the latter. Add SSE parsing via the optional
`event_stream_parser` gem (users add it to their Gemfile when their
server uses SSE), dispatch on the response Content-Type, and scan the
event stream for the first JSON-RPC response message.

Document the new optional dependency in both the README's HTTP
Transport Layer section and docs/building-clients.md.

No other Streamable HTTP features (202 handling, session IDs,
`connect`, DELETE termination) are included here; those will land in
follow-up PRs.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-19 11:54:03 -04:00
..
http_test.rb Parse SSE responses in HTTP client via event_stream_parser 2026-04-19 11:54:03 -04:00
stdio_test.rb Join server threads before closing IO pipes in stdio client tests 2026-03-31 04:34:21 +09:00
tool_test.rb Add Tool output_schema support with comprehensive validation 2025-09-11 11:12:27 -04:00