Module transport

Source
Expand description

Transport layer for the MCP protocol handles the serialization and deserialization of message handles send and receive of messages defines transport layer types

Structs§

ClientInMemoryTransport
Client-side transport that communicates with a spawned server task
ClientSseTransport
Client-side SSE transport that sends messages via HTTP POST and receives responses via SSE
ClientStdioTransport
ClientStdioTransport launches a child process and communicates with it via stdio
JsonRpcError
JsonRpcNotification
JsonRpcRequest
JsonRpcResponse
JsonRpcVersion
JSON RPC version type
ServerInMemoryTransport
Server-side transport that receives messages from a channel
ServerSseTransport
ServerStdioTransport
Stdio transport for server with json serialization TODO: support for other binary serialzation formats

Enums§

JsonRpcMessage
SseEvent

Traits§

Transport

Type Aliases§

Message
only JsonRpcMessage is supported for now https://spec.modelcontextprotocol.io/specification/basic/messages/
RequestId
Request ID type