class

MCPC::Transport

Inherits Reference < Object

Base MCP protocol transport, with some helpers

Constructors

new(tracing : Bool = false, auth_token : Nil | SensitiveData(String) = nil)
Source

Instance methods

close

Clean up the transport and close all underlying client connections; renders the transport unusable permanently

Source
notify(body, & : JSON::Any | ErrorDetails -> )

Send a notification. Yields a JSON::Any for valid data: in the response, or ErrorDetails for unknown response.

Source
post(body, & : JSON::Any | ErrorDetails -> )

Send a request. Yields a JSON::Any for valid data: in the response, or ErrorDetails for unknown response.

Source
tracing=(tracing : Bool)

Control network traffic tracing sent to STDERR

Source
tracing?

Control network traffic tracing sent to STDERR

Source

Nested types