Repository navigation
mcp-data-platform-v1.146.0
The platform has its own catalog: DataHub is no longer needed
v1.146.0 is the first release in which the semantic layer does not depend on DataHub. Through v1.145.0, table and column context, glossary terms, lineage and cross-enrichment came from a DataHub instance (semantic.provider: datahub); without one the layer was off. From this release the catalog is part of the platform and lives in its PostgreSQL database. github.com/txn2/mcp-datahub is no longer a dependency, the datahub_* tools are gone, and a deployment needs only PostgreSQL for the full semantic layer, plus whatever connections it serves.
A deployment that runs DataHub today upgrades without editing its configuration first: it starts, catalogs its connections, and imports its DataHub curation once (see Upgrading from v1.145.x).
Documentation: Catalog, Deployment shapes.
Highlights
- Platform catalog. Datasets, columns, glossary terms and nodes, tags, domains and data products, stored as versioned aspects with history and rollback (#1917).
- Connection scans. Every Trino, API and GraphQL connection is cataloged every 6 hours and on demand, managed on Admin > Catalog (#1918).
- Native semantic provider. Enrichment, the Trino query provider, memory and the semantic middleware read the catalog (#1919).
- Lineage from what runs.
trino_executewrites and managed-script exports record lineage edges (#1922). apply_knowledgewrites to the catalog, with optimistic concurrency and transactional rollback (#1920).- Knowledge > Catalog in the portal. Browse, search, edit and roll back curation (#1921).
searchandfetchreplace the twelvedatahub_*tools (#1924).- Automatic DataHub import on upgrade (#2124).
- Webhook receiver spool. An optional local write-ahead spool answers senders once events are on disk (#2121).
- Thumbnails wait for styles. Tiles are captured after stylesheets, fonts and JSX modules have loaded (#2122).
- Downloads from HTML and JSX assets (#2127).
- Capture guidance. Agents are told to capture facts about data, never query results (#2128).
Upgrading from v1.145.x
-
Your DataHub configuration still starts. The DataHub that
toolkits.datahubnames is imported into the platform catalog after the first catalog scan. That is the instancesemantic.instancechose, else the kind'sdefault, else the first by name, with itsurlorendpointand itstoken. The import runs once per address. Until one finishes without error it is retried after each scan, and one run at a time is held across replicas. Runs are recorded asplatform (upgrade from DataHub)on Admin > Catalog > Import. -
What the import carries over. Datasets (records DataHub marked removed fill fields the live record lacks), glossary nodes and terms, tags, domains, data products and lineage. They are written onto the datasets the scan cataloged, and
semantic.urn_mappingis honored so each dataset lands where it was placed before. An aspect written in the platform since is kept. -
References are rewritten. The same run rewrites
urn:li:references in memories, insights, changesets, call records and knowledge pages tomcp:catalog references. -
Nothing else of DataHub runs. There are no
datahub_*tools and no DataHub enrichment, andsemantic.provider: datahubis read as the platform catalog. -
These 13 settings are accepted for this release only, strict parsing included, and logged once at startup as
deprecated_key:semantic.provider: datahub,toolkits.datahub,semantic.instance,semantic.urn_mapping,semantic.lineagequery.urn_mapping, thestorage:blockenrichment.datahub_query_enrichment,enrichment.datahub_storage_enrichment,enrichment.s3_semantic_enrichment,enrichment.search_schema_preview,enrichment.schema_preview_max_columnsknowledge.apply.datahub_connection
Remove them once the import has finished. The next release refuses them.
-
Importing again.
POST /api/v1/admin/catalog/importswith no body (or{}) imports the configured DataHub again. A body withurlandtokenimports another instance; the token is used for that run and not kept. The Import tab offers both. -
Stored DataHub connections are removed. Migration 000199 deletes stored
datahubconnection instances, with their OAuth tokens and auth alerts. -
apply_knowledgesink renamed. The sinkdatahubis nowcatalog, with no alias. -
urn:li:references are refused.apply_knowledge, the semantic provider, the Trino query adapter and knowledge-page references refuse them, and each refusal names themcp:form to use. -
Old changesets cannot be rolled back. A changeset written to DataHub before this release is refused with the reason.
-
Tool and field changes. The
datahub_*tools are removed, with no aliases.platform_infono longer reportsdatahub_connection. S3 semantic enrichment is removed. -
Migrations. 000196 through 000200 run on startup.
Catalog
Store and references (#1917)
- Storage. Catalog entities are stored in PostgreSQL as versioned aspects with full history and rollback (migration 000196).
- Datasets and columns.
- A dataset is
mcp:dataset:(kind,connection,path). - A column is
mcp:column:(kind,connection,path,column). - The path is the dotted name the connection uses:
catalog.schema.tablefor Trino, the operation id for an API, the dotted operation for GraphQL.
- A dataset is
- Definitions. Glossary terms, nodes, domains and data products are
mcp:<type>:<uuid>, andfetchalso accepts their slug. Tags aremcp:tag:<name>.
Scans (#1918)
- When connections are scanned. Trino, API and GraphQL connections are scanned every 6 hours and on demand, up to four at once. One replica scans at a time, under an advisory lock.
- What a scan skips. The Trino
systemcatalog and everyinformation_schema. - Partial reads. A Trino catalog that cannot be read is listed as unread with its reason, and the rest of the connection is still cataloged.
- Registered tables. A table registered through
manage_tableor a webhook source is cataloged before the call returns. - Schema documents.
- Each API connection's OpenAPI spec and each GraphQL connection's SDL is kept as
mcp:schema_document:(kind,connection,filename)(migration 000198). - Each operation's dataset links its document.
fetchreturns a document only under the connection's persona boundary.
- Each API connection's OpenAPI spec and each GraphQL connection's SDL is kept as
- Admin > Catalog. Scans, Settings (exclusions and interval), Documents and Import tabs.
- Routes.
GET/PUT /api/v1/admin/catalog/settings,GET/POST /api/v1/admin/catalog/scans,GET /api/v1/admin/catalog/documentsandGET /api/v1/admin/catalog/documents/{kind}/{connection}/{filename}.
Semantic provider (#1919)
- Default with a database.
internal/platform/catalogsemanticis the semantic provider on every deployment with a database.semantic.provider: noopturns the layer off. - Resolving a table. It resolves a table by the calling connection, else by the first connection that catalogs its path.
- Cross-enrichment. It reads the catalog in both directions:
trino_describe_tablecarries the catalog's curation and the dataset'smcp:datasetreference.fetchon a dataset carries query availability.
Lineage (#1922)
- From statements. A
trino_executeCTAS, INSERT ... SELECT, MERGE or CREATE VIEW records an edge from each table read to the table written. - From scripts. A managed script run records edges from the tables it read to the files it exported.
- Reading lineage.
fetchon a dataset includes three hops upstream and downstream. Only hops whose source and target the caller's persona both reach are shown.
apply_knowledge (#1920)
- Transactions. Every change type is written to the catalog in one transaction per apply.
- Concurrent edits. Each edit carries the value it read. A write that finds the aspect changed since is retried up to three times, so concurrent applies cannot lose one another's updates.
- Rollback. A rollback reverts every change in the changeset in one transaction. It is refused, naming the newer write, when any of those aspects was written after it.
- New behavior.
delete_tagandbulk_untagare revertible.add_glossary_termcreates a term the catalog does not hold.
- Connection boundary. Writes are held to the persona's connection boundary, the same rule as the portal routes.
- Call promotion. Promoting a SQL call record adds its statement as a curated query on each dataset it read.
- Knowledge-page citations. A knowledge page may cite catalog entities by their
mcp:reference. A citation naming a connection is listed only to readers whose persona may reach it.
Portal: Knowledge > Catalog (#1921)
- Tabs. Tables, Glossary, Tags, Domains and Data products. An open entity is addressed by
?ref=<mcp reference>, so every catalog reference in the portal links straight to it. - Dataset page. It shows, and lets an editor change:
- description, tags, glossary terms, owners, domain and properties;
- each column's description, tags and terms;
- context documents.
- Also on the dataset page. Lineage within three hops, the schema document, the knowledge pages that cite it, and full history with Roll back on each change.
- Definition pages. Each edits its description, shows history and backlinks, and can be deleted. A definition still in use is refused with what uses it.
- Routes. Under
/api/v1/portal/catalog. Reading takes the persona'sfetchgrant, writing itsapply_knowledgegrant, and every write is audited as anapply_knowledgecall with sourceportal.
search and fetch replace the datahub_* tools (#1924)
| Read | Now |
|---|---|
| an entity | fetch on mcp:dataset:(kind,connection,path) |
| its schema | the same document carries columns with types and curation |
| its lineage | the same document carries upstream and downstream hops |
| a glossary term | fetch on mcp:glossary_term:<id or slug> |
| search | search ranks datasets (catalog) and definitions (governance) |
| browse | fetch on a path above datasets, a glossary node, or mcp:connection:(kind,name) |
Safety of catalog reads
- Sanitized curation. Curation is sanitized before it reaches a model, on every catalog read path. An instruction pattern found in curation is logged with the reference and field it was in.
- Enrichment gateway. The
datahubsource is replaced by acatalogsource withget_datasetandget_definition.
Webhook receiver spool (#2121)
A webhook receiver can now acknowledge a delivery once its events are on the replica's own disk, and drain them to object storage afterward. Senders with short timeouts no longer fail when the object store slows down.
webhooks:
receiver:
spool:
dir: /var/lib/mcp-data-platform/spool # off until set
max_bytes: 1073741824 # default 1 GiB
max_age: 1h # default- Off by default. The spool is off until
diris set. One directory serves one replica; a second process opening it is refused. - Startup. A directory that cannot be opened stops startup.
- What is spooled. The verified events, not the raw request. A drain never re-checks a signature, so a timestamp tolerance or a rotated secret cannot refuse an acknowledged delivery.
- Answers.
- 202 once the events are appended and synced.
- 503 with
Retry-After: 5pastmax_bytesormax_age(outcomespool_full), or when the write fails.
- Exactly once. Objects are written under keys named for the spool file, so re-draining after a crash overwrites rather than duplicates. Torn tails are cut off on recovery.
- Shutdown. A stopping replica drains for up to
write_timeout; the rest drains at the next start. - Visibility.
- Spool state per replica is stored in
webhook_spool_state(migration 000200). - It is reported as
spoolsonGET /api/v1/admin/webhooks/status. - Admin > Webhooks shows a Spool card.
- Spool state per replica is stored in
- Metrics.
webhook_spool_bytes,webhook_spool_events,webhook_spool_files,webhook_spool_oldest_age_seconds,webhook_spool_drained_events_total{source},webhook_spool_drain_failures_total{source}. - Deployment.
docs/server/webhooks.mdcovers volume choices:emptyDir, or a StatefulSet withvolumeClaimTemplates.
Thumbnails captured after styles load (#2122)
- When a frame is ready. An HTML or JSX frame reports ready only once every stylesheet (including one added by script) has loaded or failed, fonts are ready, and styles and layout have been still for 400 ms. The wait is bounded at 6 s.
- JSX. A JSX frame waits for its module to run, bounded at 15 s, instead of a fixed 2 s.
- Missing files are retried. A public stylesheet or script that could not be fetched (network failure, 429 or 5xx) holds the tile back with
retry_backoffinstead of storing an unstyled tile. Counted asthumbnail_render_failures_total{reason="subresource"}. - Cache. The renderer caches public
GETresponses for ten minutes (64 MB). - New setting
thumbnails.allow_private_cidrs. It names private prefixes a drawn document may load files from, such as an internal CDN. Every other private address stays refused.
Downloads from HTML and JSX assets (#2127)
- Sandbox. HTML and JSX frames, in the portal and the public viewer, are sandboxed with
allow-scripts allow-downloads. A CSV a page builds from aBlobdownloads when the reader clicks. - Download anchors.
<a href="mcp:asset:..." download>and<a href="mcp://..." download>naming a declared reference are accepted bysave_assetandmanage_asset. They are served as?download=1withContent-Disposition: attachment. - Plain links. A plain link to a reference is still refused, and the refusal now mentions the download attribute.
Capture guidance (#2128)
These are prompt and description changes only:
- What to capture. The baseline instructions,
memory_capture, the query tools' capture route and the capture-guidance prompt tell agents to capture facts about data, never query results, totals, rankings or row values. - What to strip.
apply_knowledgeand the review prompt tell reviewers to strip figures and row values before applying.
Pull requests
- #2119 feat(catalog): native catalog store, scans, provider, lineage. Closes #1917, #1919, #1922.
- #2120 feat(catalog): writes, schema documents, DataHub import. Closes #1918, #1920, #1923.
- #2123 feat(catalog): portal catalog, search/fetch reads, DataHub removed. Closes #1916, #1921, #1924, #1925.
- #2126 feat(catalog): import DataHub at startup on upgrade. Closes #2124.
- #2129 feat: webhook spool, styled tiles, asset downloads, capture rule. Closes #2121, #2122, #2127, #2128.
Changelog
Features
- d7e5645: feat(catalog): import DataHub at startup on upgrade (#2124) (#2126) (@cjimti)
- ca6ec94: feat(catalog): native catalog store, scans, provider, lineage (#1917) (#2119) (@cjimti)
- 1188908: feat(catalog): portal catalog, search/fetch reads, DataHub removed (#1916) (#2123) (@cjimti)
- 80fa689: feat(catalog): writes, schema documents, DataHub import (#1920) (#2120) (@cjimti)
- 9ebfdda: feat: webhook spool, styled tiles, asset downloads, capture rule (#2121) (#2129) (@cjimti)
Installation
Homebrew (macOS)
brew install txn2/tap/mcp-data-platformClaude Code CLI
claude mcp add mcp-data-platform -- mcp-data-platformDocker
docker pull ghcr.io/txn2/mcp-data-platform:v1.146.0Verification
All release artifacts are signed with Cosign. Verify with:
cosign verify-blob --bundle mcp-data-platform_1.146.0_linux_amd64.tar.gz.sigstore.json \
mcp-data-platform_1.146.0_linux_amd64.tar.gzArchives and checksums also carry GitHub artifact attestations. Verify with:
gh attestation verify mcp-data-platform_1.146.0_linux_amd64.tar.gz \
--repo txn2/mcp-data-platform