Skip to content

Conversation

shelldandy
Copy link
Owner

Add --grafana-repo-path option to enable direct filesystem access to local Grafana repositories, providing faster development workflows and offline support.

Key Features:
• CLI option: --grafana-repo-path / -l for local repository path
• Environment variable: GRAFANA_REPO_PATH support
• Precedence: Local repo → GitHub API key → Unauthenticated GitHub
• Graceful fallback to GitHub API when local files missing
• All 11 MCP tools support both local and remote sources
• Source indication in responses (local vs github)

Benefits:
• ⚡ Faster access via direct filesystem reads
• 🚫 No rate limits for unlimited component access
• 🔄 Real-time updates for local changes
• 📡 Offline support without internet dependency
• 🧪 Development workflow for uncommitted changes

Files:
• src/index.ts - CLI argument parsing and configuration
• src/utils/axios.ts - Filesystem support for all functions
• README.md - Local development documentation

Maintains full backward compatibility while enabling powerful local development capabilities.

Add --grafana-repo-path option to enable direct filesystem access to local Grafana repositories, providing faster development workflows and offline support.

Key Features:
• CLI option: --grafana-repo-path / -l for local repository path
• Environment variable: GRAFANA_REPO_PATH support
• Precedence: Local repo → GitHub API key → Unauthenticated GitHub
• Graceful fallback to GitHub API when local files missing
• All 11 MCP tools support both local and remote sources
• Source indication in responses (local vs github)

Benefits:
• ⚡ Faster access via direct filesystem reads
• 🚫 No rate limits for unlimited component access
• 🔄 Real-time updates for local changes
• 📡 Offline support without internet dependency
• 🧪 Development workflow for uncommitted changes

Files:
• src/index.ts - CLI argument parsing and configuration
• src/utils/axios.ts - Filesystem support for all functions
• README.md - Local development documentation

Maintains full backward compatibility while enabling powerful local development capabilities.
@shelldandy shelldandy self-assigned this Jul 16, 2025
@shelldandy shelldandy merged commit b87c52a into master Jul 17, 2025
@shelldandy shelldandy deleted the feat/local-grafana branch July 17, 2025 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant