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

Function mcp_authenticate

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

Source from the content-addressed store, hash-verified

2623}
2624
2625async fn mcp_authenticate(Path(name): Path<String>) -> Result<Json<McpStatusInfo>> {
2626 let manager = get_mcp_oauth_manager();
2627 ensure_mcp_server_registered(manager, &name).await?;
2628 let server_info = manager
2629 .authenticate(&name)
2630 .await
2631 .map_err(mcp_error_to_api_error)?;
2632
2633 Ok(Json(McpStatusInfo::from(server_info)))
2634}
2635
2636async fn remove_mcp_auth(Path(name): Path<String>) -> Result<Json<serde_json::Value>> {
2637 let manager = get_mcp_oauth_manager();

Callers

nothing calls this directly

Calls 3

get_mcp_oauth_managerFunction · 0.85
authenticateMethod · 0.80

Tested by

no test coverage detected