Skip to content

fix(mcp): upgrade rmcp dependency from 1.x to 3.4 - #331

Merged
StefanSteiner merged 1 commit into
tableau:mainfrom
StefanSteiner:feat/rmcp-3-migration
Sep 18, 2026
Merged

StefanSteiner merged 1 commit into
tableau:mainfrom
StefanSteiner:feat/rmcp-3-migration

Conversation

@StefanSteiner

Copy link
Copy Markdown
Contributor

Summary

  • Upgrades hyperdb-mcp's rmcp MCP SDK dependency from 1.x (1.8.0) to 3.4.0, resolving the outstanding rmcp Dependabot security advisories.
  • hyperdb-mcp is 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.
  • No change to the MCP wire protocol or tool surface this server exposes; hyperdb-mcp/CHANGELOG.md records it as an internal dependency bump.

API surface migrated

  • ContentContentBlock
  • RawResource / RawResourceTemplateResource / ResourceTemplate (builder pattern; the AnnotateAble trait and .no_annotation() are gone — annotations default to None)
  • PromptMessageRoleRole
  • ServerInfo / ClientInfoServerConfig / ClientConfig (deprecated aliases, same underlying type)
  • ListResourcesResult / ListResourceTemplatesResult now built via ::with_all_items(items) (new SEP-2549 cache-hint fields)
  • read_resource now returns ReadResourceResponse (new SEP-2549/MRTR wrapper around ReadResourceResult)
  • ResourceUpdatedNotificationParam is #[non_exhaustive], constructed via ::new(uri)
  • Two test call sites intentionally keep exercising the deprecated resources/subscribe client method (the server still implements that legacy protocol path via SubscriptionRegistry), suppressed with a reasoned #[allow(deprecated)]

Test plan

  • cargo check --workspace --all-targets — clean, 0 errors
  • cargo test -p hyperdb-mcp --all-targets against the pinned .hyperd/current engine — all targets pass, 0 failures
  • cargo clippy --workspace --all-targets --all-features -- -D warnings (CI's exact command) — clean, 0 warnings
  • cargo fmt --all — no diff
  • cargo audit — 0 vulnerabilities (rmcp advisories no longer present)
  • cargo deny check advisoriesadvisories ok
  • npx markdownlint-cli2 on the touched CHANGELOG.md — 0 issues

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.
@StefanSteiner
StefanSteiner merged commit 0e2dd41 into tableau:main Sep 18, 2026
18 checks passed
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