Module schema_utils

Source
Expand description

re-exports

Structs§

ClientJsonrpcNotification
“Similar to JsonrpcNotification , but with the variants restricted to client-side notifications.”
ClientJsonrpcRequest
“Similar to JsonrpcRequest , but with the variants restricted to client-side requests.”
ClientJsonrpcResponse
“Similar to JsonrpcResponse , but with the variants restricted to client-side responses.”
ServerJsonrpcNotification
“Similar to JsonrpcNotification , but with the variants restricted to server-side notifications.”
ServerJsonrpcRequest
“Similar to JsonrpcRequest , but with the variants restricted to client-side requests.”
ServerJsonrpcResponse
“Similar to JsonrpcResponse , but with the variants restricted to server-side responses.”

Enums§

ClientMessage
“Similar to JsonrpcMessage, but with the variants restricted to client-side messages.” ClientMessage represents a message sent by an MCP Client and received by an MCP Server.
MessageTypes
NotificationFromClient
To determine standard and custom notifications received from the MCP Client Custom notifications are of type serde_json::Value and can be deserialized into any custom type.
NotificationFromServer
To determine standard and custom notifications received from the MCP Server Custom notifications are of type serde_json::Value and can be deserialized into any custom type.
RequestFromClient
To determine standard and custom request from the client side Custom requests are of type serde_json::Value and can be deserialized into any custom type.
RequestFromServer
To determine standard and custom request from the server side Custom requests are of type serde_json::Value and can be deserialized into any custom type.
ResultFromClient
To determine standard and custom results from the client side Custom results (CustomResult) are of type serde_json::Value and can be deserialized into any custom type.
ResultFromServer
To determine standard and custom results from the server side Custom results (CustomResult) are of type serde_json::Value and can be deserialized into any custom type.
RpcErrorCodes
Enum representing standard JSON-RPC error codes.
ServerMessage
“Similar to JsonrpcMessage, but with the variants restricted to client-side messages.” ServerMessage represents a message sent by an MCP Server and received by an MCP Client.

Traits§

MCPMessage