feat: Added support for specifying the oauth port and client ID in MCP server configs
CI / All (macos-latest) (push) Waiting to run
CI / All (windows-latest) (push) Waiting to run
CI / All (ubuntu-latest) (push) Failing after 25s

This commit is contained in:
2026-07-07 14:31:51 -06:00
parent 84ce094677
commit 5be4f45671
6 changed files with 48 additions and 22 deletions
+7 -1
View File
@@ -158,7 +158,13 @@ async fn main() -> Result<()> {
}
let url = spec.url.as_deref().expect("validated: remote spec has url");
mcp::oauth::run_mcp_oauth_flow(server_name, url, spec.oauth_client_id.as_deref()).await?;
mcp::oauth::run_mcp_oauth_flow(
server_name,
url,
spec.oauth.as_ref().and_then(|o| o.client_id.as_deref()),
spec.oauth.as_ref().and_then(|o| o.callback_port),
)
.await?;
println!("Authentication saved. '{server_name}' is now available for use.");
return Ok(());