From 66a8aef842a1e263a9237461fd39b1f0a1c4fc43 Mon Sep 17 00:00:00 2001 From: Ashish Kolhe Date: Tue, 3 Nov 2026 12:13:35 +0530 Subject: [PATCH] fix(autoobserve): register the AutoObserve routes with the OpenAPI coverage guard The OpenAPI coverage guard from main panics on a router function it does not know and pins the set of enabled MCP tools. The enterprise AutoObserve routes mount under /api, so autoobserve_routes joins ROUTER_PREFIXES, and their seven operations, MCP tools by design, are listed as enterprise tools. --- .../handler/http/router/openapi_coverage/mcp_enabled.txt | 7 +++++++ .../http/src/handler/http/router/openapi_coverage/mod.rs | 1 + 2 files changed, 8 insertions(+) diff --git a/src/api/http/src/handler/http/router/openapi_coverage/mcp_enabled.txt b/src/api/http/src/handler/http/router/openapi_coverage/mcp_enabled.txt index be57281ec2..620185467b 100644 --- a/src/api/http/src/handler/http/router/openapi_coverage/mcp_enabled.txt +++ b/src/api/http/src/handler/http/router/openapi_coverage/mcp_enabled.txt @@ -6,6 +6,13 @@ ent ActivateRemoteTaskSigningCandidate all AddPanel oss AddUserToOrg all AssumeServiceAccount +ent AutoObserveCoverage +ent AutoObserveCoverageHistory +ent AutoObserveDeleteMark +ent AutoObserveEntityTypes +ent AutoObserveListMarks +ent AutoObservePutMark +ent AutoObserveSuggestions all CancelAlertMute ent CancelAnomalyTraining all CancelDowntime diff --git a/src/api/http/src/handler/http/router/openapi_coverage/mod.rs b/src/api/http/src/handler/http/router/openapi_coverage/mod.rs index af3bda5e2e..1ad576b31c 100644 --- a/src/api/http/src/handler/http/router/openapi_coverage/mod.rs +++ b/src/api/http/src/handler/http/router/openapi_coverage/mod.rs @@ -59,6 +59,7 @@ const ROUTER_PREFIXES: &[(&str, &str)] = &[ ("public_dashboard_admin_routes", "/api"), ("ai_chat_routes", "/api"), ("alert_calibration_routes", "/api"), + ("autoobserve_routes", "/api"), ("downtime_routes", "/api"), ("report_routes", "/api"), ("oncall_routes", "/api"),