Skip to content

fix(mcp): server start imports the dev-only Grafana SDK #7212

Done

Description

@dan-petty

Problem

devops mcp serve of the newest release does not start: ModuleNotFoundError: No module named 'grafana_foundation_sdk'.

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.
  • make dashboards gives the same JSON as before.

Activity

  1. added
    type/bug
    scope/mcp
    source/agent
    status/new
    on Nov 25, 2026
  2. dan-petty commented on Nov 25, 2026

    @dan-petty
    OwnerAuthor
    • 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.
  3. added
    effort/low
    value/high
    priority/p1-high
    status/in-progress
    and removed
    status/new
    on Nov 25, 2026
  4. removed
    status/in-progress
    on Nov 25, 2026
  5. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-25 18:50 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p1-highscope/mcpsource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions