requiresProtocolHeader static method

bool requiresProtocolHeader(
  1. String version
)

Whether the negotiated version understands the MCP-Protocol-Version HTTP header (mandatory after negotiation from 2025-06-18 onwards).

Implementation

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