Skip to content

mcp-data-platform-v1.146.0

Choose a tag to compare

@github-actions github-actions released this 15 Oct 05:05
· 110 commits to main since this release
9ebfdda

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_execute writes and managed-script exports record lineage edges (#1922).
  • apply_knowledge writes to the catalog, with optimistic concurrency and transactional rollback (#1920).
  • Knowledge > Catalog in the portal. Browse, search, edit and roll back curation (#1921).
  • search and fetch replace the twelve datahub_* 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.datahub names is imported into the platform catalog after the first catalog scan. That is the instance semantic.instance chose, else the kind's default, else the first by name, with its url or endpoint and its token. 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 as platform (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_mapping is 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 to mcp: catalog references.

  • Nothing else of DataHub runs. There are no datahub_* tools and no DataHub enrichment, and semantic.provider: datahub is 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.lineage
    • query.urn_mapping, the storage: block
    • enrichment.datahub_query_enrichment, enrichment.datahub_storage_enrichment, enrichment.s3_semantic_enrichment, enrichment.search_schema_preview, enrichment.schema_preview_max_columns
    • knowledge.apply.datahub_connection

    Remove them once the import has finished. The next release refuses them.

  • Importing again. POST /api/v1/admin/catalog/imports with no body (or {}) imports the configured DataHub again. A body with url and token imports 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 datahub connection instances, with their OAuth tokens and auth alerts.

  • apply_knowledge sink renamed. The sink datahub is now catalog, 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 the mcp: 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_info no longer reports datahub_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.table for Trino, the operation id for an API, the dotted operation for GraphQL.
  • Definitions. Glossary terms, nodes, domains and data products are mcp:<type>:<uuid>, and fetch also accepts their slug. Tags are mcp: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 system catalog and every information_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_table or 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.
    • fetch returns a document only under the connection's persona boundary.
  • 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/documents and GET /api/v1/admin/catalog/documents/{kind}/{connection}/{filename}.

Semantic provider (#1919)

  • Default with a database. internal/platform/catalogsemantic is the semantic provider on every deployment with a database. semantic.provider: noop turns 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_table carries the catalog's curation and the dataset's mcp:dataset reference.
    • fetch on a dataset carries query availability.

Lineage (#1922)

  • From statements. A trino_execute CTAS, 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. fetch on 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_tag and bulk_untag are revertible.
    • add_glossary_term creates 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's fetch grant, writing its apply_knowledge grant, and every write is audited as an apply_knowledge call with source portal.

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 datahub source is replaced by a catalog source with get_dataset and get_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 dir is 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: 5 past max_bytes or max_age (outcome spool_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 spools on GET /api/v1/admin/webhooks/status.
    • Admin > Webhooks shows a Spool card.
  • 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.md covers volume choices: emptyDir, or a StatefulSet with volumeClaimTemplates.

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_backoff instead of storing an unstyled tile. Counted as thumbnail_render_failures_total{reason="subresource"}.
  • Cache. The renderer caches public GET responses 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 a Blob downloads when the reader clicks.
  • Download anchors. <a href="mcp:asset:..." download> and <a href="mcp://..." download> naming a declared reference are accepted by save_asset and manage_asset. They are served as ?download=1 with Content-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_knowledge and the review prompt tell reviewers to strip figures and row values before applying.

Pull requests

Changelog

Features

Installation

Homebrew (macOS)

brew install txn2/tap/mcp-data-platform

Claude Code CLI

claude mcp add mcp-data-platform -- mcp-data-platform

Docker

docker pull ghcr.io/txn2/mcp-data-platform:v1.146.0

Verification

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.gz

Archives 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