MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / remove_mcp_auth

Function remove_mcp_auth

crates/opencode-server/src/routes.rs:2636–2641  ·  view source on GitHub ↗
(Path(name): Path<String>)

Source from the content-addressed store, hash-verified

2634}
2635
2636async fn remove_mcp_auth(Path(name): Path<String>) -> Result<Json<serde_json::Value>> {
2637 let manager = get_mcp_oauth_manager();
2638 ensure_mcp_server_registered(manager, &name).await?;
2639 manager.remove_oauth(&name).await;
2640 Ok(Json(serde_json::json!({ "success": true })))
2641}
2642
2643async fn connect_mcp(
2644 State(_state): State<Arc<ServerState>>,

Callers

nothing calls this directly

Calls 3

get_mcp_oauth_managerFunction · 0.85
remove_oauthMethod · 0.80

Tested by

no test coverage detected