POC: expose datasource capabilities via embedded MCP#740
Draft
POC: expose datasource capabilities via embedded MCP#740
Conversation
Add a replace directive pointing the SDK at the local sibling repo so this datasource picks up the in-progress embedded MCP work. Add TestSchemaDefinitions (adapted from PR #291) which uses the schemabuilder to produce v0alpha1/query.types.json and query.examples.json under pkg/schema/ - this location lets Go's //go:embed pick up the schema later for the MCP integration.
3 tasks
|
|
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adopts the new
experimental/mcppackage from grafana/grafana-plugin-sdk-go#1549 to expose query types, resource routes and a health check tool over MCP.Generates the v0alpha1 query schema (20 query types) via
schemabuilderand hand-authorsroutes.jsonfor the/labelsand/milestonesendpoints. Schema lives atpkg/schema/v0alpha1/so Go's//go:embedcan pick it up.pkg/main.gowires anmcp.Serverand registers one example custom prompt (investigate-pull-requests).Depends on grafana/grafana-plugin-sdk-go#1549. The local
go.moduses areplacedirective against the SDK branch - to merge upstream, the SDK changes need to land first and the replace needs to be removed in favor of a real version bump.Test plan
go test ./pkg/...passesTestSchemaDefinitionsregenerates schema files idempotentlymcp-inspector(see SMOKE_TEST.md in workspace)