You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(mcp): server start imports the dev-only Grafana SDK #7212
effort/lowEffort Low: little workpriority/p1-highPriority P1: high-impact work for the next planned milestonescope/mcpModel Context Protocol tools, system resources, and promptssource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/highValue High: the delivery of the item matters much
The MCP server builds its tools from each command group (ai/mcp/generator.py), so it imports commands/k8s/catalog.py at start.
On the cluster, the new ReplicaSet of Deployment devops/mcp-server is in CrashLoopBackOff (11 restarts at 2026-11-25 18:20 UTC). The old pod still serves.
Proposed remedy
Move ServiceSpec, load_specs and the spec file name to a module that imports no SDK. k8s/catalog.py imports that module. Add a test that imports each command module with the dev-only runtime ignores of deptry (DEP004) blocked.
Acceptance criteria
With grafana_foundation_sdk blocked in sys.modules, each module of devops_cli.commands imports.
Priority: The new ReplicaSet of the MCP server is in CrashLoopBackOff, which is a service job failure. The regression commit fcaf8d9 does not set P0: the author has no write access, and no caller attached it as evidence. A person can set P0 with the label priority/p0-critical.
Related: refactor(grafana): delete the home-grown dashboard builders #5278, which asks for a different change. Both items involve the Grafana Foundation SDK in the CLI dashboard code, but 5278 deletes home-grown builders while the candidate fixes a production import that should not load the SDK.
effort/lowEffort Low: little workpriority/p1-highPriority P1: high-impact work for the next planned milestonescope/mcpModel Context Protocol tools, system resources, and promptssource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/highValue High: the delivery of the item matters much
Activity
dan-petty commentedon Nov 25, 2026
The new ReplicaSet of the MCP server is in CrashLoopBackOff, which is a service job failure.The regression commit fcaf8d9 does not set P0: the author has no write access, and no caller attached it as evidence. A person can set P0 with the label priority/p0-critical.Both items involve the Grafana Foundation SDK in the CLI dashboard code, but 5278 deletes home-grown builders while the candidate fixes a production import that should not load the SDK.devops-cli-service commentedon Nov 25, 2026
Released in v0.221.3: https://github.com/dan-petty/devops-cli/releases/tag/v0.221.3
devops-cli-service commentedon Nov 25, 2026
Live since 2026-11-25 18:50 UTC