MCPC::HttpTransport
Inherits MCPC::Transport < Reference < Object
MCP HTTP modern transport that uses a single POST connection to carry request and responses
Constructors
new(url : String | URI, tracing = false, auth_token = nil)
SourceInstance methods
close
Clean up the transport and close all underlying client connections; renders the transport unusable permanently
mcp_protocol_version
Sourcemcp_protocol_version=(mcp_protocol_version : String | Nil)
Sourcemcp_session_id
Sourcenotify(body, & : JSON::Any | ErrorDetails -> )
Send a notification. Yields a JSON::Any for valid data: in the response, or ErrorDetails for unknown
response.
post(body, & : JSON::Any | ErrorDetails -> )
Send a request. Yields a JSON::Any for valid data: in the response, or ErrorDetails for unknown
response.
uri
Source