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
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -548,7 +548,7 @@ Forwarded headers are merged with any headers defined in `GRAFANA_EXTRA_HEADERS`
548
548
- **Download binary**: Download the latest release of `mcp-grafana` from the [releases page](https://github.com/grafana/mcp-grafana/releases) and place it in your `$PATH`.
549
549
550
550
- **Build from source**: If you have a Go toolchain installed you can also build and install it from source, using the `GOBIN` environment variable
551
-
to specify the directory where the binary should be installed. This should also be in your `PATH`.
551
+
to specify the directory where the binary should be installed. This should also be in your `$PATH`.
552
552
553
553
```bash
554
554
GOBIN="$HOME/go/bin" go install github.com/grafana/mcp-grafana/cmd/mcp-grafana@latest
-**Exclude:** All other install methods, deep configuration.
57
+
58
+
### Install with Docker
59
+
60
+
-**Context:** README.md (Docker image, STDIO vs SSE vs streamable-http)
61
+
-**Include:** docker pull/run for stdio and SSE, port mapping, env vars. Override `-t stdio` for stdio mode.
62
+
-**Exclude:** Helm, binary, TLS server config (cover in Configure).
63
+
64
+
### Install the binary
65
+
66
+
-**Context:** README.md (Download binary, Build from source)
67
+
-**Include:** Releases page link, GOBIN/path, `go install` for source build.
68
+
-**Exclude:** uvx and Docker steps.
69
+
70
+
### Deploy with Helm
71
+
72
+
-**Context:** README.md (Helm chart)
73
+
-**Include:** helm repo add/install, grafana.apiKey and grafana.url. Link to helm-charts repo.
74
+
-**Exclude:** In-cluster Grafana setup (out of scope).
28
75
29
76
## Configure
30
77
@@ -33,13 +80,53 @@ Output configure docs to `docs/sources/configure/`.
33
80
Create individual articles for each feature or component.
34
81
Order articles from foundational to advanced configuration.
35
82
83
+
### Authentication
84
+
85
+
-**Context:** README.md (Usage, service account, env vars)
86
+
-**Include:** Service account token (recommended), username/password, GRAFANA_SERVICE_ACCOUNT_TOKEN and GRAFANA_API_KEY deprecation. Link to Grafana service account docs.
-**Exclude:** RBAC (covered in introduction or separate doc if needed).
118
+
36
119
## introduction.md
37
120
38
121
Create one `introduction.md` article covering these key unique concepts:
39
122
40
-
- Concept 1
41
-
- Concept 2
42
-
- Concept 3
123
+
-**Model Context Protocol (MCP):** What MCP is and how the Grafana MCP server lets AI assistants and LLM clients talk to Grafana (dashboards, datasources, metrics, logs, traces, alerts, incidents).
124
+
-**Tools and capabilities:** High-level categories (dashboards, datasources, Prometheus/Loki/others, alerting, incidents, OnCall, Sift, navigation, rendering). Configurable tool set and context-window considerations.
125
+
-**Authentication and RBAC:** Service account (or user) and Grafana RBAC; least-privilege vs Editor role; link to Grafana RBAC docs.
-**Include:** Use the MCP server from a client to run PromQL (instant/range), list metrics and labels. Example use case (e.g., check a metric in a conversation).
146
+
-**Exclude:** Panel query execution, Loki or other datasources.
147
+
148
+
### Query logs with Loki
149
+
150
+
-**Context:** README.md (Loki Querying)
151
+
-**Include:** LogQL log and metric queries, label names/values, patterns. Example use case.
# Whether to pull the latest container image before running the container.
61
+
ifeq ($(origin PULL), undefined)
62
+
exportPULL := true
63
+
endif
64
+
65
+
.PHONY: docs-rm
66
+
docs-rm: ## Remove the docs container.
67
+
$(PODMAN) rm -f $(DOCS_CONTAINER)
68
+
69
+
.PHONY: docs-pull
70
+
docs-pull: ## Pull documentation base image.
71
+
$(PODMAN) pull -q $(DOCS_IMAGE)
72
+
73
+
make-docs: ## Fetch the latest make-docs script.
74
+
make-docs:
75
+
if [[ !-f"$(CURDIR)/make-docs" ]];then
76
+
echo'WARN: No make-docs script found in the working directory. Run `make update` to download it.'>&2
77
+
exit 1
78
+
fi
79
+
80
+
.PHONY: docs
81
+
docs: ## Serve documentation locally, which includes pulling the latest `DOCS_IMAGE` (default: `grafana/docs-base:latest`) container image. To not pull the image, set `PULL=false`.
82
+
ifeq ($(PULL), true)
83
+
docs: docs-pull make-docs
84
+
else
85
+
docs: make-docs
86
+
endif
87
+
$(CURDIR)/make-docs $(PROJECTS)
88
+
89
+
.PHONY: docs-debug
90
+
docs-debug: ## Run Hugo web server with debugging enabled. TODO: support all SERVER_FLAGS defined in website Makefile.
91
+
docs-debug: make-docs
92
+
WEBSITE_EXEC='hugo server --bind 0.0.0.0 --port 3002 --logLevel debug'$(CURDIR)/make-docs $(PROJECTS)
93
+
94
+
.PHONY: vale
95
+
vale: ## Run vale on the entire docs folder which includes pulling the latest `VALE_IMAGE` (default: `grafana/vale:latest`) container image. To not pull the image, set `PULL=false`.
topic/%: ## Create a topic from the Writers' Toolkit template. Specify the topic type as the target, for example, `make topic/task TOPIC_PATH=sources/my-new-topic.md`.
112
+
$(patsubst%,topic/%,$(TOPIC_TYPES)):
113
+
$(if$(TOPIC_PATH),,$(error "You must set the TOPIC_PATH variable to the path where the $(@F) topic will be created. For example: make $(@) TOPIC_PATH=sources/my-new-topic.md"))
0 commit comments