fix(mcp): upgrade rmcp dependency from 1.x to 3.4 - #331
Merged
Merged
Conversation
Resolves the outstanding rmcp Dependabot security advisories. Migrates through the 2.x/3.x model API renames used by hyperdb-mcp: Content -> ContentBlock, RawResource/RawResourceTemplate -> Resource/ResourceTemplate (builder pattern, AnnotateAble removed), PromptMessageRole -> Role, ServerInfo/ClientInfo -> ServerConfig/ClientConfig, ListResourcesResult / ListResourceTemplatesResult constructed via with_all_items(), read_resource now returns ReadResourceResponse, and ResourceUpdatedNotificationParam is non_exhaustive (::new(uri)). No change to the MCP wire protocol or tool surface this server exposes.
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
hyperdb-mcp'srmcpMCP SDK dependency from 1.x (1.8.0) to 3.4.0, resolving the outstanding rmcp Dependabot security advisories.hyperdb-mcpis stdio-only (no SSE/HTTP transport used anywhere in this repo), so the actual runtime exposure from these CVEs was already near-zero — this migration closes the alerts and picks up the newer SDK's capabilities.hyperdb-mcp/CHANGELOG.mdrecords it as an internal dependency bump.API surface migrated
Content→ContentBlockRawResource/RawResourceTemplate→Resource/ResourceTemplate(builder pattern; theAnnotateAbletrait and.no_annotation()are gone — annotations default toNone)PromptMessageRole→RoleServerInfo/ClientInfo→ServerConfig/ClientConfig(deprecated aliases, same underlying type)ListResourcesResult/ListResourceTemplatesResultnow built via::with_all_items(items)(new SEP-2549 cache-hint fields)read_resourcenow returnsReadResourceResponse(new SEP-2549/MRTR wrapper aroundReadResourceResult)ResourceUpdatedNotificationParamis#[non_exhaustive], constructed via::new(uri)resources/subscribeclient method (the server still implements that legacy protocol path viaSubscriptionRegistry), suppressed with a reasoned#[allow(deprecated)]Test plan
cargo check --workspace --all-targets— clean, 0 errorscargo test -p hyperdb-mcp --all-targetsagainst the pinned.hyperd/currentengine — all targets pass, 0 failurescargo clippy --workspace --all-targets --all-features -- -D warnings(CI's exact command) — clean, 0 warningscargo fmt --all— no diffcargo audit— 0 vulnerabilities (rmcp advisories no longer present)cargo deny check advisories—advisories oknpx markdownlint-cli2on the touchedCHANGELOG.md— 0 issues