Skip to content

feat!: upgrade rmcp SDK from 0.16 to 1.x#46

Merged
nazq merged 2 commits intomainfrom
deps-tasks-oauth
Mar 6, 2026
Merged

feat!: upgrade rmcp SDK from 0.16 to 1.x#46
nazq merged 2 commits intomainfrom
deps-tasks-oauth

Conversation

@nazq
Copy link
Copy Markdown
Owner

@nazq nazq commented Mar 6, 2026

Summary

  • Upgrade rmcp SDK from 0.16 to 1.x — all model structs migrated from struct literals to ::new() + .with_*() builder pattern (#[non_exhaustive])
  • ProtocolVersion::LATEST is 2025-06-18 in rmcp 1.x (SDK hasn't added 2025-11-25 yet — our docs reference the current MCP spec 2025-11-25)
  • Filed upstream fix for #[task_handler] macro deprecated type aliases (rust-sdk#727)
  • Net -77 lines — builders are more concise than struct literals

Changes

Area What changed
Cargo.toml rmcp 0.161.1
src/server.rs ServerInfo, ServerCapabilities, CompleteResult → builders; StreamableHttpServerConfig gains json_response field
src/prompts/templates.rs Prompt, PromptArgument, PromptMessage → builders
src/prompts/mod.rs GetPromptResult → builder
src/resources/mod.rs ListResourcesResult, ListResourceTemplatesResult, ReadResourceResult → builders
tests/ ReadResourceRequestParams, SubscribeRequestParams, PaginatedRequestParams → builders
CHANGELOG.md Added [Unreleased] entry for rmcp 1.x migration
README.md Added (rmcp 1.x SDK) to features

Test plan

  • 175 unit/integration tests pass
  • Clippy clean (zero warnings)
  • Verified with local patched rmcp-macros — zero deprecation warnings after upstream PR merges
  • Validated against upstream rust-sdk full test suite (fmt, clippy -D warnings, cargo test --all-features)

🤖 Generated with Claude Code

Migrate all model struct construction from struct literals to builder
pattern required by rmcp 1.x #[non_exhaustive] changes.

- Cargo.toml: rmcp 0.16 → 1.1
- server.rs: ServerInfo, ServerCapabilities, CompleteResult builders
- prompts: Prompt, PromptArgument, PromptMessage, GetPromptResult builders
- resources: ListResourcesResult, ListResourceTemplatesResult, ReadResourceResult builders
- tests: ReadResourceRequestParams, SubscribeRequestParams, PaginatedRequestParams builders
- docs: CHANGELOG, README updated; spec version stays 2025-11-25
  (rmcp LATEST is 2025-06-18, SDK hasn't added 2025-11-25 yet)
- Filed upstream fix for #[task_handler] deprecated type aliases (rust-sdk#727)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 6, 2026

Codecov Report

❌ Patch coverage is 90.32258% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.49%. Comparing base (b99d883) to head (e4df127).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/prompts/mod.rs 0.00% 5 Missing ⚠️
src/server.rs 82.35% 3 Missing ⚠️
src/resources/mod.rs 91.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #46      +/-   ##
==========================================
- Coverage   86.86%   86.49%   -0.37%     
==========================================
  Files          12       12              
  Lines        2117     2022      -95     
==========================================
- Hits         1839     1749      -90     
+ Misses        278      273       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nazq nazq merged commit 0d638c6 into main Mar 6, 2026
10 checks passed
@nazq nazq deleted the deps-tasks-oauth branch March 6, 2026 18:09
@github-actions github-actions bot mentioned this pull request Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant