Interface IJsonRpcMessage
- Namespace
- ModelContextProtocol.Protocol.Messages
- Assembly
- ModelContextProtocol.dll
Represents any JSON-RPC message used in the Model Context Protocol (MCP).
[JsonConverter(typeof(JsonRpcMessageConverter))]
public interface IJsonRpcMessage
Remarks
This interface serves as the foundation for all message types in the JSON-RPC 2.0 protocol used by MCP, including requests, responses, notifications, and errors. JSON-RPC is a stateless, lightweight remote procedure call (RPC) protocol that uses JSON as its data format.
Properties
JsonRpc
Gets the JSON-RPC protocol version used.
string JsonRpc { get; }