quickstart-resources/mcp-client-rust
Repository files (latest commit first)
Filename Latest commit message Latest commit date
olaservo d6cf28629f 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>
2026-08-09 15:36:38 -07:00
..
src Add structured output to the Rust weather server and client 2026-08-09 15:36:38 -07:00
Cargo.lock Update to rmcp 3.1.0 2026-08-09 15:36:38 -07:00
Cargo.toml Update to rmcp 3.1.0 2026-08-09 15:36:38 -07:00
README.md Add structured output to the Rust weather server and client 2026-08-09 15:36:38 -07:00

An LLM-Powered Chatbot MCP Client written in Rust

See the Build an MCP client tutorial for more information.

Structured output

rmcp does not validate tool output, so this client compiles each declared outputSchema at connect time and checks results against it — the spec's client-side SHOULD. It uses the jsonschema crate, which rmcp's own documentation recommends.

The two channels go to different readers: content is forwarded to the model, while structured_content is used as data — the client counts the items it returns. See Structured Content.