Module version

Module version 

Source
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