class

Smith::MCP::Transport

Inherits Reference < Object

Instance methods

close
Source
failure_hint

Why the stream died, when the transport knows more than "EOF". stdio has nothing to add; an HTTP transport can say which status or which network error it was. Read once, when the pending callers are abandoned.

Source
receive

nil at end of stream. Blocking; called only from the reader fiber.

Source
send(line : String) : Nil

One complete message. Framing is line-based, so neither side may embed a raw newline — JSON escapes them, which is why this works at all.

Source
stderr_tail

A subprocess's own stderr, kept so a failed handshake can say what the process actually complained about. Only stdio has one.

Source