Grafana dashboard import to complete the export/import round trip

Ouverte
#171 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

@laozhej y travaille déjà.

Depuis le 21/11/2026.

  • #178 par @laozhej — ouverte

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
68/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
grafana, typescript

Piste de recherche

Start with mcp-server/src/tools/grafanaSnapshot.ts to see how a Grafana MCP tool is registered, confirm-gated, and uses the auth helper; mirror that for homelab_grafanaImport. Update skills/grafana-dashboards/SKILL.md so its create/import/export workflow matches the tool. Run cd mcp-server && npm install && npm test and npm run typecheck. Done means the tool is registered, confirm-gated, size-capped, POSTs dashboard JSON to /api/dashboards/db, returns UID and URL, and docs/tests pass.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

enhancement severity: low

Summary

The grafana-dashboards skill promises create, import and export, but only export (homelab_grafanaSnapshot) exists.

Where

  • skills/grafana-dashboards/SKILL.md:3, :45, :49

Details

The agent can generate dashboard JSON but has to hand it back to the user to paste into the UI.

Impact

The skill's import workflow has no tool.

Suggested fix

Add confirm-gated homelab_grafanaImport taking dashboard JSON (size-capped, passed to the node via stdin or base64 rather than inline in the command) and an overwrite flag; POST /api/dashboards/db with the Grafana auth helper; return the UID and URL.

Open questions: folder selection; whether overwrite: true should be the destructive variant.

Acceptance criteria

  • Import tool registered, confirm-gated, size-capped
  • Returns UID and URL

Getting started

  • Relevant files: mcp-server/src/tools/grafanaSnapshot.ts, skills/grafana-dashboards/SKILL.md
  • How to run tests: cd mcp-server && npm install && npm test (and npm run typecheck); structure tests: pip install -r requirements-test.txt && pytest tests/ -v
  • Conventions: see CLAUDE.md and CONTRIBUTING.md

Filed by repo-audit/full-audit at 636fefb. Severity: low. Effort: M. audit-key: enhancement|skills/grafana-dashboards/SKILL.md|homelab_grafanaImport

Langage dominant
TypeScript
Étoiles
0
Forks
4
Merge moyen
10 h 16 min
PR mergées (30 j)
2

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de TMHSDigital/Home-Lab-Developer-Tools

Toutes les issues de TMHSDigital/Home-Lab-Developer-Tools

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.