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

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
+13 -3
View File
@@ -640,9 +640,19 @@ pub async fn run_repl_command(
.url
.as_deref()
.expect("validated: remote spec has url");
let client_id = spec.oauth_client_id.as_deref();
mcp::oauth::run_mcp_oauth_flow(server_name, url, client_id)
.await?;
let client_id = spec
.oauth
.as_ref()
.and_then(|o| o.client_id.as_deref());
let callback_port =
spec.oauth.as_ref().and_then(|o| o.callback_port);
mcp::oauth::run_mcp_oauth_flow(
server_name,
url,
client_id,
callback_port,
)
.await?;
println!(
"Authentication saved. \
Restart Coyote to connect to '{server_name}'."