(Path(name): Path<String>)
| 2623 | } |
| 2624 | |
| 2625 | async 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 | |
| 2636 | async fn remove_mcp_auth(Path(name): Path<String>) -> Result<Json<serde_json::Value>> { |
| 2637 | let manager = get_mcp_oauth_manager(); |
nothing calls this directly
no test coverage detected