Class JsonRpcError | MCP C# SDK

Namespace
ModelContextProtocol.Protocol
Assembly
ModelContextProtocol.Core.dll

Represents an error response message in the JSON-RPC protocol.

public sealed class JsonRpcError : JsonRpcMessageWithId
Inheritance

JsonRpcError

Inherited Members

Properties

Error

Gets or sets detailed error information for the failed request, containing an error code, message, and optional additional data.

[JsonPropertyName("error")]
public required JsonRpcErrorDetail Error { get; set; }

Property Value

JsonRpcErrorDetail