class

ModelContextProtocol::Transport::Base

Inherits Reference < Object

Abstract base class for all MCP transports

Instance methods

close

Close the transport

Source
on_notification

Handle incoming notifications

Source
on_request

Handle incoming requests

Source
send_notification(notification : Messages::Notification) : Nil

Send a notification (no response expected)

Source
send_request(request : Messages::Request) : Messages::Response

Send a request and wait for response

Source