mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:46 +01:00
23 lines
796 B
JSON
23 lines
796 B
JSON
{
|
|
// Project-scoped MCP: loaded only while working in this repo, so its tools
|
|
// cost context here and nowhere else.
|
|
//
|
|
// mcp-grafana talks to the homelab Grafana. The service-account token stays in
|
|
// the environment (GRAFANA_SERVICE_ACCOUNT_TOKEN, exported by the hand-edited
|
|
// ~/.secrets/nushell-secrets.nu), never in git.
|
|
"$schema": "https://opencode.ai/config.json",
|
|
"mcp": {
|
|
"servers": {
|
|
"grafana": {
|
|
"type": "local",
|
|
// Read-only surface; drop --disable-write to allow dashboard/alert edits.
|
|
"command": ["mcp-grafana", "--disable-write"],
|
|
"environment": {
|
|
"GRAFANA_URL": "https://grafana.writefor.fun",
|
|
"GRAFANA_SERVICE_ACCOUNT_TOKEN": "{env:GRAFANA_SERVICE_ACCOUNT_TOKEN}",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|