feat(dbt): add ingest_dbt_manifest tool for Model/Source nodes and DEPENDS_ON lineage#583
Open
alexisperinger-ux wants to merge 3 commits into
Open
Conversation
…PENDS_ON lineage Signed-off-by: alexisperinger-ux <alexis.peringer@iss-stoxx.com> (cherry picked from commit e6a7493cb14306533f0a15f44b868e92145ca3e5) Signed-off-by: alexisperinger-ux <alexis.peringer@iss-stoxx.com>
Signed-off-by: alexisperinger-ux <alexis.peringer@iss-stoxx.com> (cherry picked from commit f96cc3966f30d135ef389d59c8ff16c59d656e0d) Signed-off-by: alexisperinger-ux <alexis.peringer@iss-stoxx.com>
Signed-off-by: alexisperinger-ux <alexis.peringer@iss-stoxx.com>
6e5feeb to
40b3a35
Compare
This was referenced Jun 23, 2026
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.
What does this PR do?
dbt computes a resolved dependency graph into
target/manifest.json, but it was never ingested, so a project's model and source lineage stayed invisible to the index even though dbt had already calculated it. This adds an opt-in MCP toolingest_dbt_manifest {project, manifest_path}:model/seed/snapshotbecomeModel/Seed/Snapshotnodes;sourcebecomes aSourcenode, each keyed by dbtunique_id.depends_on.nodesbecomes aDEPENDS_ONedge (model-to-model and model-to-source).testand analysis resources are skipped, so the graph keeps only lineage-bearing nodes.It runs after
index_repositoryagainst an existing store, so it augments rather than fabricates a graph, and is independent of index mode.No schema change: reuses
cbm_store_upsert_node/cbm_store_insert_edgeand the existingDEPENDS_ONedge type.Tests:
tool_ingest_dbt_manifest_issue576intests/test_mcp.c, asserting 5 models + 2 sources + 5DEPENDS_ONedges from a fixture manifest, with thetestnode skipped.Fixes #576.
Part of the SQL/dbt indexing series
This is one of three PRs that split the SQL + dbt graph-indexing work to keep each under the one-issue-per-PR contributing rule. They share the same extraction and registry plumbing, so they are one logical change reviewed as a set:
Table/Viewnodes + FROM/JOIN lineage (#574)..sql,Model/Macronodes +ref()/source()lineage (#575).Model/Sourcenodes +DEPENDS_ONlineage (#576).