Skip to content

feat: update LATEST - #1105

Merged
alexhancock merged 1 commit into
mainfrom
alexhancock/update-latest-version
Sep 26, 2026
Merged

alexhancock merged 1 commit into
mainfrom
alexhancock/update-latest-version

Conversation

@alexhancock

Copy link
Copy Markdown
Contributor

Simple update of the LATEST alias to V_2026_07_28

Comment thread crates/rmcp/src/model.rs
@github-actions github-actions Bot added the T-test Testing related changes label Aug 10, 2026
@alexhancock
alexhancock force-pushed the alexhancock/update-latest-version branch from d0b9afc to f57db37 Compare August 26, 2026 19:57
@github-actions github-actions Bot added the T-service Service layer changes label Aug 26, 2026
DaleSeo
DaleSeo previously approved these changes Aug 27, 2026

@DaleSeo DaleSeo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexhancock Once the default becomes 2026-07-28, even the initialize handshake will be handled statelessly, so no session will be created. That follows the SEP-2567 direction, but it also means that deployments relying on Mcp-Session-Id could be affected by the upgrade alone, with nothing in the API to signal the change. I'm a bit concerned about the impact, even though this is technically a non-breaking change.

Comment on lines +112 to +115
let client = ClientInfo::default()
.with_protocol_version(ProtocolVersion::V_2025_11_25)
.serve(transport)
.await?;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once we pin this, these tests will only cover 2025-11-25 behavior, and nothing will verify what happens with the new default. What do you feel about adding a companion test that explicitly checks that no session is created at LATEST?

Comment thread crates/rmcp/src/service/server.rs Outdated
Comment on lines 463 to 464

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function no longer returns server_fallback as-is when it isn't in server_supported.

Comment thread crates/rmcp/src/service/server.rs Outdated
tracing::warn!(
client_requested = %client_requested,
server_fallback = %fallback,
"client requested unsupported protocol version; falling back to server default"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the handler's declared fallback isn't in supported_protocol_versions, this field carries the computed replacement.

Suggested change
"client requested unsupported protocol version; falling back to server default"
"client requested unsupported protocol version; falling back to a supported version"

@DaleSeo

DaleSeo commented Sep 15, 2026

Copy link
Copy Markdown
Member

@alexhancock Any updates on this?

@alexhancock

Copy link
Copy Markdown
Contributor Author

@DaleSeo Sorry I got away from this for a bit. Revising now

@alexhancock
alexhancock force-pushed the alexhancock/update-latest-version branch 3 times, most recently from 44f50c0 to 5ecf4d3 Compare September 22, 2026 19:29
@alexhancock
alexhancock force-pushed the alexhancock/update-latest-version branch from 5ecf4d3 to cfbb406 Compare September 25, 2026 18:09

@DaleSeo DaleSeo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🎉

Comment on lines +58 to +63
// Pinned to the handshake lifecycle: this test drives subscriptions over a
// session, which `LATEST` no longer establishes.
fn get_info(&self) -> rmcp::model::ClientInfo {
rmcp::model::ClientInfo::default()
.with_protocol_version(ProtocolVersion::LATEST_WITH_INITIALIZE)
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this version pin still needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-core Core library changes T-service Service layer changes T-test Testing related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants