chore: bump rmcp 0.12 -> 1.5 + schemars 0.8 -> 1.2#30
Merged
radiosilence merged 1 commit intomainfrom Apr 18, 2026
Merged
Conversation
rmcp went 1.0 which added #[non_exhaustive] to ServerInfo and Implementation. Can't use struct-literal construction anymore — switched to the builder API (ServerInfo::new / Implementation::new with with_* chained setters). Reads cleaner anyway. schemars is bumped alongside because rmcp re-exports it. The only derive site is GraphqlRequest; 1.x is a drop-in there. Added #[allow(dead_code)] on tool_router field — proc-macro generated code references it but dead-code analysis can't see through the macro. All 89 tests pass, clippy clean. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two bumps that have to travel together — `rmcp` re-exports `schemars`, so a mismatched pair breaks the derive.
`rmcp` 0.12 → 1.5
The 1.0 release added `#[non_exhaustive]` to model structs, so `ServerInfo { ... }` and `Implementation { ... }` struct-literal construction no longer compiles. Rewrote `get_info()` using the builder API that\x27s been there all along:
```rust
let server_info = Implementation::new("fastmail-cli", env!("CARGO_PKG_VERSION"))
.with_title("Fastmail MCP Server")
.with_website_url("https://github.com/radiosilence/fastmail-cli\");
ServerInfo::new(ServerCapabilities::builder().enable_tools().build())
.with_protocol_version(rmcp::model::ProtocolVersion::V_2024_11_05)
.with_server_info(server_info)
.with_instructions(...)
```
Reads cleaner than the old literal form. The proc-macros (`#[tool]`, `#[tool_router]`, `#[tool_handler]`) are unchanged in surface.
`schemars` 0.8 → 1.2
One derive site (`GraphqlRequest`). No API change hits our usage; the `visit` module / `RootSchema` removals don\x27t touch us.
Dead-code warning
Added `#[allow(dead_code)]` on `tool_router: ToolRouter`. The `#[tool_handler]` proc-macro references it in its expansion, but dead-code analysis can\x27t see through the macro — same pattern in rmcp\x27s own tests.
Test plan
🤖 Generated with Claude Code