Lightweight coding agent that runs in your terminal
Rust
[MCP] Upgrade rmcp to 0.8 (#4774)
Gabriel Peal7fa5e95c1f78
diff --git a/codex-rs/Cargo.lock b/codex-rs/Cargo.lockindex 29025095bc..6b4353d8a1 100644--- a/codex-rs/Cargo.lock+++ b/codex-rs/Cargo.lock@@ -4770,8 +4770,9 @@ dependencies = [[[package]]name = "rmcp"-version = "0.7.0"-source = "git+https://github.com/modelcontextprotocol/rust-sdk?rev=c0b777c7f784ba2d456b03c2ec3b98c9b28b5e10#c0b777c7f784ba2d456b03c2ec3b98c9b28b5e10"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "583d060e99feb3a3683fb48a1e4bf5f8d4a50951f429726f330ee5ff548837f8"dependencies = ["base64","bytes",@@ -4803,8 +4804,9 @@ dependencies = [[[package]]name = "rmcp-macros"-version = "0.7.0"-source = "git+https://github.com/modelcontextprotocol/rust-sdk?rev=c0b777c7f784ba2d456b03c2ec3b98c9b28b5e10#c0b777c7f784ba2d456b03c2ec3b98c9b28b5e10"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "421d8b0ba302f479214889486f9550e63feca3af310f1190efcf6e2016802693"dependencies = ["darling 0.21.3","proc-macro2",diff --git a/codex-rs/Cargo.toml b/codex-rs/Cargo.tomlindex d796e96783..bcbe844509 100644--- a/codex-rs/Cargo.toml+++ b/codex-rs/Cargo.toml@@ -143,8 +143,7 @@ rand = "0.9"ratatui = "0.29.0"regex-lite = "0.1.7"reqwest = "0.12"-# When this gets bumped, remove the patch below.-rmcp = { version = "0.7.0", default-features = false }+rmcp = { version = "0.8.0", default-features = false }schemars = "0.8.22"seccompiler = "0.5.0"serde = "1"@@ -251,5 +250,3 @@ ratatui = { git = "https://github.com/nornagon/ratatui", branch = "nornagon-v0.2# Uncomment to debug local changes.# rmcp = { path = "../../rust-sdk/crates/rmcp" }-# 0.7.0 + https://github.com/modelcontextprotocol/rust-sdk/pull/459 which includes dynamic .well-known discovery which is required for Figma.-rmcp = { git = "https://github.com/modelcontextprotocol/rust-sdk", rev = "c0b777c7f784ba2d456b03c2ec3b98c9b28b5e10", default-features = false }diff --git a/codex-rs/rmcp-client/src/perform_oauth_login.rs b/codex-rs/rmcp-client/src/perform_oauth_login.rsindex 0fcdb2f617..b5a893611a 100644--- a/codex-rs/rmcp-client/src/perform_oauth_login.rs+++ b/codex-rs/rmcp-client/src/perform_oauth_login.rs@@ -47,7 +47,9 @@ pub async fn perform_oauth_login(server_name: &str, server_url: &str) -> Result<spawn_callback_server(server, tx);let mut oauth_state = OAuthState::new(server_url, None).await?;- oauth_state.start_authorization(&[], &redirect_uri).await?;+ oauth_state+ .start_authorization(&[], &redirect_uri, Some("Codex"))+ .await?;let auth_url = oauth_state.get_authorization_url().await?;println!("Authorize `{server_name}` by opening this URL in your browser:\n{auth_url}\n");