Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
6c3d96ac83
|
|||
|
aa1fe7f7aa
|
|||
|
5e50828108
|
@@ -159,6 +159,7 @@ 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?;
|
||||
println!("Authentication saved. '{server_name}' is now available for use.");
|
||||
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
+3
-5
@@ -564,11 +564,9 @@ pub async fn run_repl_command(
|
||||
.and_then(|c| c.mcp_servers.get(server_name))
|
||||
.cloned();
|
||||
match server_spec {
|
||||
None => bail!(
|
||||
"MCP server '{}' not found in config. \
|
||||
Check your mcp_config.json.",
|
||||
server_name
|
||||
),
|
||||
None => {
|
||||
bail!("MCP server '{}' not found in mcp.json.", server_name)
|
||||
}
|
||||
Some(spec) if !spec.is_remote() => bail!(
|
||||
"MCP server '{}' uses stdio transport; \
|
||||
OAuth is only supported for http/sse servers.",
|
||||
|
||||
Reference in New Issue
Block a user