Skip to content

Conversation

@sd2k
Copy link
Collaborator

@sd2k sd2k commented Mar 13, 2025

Prior to this commit, the MCP server wasn't respecting the
GRAFANA_URL and GRAFANA_API_KEY environment variables when running in
SSE mode, and was expecting them to be passed in via headers
(which is admittedly non-standard).

This commit adds a fallback to the environment variables if the
headers aren't present.

Relates to #40.

Prior to this commit, the MCP server wasn't respecting the
`GRAFANA_URL` and `GRAFANA_API_KEY` environment variables when running in
SSE mode, and was expecting them to be passed in via headers
(which is admittedly non-standard).

This commit adds a fallback to the environment variables if the
headers aren't present.

Relates to #40.
@sd2k sd2k requested a review from a team as a code owner March 13, 2025 15:05
@sd2k sd2k merged commit 5ea4e20 into main Mar 13, 2025
3 checks passed
@sd2k sd2k deleted the sse-fallback-to-env-vars branch March 13, 2025 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants