Grafana dashboard import to complete the export/import round trip
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- grafana, typescript
- Lĩnh vực
- observability-sre, tooling
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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(andnpm run typecheck); structure tests:pip install -r requirements-test.txt && pytest tests/ -v - Conventions: see
CLAUDE.mdandCONTRIBUTING.md
Filed by repo-audit/full-audit at 636fefb. Severity: low. Effort: M. audit-key: enhancement|skills/grafana-dashboards/SKILL.md|homelab_grafanaImport
- Ngôn ngữ chính
- TypeScript
- Star
- 0
- Fork
- 4
- Merge trung bình
- 10 giờ 16 phút
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của TMHSDigital/Home-Lab-Developer-Tools
-
speedtestResults ignores count: /api/speedtest/latest returns one resultCó thể đã có người làm @laozhej đã nhận 2 ngày trước. Đang mởbug severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
TMHSDigital/Home-Lab-Developer-Tools#160 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Integration tests import tool modules inside tests and can time out under loadCó thể đã có người làm @laozhej đã nhận 2 ngày trước. Đang mởgood first issue severity: low testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 25/100
TMHSDigital/Home-Lab-Developer-Tools#174 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
help wanted severity: low testing
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
TMHSDigital/Home-Lab-Developer-Tools#164 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement severity: medium
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
TMHSDigital/Home-Lab-Developer-Tools#159 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add AdGuard local DNS rewrite tools (list, add, delete)Có thể đã có người làm @laozhej đã nhận 1 ngày trước. Đang mởenhancement severity: medium
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
TMHSDigital/Home-Lab-Developer-Tools#157 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của TMHSDigital/Home-Lab-Developer-Tools
Issue tương tự
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
microsoft/playwright#44289 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
blamechris/chroxy#9272 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
no-repo-link tool-submission
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 66/100
BraveOPotato/NoSignups#2458 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
drmrd/vernacular#1061 ·
Maintainer thường phản hồi trong vòng 1 ngày