Exception: MCPClient::Errors::HeaderMismatchError

Inherits:
ServerError show all
Includes:
ModernProtocolError
Defined in:
lib/mcp_client/errors.rb

Overview

-32020 HeaderMismatch (MCP 2026-07-28, Streamable HTTP): the HTTP headers mirrored from the request body (Mcp-Method, Mcp-Name, Mcp-Param-*, MCP-Protocol-Version) are missing, malformed, or do not match the body. Its schema mandates no data.

Instance Attribute Summary

Attributes inherited from ServerError

#code, #data, #http_status

Method Summary

Methods included from ModernProtocolError

#modern_protocol_error?

Methods inherited from ServerError

from_jsonrpc, #initialize, #modern_http_protocol_error?, #modern_protocol_error?, #modern_protocol_error_for_probe?, #protocol_error?, #well_formed?

Methods inherited from MCPError

#era_inconclusive?

Constructor Details

This class inherits a constructor from MCPClient::Errors::ServerError