Update to rmcp 3.1.0

rmcp left beta on 2026-07-28 and reached 3.1.0 on 2026-07-31, so the pin
moves off 3.0.0-beta.2.

get_info now sets server_info. ServerInfo::default() reports rmcp own crate
name and version, so the server was identifying itself as rmcp 3.1.0
rather than weather 1.0.0 as the other three quickstarts do.

The hand-written list_tools stays: rmcp-macros 3.1.0 still generates
ttl_ms: None, cache_scope: None, which a strict client rejects.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
olaservo 2026-08-01 11:08:28 -07:00
commit d6cf28629f

View file

@ -286,6 +286,9 @@ impl Weather {
impl ServerHandler for Weather {
fn get_info(&self) -> ServerInfo {
let mut info = ServerInfo::default();
// Without this the server reports rmcp's own crate name and version
// rather than its own.
info.server_info = Implementation::new("weather", "1.0.0");
info.capabilities = ServerCapabilities::builder().enable_tools().build();
info
}