Exception: MCPClient::Errors::InvalidResultError
- Inherits:
-
ServerError
- Object
- StandardError
- MCPError
- ServerError
- MCPClient::Errors::InvalidResultError
- Defined in:
- lib/mcp_client/errors.rb
Overview
Raised when a server result is malformed at the protocol level — e.g.
its resultType is a value this client does not recognize, which MCP
2026-07-28 says MUST be considered invalid. A ServerError (not a
TransportError) so it is never retried: the server processed the
request and answered; re-sending would not produce a different shape.
Instance Attribute Summary
Attributes inherited from ServerError
Instance Method Summary collapse
-
#protocol_error? ⇒ Boolean
Always true: an invalid result is a protocol-level failure.
Methods inherited from ServerError
from_jsonrpc, #initialize, #modern_http_protocol_error?, #modern_protocol_error?, #modern_protocol_error_for_probe?, #well_formed?
Methods inherited from MCPError
Constructor Details
This class inherits a constructor from MCPClient::Errors::ServerError
Instance Method Details
#protocol_error? ⇒ Boolean
Returns always true: an invalid result is a protocol-level failure.
478 479 480 |
# File 'lib/mcp_client/errors.rb', line 478 def protocol_error? true end |