quickstart-resources/weather-server-rust
Repository files (latest commit first)
Filename Latest commit message Latest commit date
olaservo b625be7725 Link the dated spec revision, not /draft
The surrounding sentence names 2026-07-28 as the revision that first allows
an array-rooted schema, but the link pointed at /draft, which moves on to
the next revision and stops matching the claim.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-16 18:21:17 -07:00
..
src Drop the hand-written list_tools now that rmcp emits cache hints 2026-08-09 17:52:24 -07:00
Cargo.lock Drop the hand-written list_tools now that rmcp emits cache hints 2026-08-09 17:52:24 -07:00
Cargo.toml Update to rmcp 3.1.0 2026-08-09 15:36:38 -07:00
README.md Link the dated spec revision, not /draft 2026-08-16 18:21:17 -07:00

A Simple MCP Weather Server written in Rust

See the Build an MCP server tutorial for more information.

Structured content

Both tools declare an output_schema and return structured_content. get_forecast returns an object; get_alerts returns a top-level JSON array, which protocol revision 2026-07-28 is the first to allow — see Structured Content in the spec.

Note that an array-rooted schema requires a 2026-07-28 client: rmcp sends it as written on every connection rather than projecting it down, so an older client rejects the tool list.