Raised when a connected peer returns a syntactically valid JSON-RPC message that does not satisfy the negotiated MCP method schema.
The offending payload is deliberately not retained: responses can contain
credentials or user data. violations contains the bounded JSON-Schema
diagnostics produced by FastestMCP.Schema.
Summary
Types
@type t() :: %FastestMCP.Client.ProtocolError{ __exception__: term(), direction: :client_to_server | :server_to_client, errors: [map()], kind: :request | :notification | :response | :task_response, message: String.t(), method: String.t(), request_id: String.t() | integer() | nil, violations: [map()] }