3 Commits

Author SHA1 Message Date
Dark-Alex-17 6c3d96ac83 feat: Added confirmation message after MCP Oauth succeeds when invoked from --auth-mcp
CI / All (macos-latest) (push) Waiting to run
CI / All (windows-latest) (push) Waiting to run
CI / All (ubuntu-latest) (push) Failing after 26s
2026-07-02 15:22:22 -06:00
Dark-Alex-17 aa1fe7f7aa fmt: applied formatting 2026-07-02 15:22:00 -06:00
Dark-Alex-17 5e50828108 fix: typo in mcp file name 2026-07-02 15:20:57 -06:00
2 changed files with 4 additions and 5 deletions
+1
View File
@@ -159,6 +159,7 @@ async fn main() -> Result<()> {
let url = spec.url.as_deref().expect("validated: remote spec has url"); 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_client_id.as_deref()).await?;
println!("Authentication saved. '{server_name}' is now available for use.");
return Ok(()); return Ok(());
} }
+3 -5
View File
@@ -564,11 +564,9 @@ pub async fn run_repl_command(
.and_then(|c| c.mcp_servers.get(server_name)) .and_then(|c| c.mcp_servers.get(server_name))
.cloned(); .cloned();
match server_spec { match server_spec {
None => bail!( None => {
"MCP server '{}' not found in config. \ bail!("MCP server '{}' not found in mcp.json.", server_name)
Check your mcp_config.json.", }
server_name
),
Some(spec) if !spec.is_remote() => bail!( Some(spec) if !spec.is_remote() => bail!(
"MCP server '{}' uses stdio transport; \ "MCP server '{}' uses stdio transport; \
OAuth is only supported for http/sse servers.", OAuth is only supported for http/sse servers.",