Skip to content

Conversation

@sd2k
Copy link
Contributor

@sd2k sd2k commented Jun 5, 2025

This commit adds an end-to-end testing infrastructure and UI improvements to ensure the MCP functionality works as expected in a real Grafana plugin.

To do so, I had to add a page to the plugin which actually uses the MCP server, so there's been a bit of a rewrite of the main plugin page, but before it just showed the models list which wasn't very useful.

I followed the plugin tools docs for migrating from the old e2e tests (not that we had any anyway), so many of the generated files come from that, but there are also some rather verbose files generated by Claude which we might want to remove before merge.

@github-actions

This comment has been minimized.

@sd2k
Copy link
Contributor Author

sd2k commented Jun 5, 2025

Hm screenshots show no MCP tools, will have a look at that tomorrow

@github-actions
Copy link

github-actions bot commented Jun 5, 2025

E2E Tests failure

Configuration:

  • Browser(s): chromium
  • Grafana Version: main

Action Required:
Please check the workflow run for detailed results and artifacts.

@sd2k sd2k marked this pull request as ready for review June 6, 2025 14:47
@sd2k sd2k requested a review from a team as a code owner June 6, 2025 14:47
sd2k added 3 commits June 10, 2025 08:12
This commit adds an end-to-end testing infrastructure and UI improvements
to ensure the MCP functionality works as expected in a real Grafana
plugin.

To do so, I had to add a page to the plugin which actually uses the MCP
server, so there's been a bit of a rewrite of the main plugin page, but
before it just showed the models list which wasn't very useful.

I followed the [plugin tools docs](https://grafana.com/developers/plugin-tools/e2e-test-a-plugin/migrate-from-grafana-e2e)
for migrating from the old e2e tests (not that we had any anyway), so
many of the generated files come from that, but there are also some
rather verbose files generated by Claude which we might want to remove
before merge.
It sometimes has the sidebar, sometimes doesn't, not worth it.
@CLAassistant
Copy link

CLAassistant commented Jun 10, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@obetomuniz obetomuniz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :shipit:

Just added a tiny guide to help MacOS users if they figure out port conflict issues with AirPlay Receiver.

Screenshot 2025-06-10 at 11 19 02

@sd2k
Copy link
Contributor Author

sd2k commented Jun 10, 2025

Thanks beto! We should probably just use a different port heh, l will fix that in a separate PR.

@sd2k sd2k merged commit 42b3fb4 into main Jun 10, 2025
20 checks passed
@sd2k sd2k deleted the e2e-tests branch June 10, 2025 14:24
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.

3 participants