Add ad-hoc agent/MCP query demo and deployable MCP server#60
Open
felihong wants to merge 1 commit into
Open
Conversation
Adds demos/agent_mcp_query, showing how to answer ad-hoc questions against an Impulse silver layer by building and computing a report on the fly (channels/events/bins as call-time parameters, no persisted Gold table), then exposing that logic as MCP tools. Adds demos/agent_mcp_app, a deployable Databricks App that hosts the same tools as a custom MCP server reachable from AI Playground or any MCP-compatible agent.
|
|
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.
Summary
demos/agent_mcp_query: answers ad-hoc questions against an Impulse silver layer by building and computing a report on the fly (channels/events/bins/virtual signals as call-time parameters, no report defined in code ahead of time and no persisted Gold table), then exposes that logic as MCP tools (list_channels,list_containers,preview_histogram,preview_histogram_2d,preview_stats,preview_point_values) with an in-notebook round trip against real data.demos/agent_mcp_app: a deployable Databricks App hosting the same tools as a custom MCP server, reachable from AI Playground or any MCP-compatible agent. See itsREADME.mdfor setup, dependency-pin rationale, and known limitations (no per-user auth yet; distance/custom-weighted histograms gated off after finding they produce numerically incorrect results — the notebook's Section 3 has the repro).Test plan
demos/agent_mcp_querytop to bottom on a serverless cluster with a fresh catalog/schema; confirm the in-notebook MCP round trip (Section 5) returns real data for all 6 tools.demos/agent_mcp_appper its README; confirm it's discoverable in AI Playground and thatlist_channels/preview_histogram/preview_histogram_2dreturn correct results against the deployed app.This pull request and its description were written by Isaac.