MCP::Transport
Inherits Reference < Object
Abstract base class defining the transport contract for MCP communication.
Transports handle the low-level communication with MCP servers. Implementations can use STDIO, HTTP, WebSocket, or other protocols.
Instance methods
receive_message
Receive a message from the MCP server.
Returns nil if no message is available.
send_progress(token : String, progress : Int32, total : Int32, message : String | Nil = nil) : Nil
Send a progress update for a long-running operation. This is an optional feature - default implementation does nothing.