feat: add metadata-exposure-enrichment skill and Metabase MCP#10
Open
aboyalejandro wants to merge 2 commits into
Open
feat: add metadata-exposure-enrichment skill and Metabase MCP#10aboyalejandro wants to merge 2 commits into
aboyalejandro wants to merge 2 commits into
Conversation
Add a new skill that enriches dbt exposure definitions by querying Metabase directly via MCP. Discovers dashboard cards, maps columns to dbt models, audits _exposures.yml for gaps, and writes enriched metadata back. Includes barebones _exposures.yml as starting point. - New skill: .claude/skills/metadata-exposure-enrichment/SKILL.md - New file: dbt/models/marts/_exposures.yml (barebones, pre-enrichment) - Add nao-metabase-mcp-server to .mcp.json - Update QUICKSTART.md with Metabase MCP setup instructions - Update README.md with new skill and MCP server references Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Ran metadata-exposure-enrichment skill to auto-discover dashboard cards
and enrich _exposures.yml with structured description, owner, maturity,
and the missing source('marketing_raw', 'campaigns_daily') dependency.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
/metadata-exposure-enrichmentskill that queries Metabase dashboards via MCP, discovers cards and column references, cross-references them to dbt models, and enriches_exposures.ymlwith structured metadata_exposures.ymlas the "before" state the skill enriches (name + type + url + 2 depends_on refs)nao-metabase-mcp-serverto.mcp.jsonfor direct Metabase access_exposures.ymlusing the skill itself -- ran/metadata-exposure-enrichmentagainst dashboard ID=2, which auto-discovered 6 cards, mapped source tables to dbt refs/sources, and wrote the enriched YAMLHow the skill was used
The
/metadata-exposure-enrichmentskill was invoked against the "Agentic Data Modeling Demo" dashboard (ID=2). It:metabase-list-dashboardsto confirm the dashboard existsmetabase-get-dashboardto extract all 6 dashcards (card IDs 40-45)campaign_performance, table 11 =campaigns_daily) and columns used (roas, conversion_rate, total_revenue, spend, desktop_sessions, mobile_sessions, date, channel)metabase-get-database-metadatato resolve Metabase internal table IDs to real table namescampaign_performance->ref('campaign_performance'),campaigns_daily->source('marketing_raw', 'campaigns_daily')_exposures.ymland found 5 gaps: missing description, owner, maturity, card documentation, and thecampaigns_dailysource dependencysource()dependencyContext
Companion to the Substack article "dbt Exposures: How To Make Your BI Discoverable To AI". The skill follows the same pattern as
metadata-ai-readiness: parse input, discover via MCP, audit existing YAML, report gaps, offer to enrich. Works with Metabase MCP + Postgres MCP only, no OpenMetadata dependency.Test plan
cd openmetadata && docker compose up -dto start the stackhttp://localhost:3000docker compose --profile ingestion up seed-metabasehttp://localhost:3000/admin/settings/authentication/api-keysMETABASE_API_KEYin.envand.mcp.json_exposures.ymlincludes description, owner, maturity, and expanded depends_on🤖 Generated with Claude Code