From 2930ca8ee9bf0866776ce065bd254d8673d75aea Mon Sep 17 00:00:00 2001 From: Alex Hancock Date: Thu, 30 Jul 2026 20:39:50 -0400 Subject: [PATCH 1/2] feat: update LATEST --- crates/rmcp/src/model.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rmcp/src/model.rs b/crates/rmcp/src/model.rs index 06ed855e1..bcc2c32a1 100644 --- a/crates/rmcp/src/model.rs +++ b/crates/rmcp/src/model.rs @@ -172,7 +172,7 @@ impl ProtocolVersion { pub const V_2025_06_18: Self = Self(Cow::Borrowed("2025-06-18")); pub const V_2025_03_26: Self = Self(Cow::Borrowed("2025-03-26")); pub const V_2024_11_05: Self = Self(Cow::Borrowed("2024-11-05")); - pub const LATEST: Self = Self::V_2025_11_25; + pub const LATEST: Self = Self::V_2026_07_28; /// First protocol version that requires SEP-2243 standard HTTP headers. pub const STANDARD_HEADERS: Self = Self::V_2026_07_28; From d0b9afcf8334f7e0c96a1e34d243a5850fcdd4bc Mon Sep 17 00:00:00 2001 From: Alex Hancock Date: Mon, 10 Aug 2026 17:34:00 -0400 Subject: [PATCH 2/2] test: derive expected version from ProtocolVersion::LATEST Addresses review feedback: the tests hardcoded 2025-11-25 while asserting against ProtocolVersion::LATEST, so they broke on the bump. Deriving from LATEST keeps them correct across future bumps. --- crates/rmcp/tests/test_server_initialization.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/rmcp/tests/test_server_initialization.rs b/crates/rmcp/tests/test_server_initialization.rs index 6542e295b..19291a557 100644 --- a/crates/rmcp/tests/test_server_initialization.rs +++ b/crates/rmcp/tests/test_server_initialization.rs @@ -268,7 +268,7 @@ async fn server_echoes_client_protocol_version_when_known_old() { #[tokio::test] async fn server_echoes_client_protocol_version_when_latest() { - let negotiated = negotiate_version(TestServer::new(), "2025-11-25").await; + let negotiated = negotiate_version(TestServer::new(), ProtocolVersion::LATEST.as_str()).await; assert_eq!(negotiated, ProtocolVersion::LATEST); } @@ -289,7 +289,7 @@ impl ServerHandler for PinnedServer { #[tokio::test] async fn server_pinned_version_does_not_override_known_client_request() { - let negotiated = negotiate_version(PinnedServer, "2025-11-25").await; + let negotiated = negotiate_version(PinnedServer, ProtocolVersion::LATEST.as_str()).await; assert_eq!(negotiated, ProtocolVersion::LATEST); }