[MCP] Upgrade rmcp to 0.8 (#4774)

The version with the well-known discovery and my MCP client name change
were just released

https://github.com/modelcontextprotocol/rust-sdk/releases
This commit is contained in:
Gabriel Peal
2025-10-05 15:12:37 -07:00
committed by GitHub
parent 191d620707
commit 7fa5e95c1f
3 changed files with 10 additions and 9 deletions

View File

@@ -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");