ruby-sdk/lib/mcp/client
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ates Goral cfc42dbfe7 Handle 202 Accepted response in HTTP client
Per the Streamable HTTP spec, a server returns 202 Accepted with no
body as the ACK for a JSON-RPC notification or response. The client
previously errored on 202 because it fell through Content-Type
dispatch. Short-circuit to return nil before Content-Type handling so
fire-and-forget messages (e.g. notifications/initialized) no longer
raise.

https://modelcontextprotocol.io/specification/2025-11-25/basic/transports#sending-messages-to-the-server

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-19 14:06:07 -04:00
..
http.rb Handle 202 Accepted response in HTTP client 2026-04-19 14:06:07 -04:00
paginated_result.rb Support pagination per MCP specification 2026-04-18 18:23:30 +09:00
stdio.rb Add MCP::Client::Stdio transport 2026-03-19 12:41:27 +09:00
tool.rb Add Tool output_schema support with comprehensive validation 2025-09-11 11:12:27 -04:00