Repository navigation
deps: bump rmcp to 3.11 and rustix to 1.1.6 (RUSTSEC-2026-0462, -0486) - #4
Merged
Merged
Conversation
…EC-2026-0486) rmcp 1.7 -> 3.11: patches RUSTSEC-2026-0462, unbounded response body buffering in the Streamable HTTP clients. borg-mcp only uses the child-process transport (which already bounds lines itself), so it was not reachable, but the advisory fails the audit job. Port borg-mcp to the 3.x API: - `Content` / `RawContent` -> `ContentBlock` (same `type`-tagged wire shape) - `CancelledNotificationParam` is non-exhaustive with an optional `request_id`; build it with `::new` rustix 1.1.4 -> 1.1.6 (lockfile only): patches RUSTSEC-2026-0486, unsound xattr reads on zero-length buffers. Dev-only via tempfile. Fixes #1 Fixes #2 Claude-Session: https://claude.ai/code/session_01131vjxGVdfLmeKTTbm3TCe
- rmcp: disable default features. borg-mcp only needs `client` and `transport-child-process`; the default `server` feature pulled in uuid 1.29, which requires rustc 1.89 and broke the 1.88 clippy/test jobs. Also drops ~150 lines of unused deps from the lockfile. - deny.toml: ignore RUSTSEC-2026-0543 (chrono unmaintained). It is informational with no patched version, and chrono is a non-optional dependency of rmcp, so there is nothing to upgrade to yet. Claude-Session: https://claude.ai/code/session_01131vjxGVdfLmeKTTbm3TCe
- Crates now inherit `publish` via `publish.workspace = true` instead of each repeating `publish = false`, so the workspace field is actually used (as its comment intends: new crates are unpublishable by default). - Drop workspace dependencies no crate inherits: borg-loop, borg-mcp, borg-tools, borg-tracing (nothing depends on them) and dashmap (unused). No resolved-dependency change; Cargo.lock is untouched. Claude-Session: https://claude.ai/code/session_01131vjxGVdfLmeKTTbm3TCe
…nore - The `cargo audit` job failed on pull requests: rustsec/audit-check reports through a check run there, and updating it 404s. cargo deny already gates advisories on push/PR, so audit-check now runs only on schedule/workflow_dispatch, where it opens an issue per advisory. - `push` is limited to main (as in ci.yml), so PR branches no longer run the workflow twice. - Pin audit-check to upstream main (858dc40), which is v2.0.0 with the runtime moved to Node 24; Node 20 actions are deprecated. - .cargo/audit.toml ignores RUSTSEC-2026-0543 (chrono unmaintained), like deny.toml, so the nightly job does not file an issue for it. Claude-Session: https://claude.ai/code/session_01131vjxGVdfLmeKTTbm3TCe
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.
Fixes #1, fixes #2.
Changes
Content/RawContent→ContentBlock. The JSON on the wire is unchanged: each block keeps itstypefield.CancelledNotificationParamis now#[non_exhaustive]and itsrequest_idis optional, so it's built with::new(Some(id), …).tempfile.CI fixes
default-features = false. Its defaultserverfeature brought inuuid1.29, which requires rustc 1.89 and broke the 1.88 clippy and test jobs. borg only needsclientandtransport-child-process. This also removes about 150 lines of unused dependencies from Cargo.lock.deny.tomlnow ignores RUSTSEC-2026-0543 (chronois unmaintained), with the reason written next to it. The advisory is informational, has no patched version, and chrono is a required dependency of rmcp, so there's nothing to upgrade to. This check was failing onmaintoo. Remove the ignore once rmcp drops chrono.publish = falsewithpublish.workspace = trueinstead of setting it again, which is what the comment in the workspace says it should do. I also removed workspace dependencies that no crate inherits:borg-loop,borg-mcp,borg-tools,borg-tracinganddashmap.cargo auditjob failed on pull requests even though it found no vulnerabilities. On PRs,rustsec/audit-checkreports through a check run, and updating that check run returned 404. Sincecargo denyalready checks advisories on every push and PR,audit-checknow runs only nightly and on manual dispatch, where it opens an issue for each new advisory. The workflow'spushtrigger is limited tomain, as inci.yml, so PR branches no longer run it twice.audit-checkis pinned to upstream commit858dc40, which is v2.0.0 moved to the Node 24 runtime (Node 20 is deprecated). The chrono ignore is added to.cargo/audit.tomltoo, so the nightly job doesn't open an issue for it.Verification
Checked locally on Rust 1.100 (the version CI uses) and 1.88. There are no warnings from the manifests or clippy:
cargo fmt --check, clippy (--all-targets --all-features -D warnings), andcargo test --workspace --all-featureswith 739 passed and 0 failed on each.cargo doc -D warningsis clean, andcargo deny checkreports advisories, bans, licenses and sources all ok.🤖 Generated with Claude Code
https://claude.ai/code/session_01131vjxGVdfLmeKTTbm3TCe