diff --git a/Cargo.lock b/Cargo.lock index 40747f447e69..1e823bd55db5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5474,9 +5474,9 @@ dependencies = [ [[package]] name = "rmcp" -version = "0.7.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "534fd1cd0601e798ac30545ff2b7f4a62c6f14edd4aaed1cc5eb1e85f69f09af" +checksum = "6f35acda8f89fca5fd8c96cae3c6d5b4c38ea0072df4c8030915f3b5ff469c1c" dependencies = [ "base64 0.22.1", "chrono", @@ -5502,9 +5502,9 @@ dependencies = [ [[package]] name = "rmcp-macros" -version = "0.7.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ba777eb0e5f53a757e36f0e287441da0ab766564ba7201600eeb92a4753022e" +checksum = "c9f1d5220aaa23b79c3d02e18f7a554403b3ccea544bbb6c69d6bcb3e854a274" dependencies = [ "darling 0.21.0", "proc-macro2", diff --git a/Cargo.toml b/Cargo.toml index c84d942ae194..acef67b6a678 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ description = "An AI agent" uninlined_format_args = "allow" [workspace.dependencies] -rmcp = { version = "0.7.0", features = ["schemars", "auth"] } +rmcp = { version = "0.8.1", features = ["schemars", "auth"] } # Patch for Windows cross-compilation issue with crunchy [patch.crates-io] diff --git a/crates/goose-mcp/Cargo.toml b/crates/goose-mcp/Cargo.toml index 2c42e53c2580..34c0531c5e75 100644 --- a/crates/goose-mcp/Cargo.toml +++ b/crates/goose-mcp/Cargo.toml @@ -12,7 +12,7 @@ workspace = true [dependencies] goose = { path = "../goose" } -rmcp = { version = "0.7.0", features = ["server", "client", "transport-io", "macros"] } +rmcp = { version = "0.8.1", features = ["server", "client", "transport-io", "macros"] } anyhow = "1.0.94" tokio = { version = "1", features = ["full"] } tokio-stream = { version = "0.1", features = ["io-util"] } diff --git a/crates/goose/src/oauth/mod.rs b/crates/goose/src/oauth/mod.rs index 96e287e35258..d57fce564a27 100644 --- a/crates/goose/src/oauth/mod.rs +++ b/crates/goose/src/oauth/mod.rs @@ -76,7 +76,7 @@ pub async fn oauth_flow( let mut oauth_state = OAuthState::new(mcp_server_url, None).await?; let redirect_uri = format!("http://localhost:{}/oauth_callback", used_addr.port()); oauth_state - .start_authorization(&[], redirect_uri.as_str()) + .start_authorization(&[], redirect_uri.as_str(), Some("goose")) .await?; let authorization_url = oauth_state.get_authorization_url().await?;