Expand description
Protocol version negotiation
MCP supports multiple protocol versions. This module handles version negotiation between client and server.
Macros§
- const_
string - Macro for creating compile-time constant string types
Constants§
- DEFAULT_
MIN_ CLIENT_ VERSIONS - Default minimum client versions
- JSON_
RPC_ VERSION - JSON-RPC version (always “2.0”)
- LATEST_
PROTOCOL_ VERSION - Latest supported MCP protocol version
- SUPPORTED_
PROTOCOL_ VERSIONS - All supported protocol versions in order of preference
Functions§
- is_
supported_ protocol_ version - Check if a protocol version is supported
- negotiate_
protocol_ version - Negotiate protocol version between client and server