requiresProtocolHeader static method

bool requiresProtocolHeader(
  1. String version
)

Whether the negotiated version requires the MCP-Protocol-Version HTTP header on every post-handshake request (mandatory from 2025-06-18).

Implementation

static bool requiresProtocolHeader(String version) =>
    version == v2025_06_18 || version == v2025_11_25;