(Path(name): Path<String>)
| 2673 | } |
| 2674 | |
| 2675 | async fn get_mcp_logs(Path(name): Path<String>) -> Result<Json<McpLogsResponse>> { |
| 2676 | let manager = get_mcp_oauth_manager(); |
| 2677 | ensure_mcp_server_registered(manager, &name).await?; |
| 2678 | let logs = manager |
| 2679 | .get_logs(&name) |
| 2680 | .await |
| 2681 | .map_err(mcp_error_to_api_error)?; |
| 2682 | |
| 2683 | Ok(Json(McpLogsResponse { name, logs })) |
| 2684 | } |
| 2685 | |
| 2686 | #[derive(Debug, Serialize)] |
| 2687 | pub struct McpRestartResponse { |
nothing calls this directly
no test coverage detected