class RubyLLM::MCP::Error
Raised when an MCP server answers with a JSON-RPC error, an unexpected HTTP status, or not at all.
begin github.search_issues(query: "flaky") rescue RubyLLM::MCP::Error => e e.code # => -32602 end
Attributes
The JSON-RPC error code, or nil when the failure had none.
Additional information the server attached to the error, or nil.