From e1d6ded44d294b764404cf7cc3dac36598c497e1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 6 Dec 2026 07:02:37 +0000 Subject: [PATCH 1/3] build(deps): bump rmcp Bumps the cargo-minor-and-patch group with 1 update in the / directory: [rmcp](https://github.com/modelcontextprotocol/rust-sdk). Updates `rmcp` from 3.12.0 to 3.12.1 - [Release notes](https://github.com/modelcontextprotocol/rust-sdk/releases) - [Changelog](https://github.com/modelcontextprotocol/rust-sdk/blob/main/release-plz.toml) - [Commits](https://github.com/modelcontextprotocol/rust-sdk/compare/rmcp-v3.12.0...rmcp-v3.12.1) --- updated-dependencies: - dependency-name: rmcp dependency-version: 3.12.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-minor-and-patch ... Signed-off-by: dependabot[bot] --- Cargo.lock | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4069fb0b6..a727cf31b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -821,9 +821,9 @@ dependencies = [ [[package]] name = "nix" -version = "0.31.3" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf20d2fde8ff38632c426f1165ed7436270b44f199fc55284c38276f9db47c3d" +checksum = "77730ed34f01f4990cb2ea67fec715ecebc6fab9a6396cf83c5529b13f581bdc" dependencies = [ "bitflags", "cfg-if", @@ -972,15 +972,14 @@ dependencies = [ [[package]] name = "process-wrap" -version = "10.0.1" +version = "11.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f21b97672d2dc848e7b25701ab4535618b92f4861c13cc3f7f7bed52ad3c8da" +checksum = "e3655b18489c90df24f2c401ac65f908b17210e59cf676127f79890f67f3e30e" dependencies = [ "futures", "indexmap", "nix", "tokio", - "tracing", "windows", ] @@ -1146,9 +1145,9 @@ checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a" [[package]] name = "rmcp" -version = "3.12.0" +version = "3.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc4fa9a7558c480e1817c0f02e9a73782001ac1f47fb9d26cc073915963282ea" +checksum = "cd5a841e76c67fd1268613d8117baaf6b021019b07bc152b2dca77865865fc2d" dependencies = [ "base64", "chrono", @@ -1177,9 +1176,9 @@ dependencies = [ [[package]] name = "rmcp-macros" -version = "3.12.0" +version = "3.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43c1bf063ba32333267a8bc282ec33ae0edf56bf74890118cb0c7bf910a7a1c0" +checksum = "770b1a7541a18229dcd4a79c60ef01b0ac44b6559cc93bb1b379df1eaf6cffa4" dependencies = [ "darling", "proc-macro2", From 4ba5dfeed1796af6e4f99668f869ff5be55f9d6a Mon Sep 17 00:00:00 2001 From: Griffin Long <151978260+DrunkOnJava@users.noreply.github.com> Date: Sun, 6 Dec 2026 02:58:56 -0500 Subject: [PATCH 2/3] test(mcp): a notification before initialize is dropped, as rmcp 3.12.1 does (#1506 upstream) --- docs/mcp.md | 4 ++-- rvt-mcp/tests/mcp_stdio.rs | 21 ++++++++++++++++----- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/docs/mcp.md b/docs/mcp.md index 4fdc7b1f7..35fad568e 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -152,8 +152,8 @@ or roots), so it works with a client that offers none of them. - stdout carries only JSON-RPC. Logs go to stderr (`--log-level`). The server exits with status 0 when the client closes stdin, whenever that happens: after a session, after a lone `server/discover` probe (answered before any session - exists) or `initialize`, or before anything was sent. A first message that is - not a request is a failed start and exits 1. + exists) or `initialize`, or before anything was sent. A notification sent + before the first request is dropped (rmcp 3.12.1), so it doesn't change that. ## Handles diff --git a/rvt-mcp/tests/mcp_stdio.rs b/rvt-mcp/tests/mcp_stdio.rs index b6819642b..55d6efa11 100644 --- a/rvt-mcp/tests/mcp_stdio.rs +++ b/rvt-mcp/tests/mcp_stdio.rs @@ -1537,17 +1537,28 @@ fn closing_stdin_at_once_is_a_clean_exit() { server.finish(); } -/// A first message that is not a request is a real failure to start and keeps -/// its failing status: only a closed connection is treated as leaving. +/// rmcp drops a notification that arrives before the first request (rmcp +/// 3.12.1, its #1506), so it neither ends the connection nor stops the +/// `initialize` after it from starting a session. #[test] -fn a_notification_as_the_first_message_is_a_failed_start() { +fn a_notification_before_initialize_is_dropped() { let mut server = Raw::start(&[]); server.send(&json!({ "jsonrpc": "2.0", "method": "notifications/initialized" })); + server.send(&json!({ + "jsonrpc": "2.0", "id": 1, "method": "initialize", + "params": { + "protocolVersion": "2025-11-25", + "capabilities": {}, + "clientInfo": { "name": "rvt-rs-mcp-e2e", "version": "0" } + } + })); drop(server.stdin.take()); - let status = server.wait(); - assert!(!status.success(), "exit status {status}"); + let reply = server.recv(); + assert_eq!(reply["id"], 1, "{reply}"); + assert!(reply["result"]["protocolVersion"].is_string(), "{reply}"); + server.finish(); } #[test] From 647d9e1da4358eeaa0d5ff263fc2ff23822c79de Mon Sep 17 00:00:00 2001 From: Griffin Long <151978260+DrunkOnJava@users.noreply.github.com> Date: Sun, 6 Dec 2026 03:07:50 -0500 Subject: [PATCH 3/3] test(mcp): a notification then a closed stdin is a clean exit; changelog for the new start behaviour --- .../changed/mcp-notification-before-initialize.md | 6 ++++++ rvt-mcp/tests/mcp_stdio.rs | 11 +++++++++++ 2 files changed, 17 insertions(+) create mode 100644 changelog.d/changed/mcp-notification-before-initialize.md diff --git a/changelog.d/changed/mcp-notification-before-initialize.md b/changelog.d/changed/mcp-notification-before-initialize.md new file mode 100644 index 000000000..957fa6fe7 --- /dev/null +++ b/changelog.d/changed/mcp-notification-before-initialize.md @@ -0,0 +1,6 @@ +- **`rvt-rs-mcp` drops a notification sent before the first request.** With + rmcp 3.12.1, a notification that arrives before `initialize` (or a + `server/discover` probe) no longer ends the connection: the server keeps + waiting for the first request, and a client that sends only a notification + and closes stdin now exits with status 0, as one that closes at once does. + It exited with status 1 before. diff --git a/rvt-mcp/tests/mcp_stdio.rs b/rvt-mcp/tests/mcp_stdio.rs index 55d6efa11..a93ba1256 100644 --- a/rvt-mcp/tests/mcp_stdio.rs +++ b/rvt-mcp/tests/mcp_stdio.rs @@ -1537,6 +1537,17 @@ fn closing_stdin_at_once_is_a_clean_exit() { server.finish(); } +/// A client that sends only a notification and closes is leaving, as one that +/// closes at once is: rmcp drops the notification (3.12.1, its #1506). +#[test] +fn a_notification_then_eof_is_a_clean_exit() { + let mut server = Raw::start(&[]); + server.send(&json!({ + "jsonrpc": "2.0", "method": "notifications/initialized" + })); + server.finish(); +} + /// rmcp drops a notification that arrives before the first request (rmcp /// 3.12.1, its #1506), so it neither ends the connection nor stops the /// `initialize` after it from starting a session.