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
Deterministic Grafana preflight tool (fallback for prompt-driven validation) #38
Issue #10 implements Grafana datasource validation as a prompt-driven workflow — Claude calls mcp-grafana tools and compares URLs. This works but is non-deterministic: it relies on Claude correctly executing a multi-step comparison. If this proves unreliable in practice (wrong datasource selected, URL comparison flubbed, etc.), we need a deterministic fallback.
Depends on:#10 (prompt-driven preflight must be tried first)
The #10 design chose "Option A: Prompt-driven preflight" over "Option B: Preflight tool with user-supplied datasource config" because it's simpler and requires no extra configuration. The design explicitly noted:
"If prompt-driven validation proves unreliable, fall back to a deterministic pcp_grafana_preflight tool with user-supplied config."
This issue is that fallback.
Proposed Feature
A new pmmcp tool: pcp_grafana_preflight
Configuration:
PMMCP_GRAFANA_DATASOURCE_UID — the expected Grafana datasource UID (user pre-configures this)
Behaviour:
Claude calls mcp-grafana.get_datasource(uid) and passes the result to pcp_grafana_preflight
The tool extracts the datasource's pmproxy URL from the response
Compares it deterministically with pmmcp's configured PMPROXY_URL
Activity