MCP::Client::StreamableHttpClientTransport
Inherits MCP::Shared::AbstractTransport < MCP::Shared::Transport < Reference < Object
Constants
JSON_MIME = "application/json"
MCP_SESSION_ID = "Mcp-Session-Id"
SSE_MIME = "text/event-stream"
Constructors
Instance methods
close
Close the done channel. The actor fiber will drain the inbox, clean up the session, and call _on_close. If start was never called, close immediately.
send(message : MCP::Protocol::JSONRPCMessage)
Enqueue a message for the actor fiber to POST. Non-blocking.
start
Spawns the actor fiber that owns all transport state (HTTP client, session ID) and runs the for-select event loop.
uri
Source