ruby-sdk/lib
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ates Goral ff3a42f3fb Add HTTP client close for explicit session termination
Per MCP spec, clients that no longer need a session SHOULD send an HTTP
DELETE to the MCP endpoint with the Mcp-Session-Id header to explicitly
terminate it. Servers MAY respond with 405 Method Not Allowed when they
don't support client-initiated termination.

`MCP::Client::HTTP#close` sends the DELETE with session headers, clears
local session state regardless of outcome, and is a no-op when no
session has been established.

https://modelcontextprotocol.io/specification/2025-11-25/basic/transports#session-management
2026-04-20 13:58:41 -04:00
..
mcp Add HTTP client close for explicit session termination 2026-04-20 13:58:41 -04:00
json_rpc_handler.rb Support elicitation/create per MCP specification 2026-04-13 15:21:45 +09:00
mcp.rb Introduce ServerSession for per-connection state 2026-03-29 08:04:56 +09:00