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: articles/managed-grafana/grafana-mcp-server.md
+24-1Lines changed: 24 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,7 @@ To connect to the AMG-MCP endpoint, you need to configure your MCP client with t
45
45
46
46
-[**Grafana service account token:**](#grafana-service-account-token) A token generated from your Grafana instance (format: `glsa_xxx`)
47
47
-[**Entra ID token:**](#entra-id-token) An Azure AD/Entra ID token (e.g., from a managed identity or service principal)
48
+
-[**OAuth authentication with Entra ID:**](#oauth-authentication-with-entra-id) An interactive browser-based login flow. The MCP client handles the OAuth flow automatically. Supported by Visual Studio Code with GitHub Copilot and Visual Studio with GitHub Copilot.
48
49
49
50
### Grafana service account token
50
51
@@ -95,6 +96,28 @@ Use an Entra ID token (Azure AD token) for authentication. This approach is usef
95
96
}
96
97
```
97
98
99
+
### OAuth authentication with Entra ID
100
+
101
+
AMG-MCP supports OAuth authentication using Entra ID. No manual token configuration is needed. The following clients are supported:
102
+
- Visual Studio Code with GitHub Copilot
103
+
- Visual Studio with GitHub Copilot
104
+
105
+
106
+
In your Visual Studio Code or Visual Studio MCP configuration, add the following setting. Replace `<grafana-endpoint>` with your Grafana endpoint.
107
+
108
+
```json
109
+
{
110
+
"servers": {
111
+
"my-grafana-mcp-server": {
112
+
"type": "http",
113
+
"url": "https://<grafana-endpoint>/api/azure-mcp"
114
+
}
115
+
}
116
+
}
117
+
```
118
+
119
+
When GitHub Copilot connects to the MCP server, it prompts you to sign in with your Entra ID account.
120
+
98
121
## Examples
99
122
100
123
The following examples further demonstrate configuring AMG-MCP in your settings.
@@ -166,4 +189,4 @@ If you encounter any issues, open an issue in the [Azure Managed Grafana GitHub
166
189
> [Configure MCP for AI Foundry agents](./how-to-configure-mcp-for-ai-foundry.md)
167
190
>
168
191
> [!div class="nextstepaction"]
169
-
> [Enable zone redundancy](./how-to-enable-zone-redundancy.md)
192
+
> [Enable zone redundancy](./how-to-enable-zone-redundancy.md)
0 commit comments