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
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
ServerStdioTransport
Stdio transport for server with json serialization TODO: support for other binary serialzation formats

Enums§

JsonRpcMessage

Traits§

Transport

Type Aliases§

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