Compare commits
3 Commits
693e2d9672
...
6c3d96ac83
| 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");
|
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
@@ -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.",
|
||||||
|
|||||||
Reference in New Issue
Block a user