Skip to content

Bump vulnerable dependencies and migrate rmcp to 1.4#297

Merged
renatgalimov merged 1 commit into
masterfrom
fix/security-dependency-updates-15.07.2026
Jul 16, 2026
Merged

Bump vulnerable dependencies and migrate rmcp to 1.4#297
renatgalimov merged 1 commit into
masterfrom
fix/security-dependency-updates-15.07.2026

Conversation

@renatgalimov

Copy link
Copy Markdown
Contributor

Sixteen open Dependabot alerts flag vulnerable direct and transitive crates: openssl, rustls-webpki, actix-http, rpassword, rand, and rmcp. This bumps the five semver-compatible crates in the lockfile and upgrades rmcp from 0.12 to 1.4 to pick up the fix for CVE-2026-42559. The rmcp major bump pulls in schemars 1 and required adapting the MCP server's get_info to rmcp 1.x's builder-based, non-exhaustive ServerInfo. The migrated MCP server was verified end-to-end by driving an initialize/tools-list handshake over stdio — all 33 tools list correctly with their schemas.

🤖 Generated with Claude Code

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses Dependabot-reported Rust crate vulnerabilities by updating several semver-compatible dependencies and migrating the MCP server integration from rmcp 0.12 to rmcp 1.4 (to pick up the CVE fix), including the required API adaptation for ServerInfo in rmcp 1.x.

Changes:

  • Upgrade rmcp to 1.4 (and schemars to 1) and enable the required rmcp macros feature.
  • Update the MCP server’s get_info implementation to use rmcp 1.x’s non-exhaustive ServerInfo construction pattern.
  • Refresh Cargo.lock to incorporate patched transitive dependency versions (e.g., openssl, rustls-webpki, actix-http, rand, rpassword, etc.).

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
src/mcp/server.rs Removes the old ToolRouter field usage and updates server metadata construction for rmcp 1.x (ServerInfo API).
Cargo.toml Bumps rmcp to 1.4, updates schemars to 1, and adds the macros feature needed for rmcp proc-macros.
Cargo.lock Locks updated direct/transitive crate versions consistent with the dependency security updates and rmcp migration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 3 changed files in this pull request and generated no new comments.

Resolve 16 open Dependabot alerts. Lockfile bumps: openssl 0.10.81,
rustls-webpki 0.103.13, actix-http 3.12.1, rpassword 7.5.4, rand 0.9.3.
rmcp needs a major bump to 1.4.0 for CVE-2026-42559, which requires
schemars 1 and constructing the now-non-exhaustive ServerInfo via its
builder; the vestigial tool_router field is dropped since 1.x resolves
the router through Self::tool_router().

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@renatgalimov
renatgalimov force-pushed the fix/security-dependency-updates-15.07.2026 branch from f7cac33 to 7531baa Compare July 15, 2026 21:15
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.

3 participants