Add 3 opt-in Loki tools (query_logs, list_labels, list_label_values) that are registered when LOKI_URL is configured. Includes Loki HTTP client, CLI commands (logs, labels), NixOS module option, formatting, and tests. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
46 lines
926 B
JSON
46 lines
926 B
JSON
{
|
|
"mcpServers": {
|
|
"nixpkgs-options": {
|
|
"command": "nix",
|
|
"args": [
|
|
"run",
|
|
".#nixpkgs-search",
|
|
"--",
|
|
"options",
|
|
"serve"
|
|
],
|
|
"env": {
|
|
"NIXPKGS_SEARCH_DATABASE": "sqlite://:memory:"
|
|
}
|
|
},
|
|
"nixpkgs-packages": {
|
|
"command": "nix",
|
|
"args": [
|
|
"run",
|
|
".#nixpkgs-search",
|
|
"--",
|
|
"packages",
|
|
"serve"
|
|
],
|
|
"env": {
|
|
"NIXPKGS_SEARCH_DATABASE": "sqlite://:memory:"
|
|
}
|
|
},
|
|
"lab-monitoring": {
|
|
"command": "nix",
|
|
"args": [
|
|
"run",
|
|
".#lab-monitoring",
|
|
"--",
|
|
"serve",
|
|
"--enable-silences"
|
|
],
|
|
"env": {
|
|
"PROMETHEUS_URL": "https://prometheus.home.2rjus.net",
|
|
"ALERTMANAGER_URL": "https://alertmanager.home.2rjus.net",
|
|
"LOKI_URL": "http://monitoring01.home.2rjus.net:3100"
|
|
}
|
|
}
|
|
}
|
|
}
|