Describes the minimal contract for a MCP transport that a client or server can communicate over.
Callback for when the connection is closed for any reason.
Callback for when an error occurs.
Callback for when a message (request or response) is received over the connection.
Closes the connection.
Sends a JSON-RPC message (request or response).
Starts processing messages on the transport, including any connection steps that might need to be taken.