- Namespace
- ModelContextProtocol.Protocol
- Assembly
- ModelContextProtocol.Core.dll
Represents any JSON-RPC message used in the Model Context Protocol (MCP).
[JsonConverter(typeof(JsonRpcMessage.Converter))]
public abstract class JsonRpcMessage
- Inheritance
-
JsonRpcMessage
- Derived
- Inherited Members
Properties
Context
Gets or sets the contextual information for this JSON-RPC message.
[JsonIgnore]
public JsonRpcMessageContext? Context { get; set; }
Property Value
JsonRpc
Gets or sets the JSON-RPC protocol version used.
[JsonPropertyName("jsonrpc")]
public string JsonRpc { get; set; }