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) =>
    _isAtLeast(version, v2025_06_18);