class

MCP::Shared::InMemoryTransport

Inherits MCP::Shared::AbstractTransport < MCP::Shared::Transport < Reference < Object

Class methods

create_linked_pair

Creates a pair of linked in-memory transports that can communicate with each other. One should be passed to a Client and one to a Server.

Source

Instance methods

close

Closes the connection

Source
other_transport
Source
other_transport=(other_transport : InMemoryTransport | Nil)
Source
send(message : JSONRPCMessage)

Sends a JSON-RPC message

Source
start

Starts processing messages, including any connection steps

Source