Skip to content

deps: upgrade rmcp 1.8 -> 3.3 - #145

Merged
lance0 merged 1 commit into
masterfrom
deps/rmcp-3
Sep 15, 2026
Merged

lance0 merged 1 commit into
masterfrom
deps/rmcp-3

Conversation

@lance0

@lance0 lance0 commented Sep 15, 2026

Copy link
Copy Markdown
Owner

Upgrades the MCP SDK from rmcp 1.8 to 3.3, split out of the grouped Dependabot update (#144), which failed to build on this bump.

Changes

  • RawResourceTemplate + AnnotateAble::no_annotation → ResourceTemplate
  • PromptMessageRole → Role; PromptMessageContent::Text → ContentBlock::Text
  • read_resource / get_prompt now return rmcp 3's MRTR-aware ReadResourceResponse / GetPromptResponse, converted from the existing results with Into
  • ResourceContents is #[non_exhaustive]; the test helper match gains a wildcard arm

Compatibility

  • Negotiated protocol version is unchanged (ProtocolVersion::LATEST is still 2025-11-25).
  • StreamableHttpServerConfig::default() keeps legacy_session_mode: true (the old stateful default); allowed hosts are still set explicitly and Origin validation stays in nbox's own middleware.
  • No schemars duplication: rmcp 3 accepts schemars 1.x, so the =1.2.1 pin still resolves to a single instance.
  • New transitive crates (syn 3, darling 0.24, base64 0.23) all declare MSRV ≤ 1.88.

Verification

  • cargo clippy --all-targets --all-features -- -D warnings and --no-default-features: clean
  • cargo test --all-features: 1381 passed; --no-default-features: 1281 passed
  • Live NetBox MCP read / local-write / refusal e2e runs in the NetBox Integration lane on this PR

- RawResourceTemplate + AnnotateAble::no_annotation -> ResourceTemplate
- PromptMessageRole -> Role; PromptMessageContent::Text -> ContentBlock::Text
- read_resource / get_prompt return ReadResourceResponse / GetPromptResponse
  (the MRTR-aware wrappers), converted from the existing results via Into
- ResourceContents is now non_exhaustive; test match gains a wildcard arm

Negotiated protocol version stays 2025-11-25 and the streamable HTTP
server keeps its legacy session mode by default, so the tool, resource,
prompt, and HTTP surfaces are unchanged.
@lance0
lance0 merged commit 78f9876 into master Sep 15, 2026
17 checks passed
@lance0
lance0 deleted the deps/rmcp-3 branch September 15, 2026 14:51
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