Expand description
Protocol version types and negotiation.
This module provides a type-safe representation of MCP protocol versions with capability detection methods for version-specific features.
§Protocol Version History
| Version | Date | Key Changes |
|---|---|---|
| 2024-11-05 | Nov 2024 | Initial MCP specification, HTTP+SSE transport |
| 2025-03-26 | Mar 2025 | OAuth 2.1, Streamable HTTP, batching, tool annotations, audio |
| 2025-06-18 | Jun 2025 | Elicitation, structured output, resource links, removed batching |
| 2025-11-25 | Nov 2025 | Tasks, parallel tools, server-side agent loops |
§Example
use mcpkit_core::protocol_version::ProtocolVersion;
// Parse version from string
let version: ProtocolVersion = "2025-03-26".parse().unwrap();
// Check feature support
assert!(version.supports_oauth());
assert!(version.supports_tool_annotations());
assert!(!version.supports_elicitation()); // Added in 2025-06-18
// Version comparison
assert!(ProtocolVersion::V2025_11_25 > ProtocolVersion::V2024_11_05);Structs§
- Version
Parse Error - Error returned when parsing an unknown protocol version string.
Enums§
- Protocol
Version - MCP protocol versions in chronological order.