Repository navigation
mcp-data-platform-v1.147.0
Summary
v1.147.0 adds a Storage page that shows every store the platform writes to, with growth and a projected fill date. It adds alerts for storage and for inbound webhooks at a warning and a critical level, and a History section on the Webhooks page. Column curation along the catalog's lineage comes back: v1.146 lost it when the platform catalog replaced DataHub. The release also clears every open Dependabot alert, and the dependency scanner that reports those alerts now fails the build.
Upgrade notes in brief: two migrations run at startup (201, 202). The new alerts post nothing until you name notification channels for them. Rolling upgrades are safe: replicas on v1.146 keep writing their webhook counts. Details under Upgrading.
New
Storage capacity (#2148)
Admin > Storage lists every store the platform writes to: how much is used and free, how fast it is growing, and when it would fill at that rate.
| Store | Used | Capacity |
|---|---|---|
| Database | pg_database_size |
the Database limit you set (the platform cannot read the database server's disk) |
| SeaweedFS cluster | the volume servers' disks, summed | the same disks |
| Each bucket | the bytes the platform holds in it | its budget; a bucket on SeaweedFS with no budget gets what it holds plus the cluster's free space |
| Each replica's webhook spool | the spool's filesystem (statfs) |
that filesystem's size |
- SeaweedFS is read from the master's
/dir/statusand from each volume server's/status, all servers at once. A server that does not answer is named, so a partial reading says so. Setseaweedfs.master_urlin the settings. If the master lists addresses the platform cannot reach, setseaweedfs.volume_urlsto name the volume servers directly. - Growth and fill date: each store is sampled every 15 minutes (
MCP_PLATFORM_STORAGE_HISTORY_INTERVAL) on one replica at a time, and samples are kept 180 days by default. Growth is a least-squares fit over the last 7 and the last 30 days. The fill date uses the slower of the two rates, so a short burst does not pull it in. Select a store's row to see its history over 7, 30, 90 or 180 days. - Budgets set in the settings override
MCP_PLATFORM_STORAGE_BUDGETSbucket by bucket. Buckets the settings do not name keep the environment's budget, and thestorage_bucket_budget_bytesgauge reads the same merged set. - Alerts: each store alerts on percent used (warning 75%, critical 90%) and on days until full (warning 30, critical 7).
- Settings: Admin > Settings > Alerts > Storage, or
GET|PUT /api/v1/admin/settings/storage. - API:
GET /api/v1/admin/storage, andGET /api/v1/admin/storage/history?store=<key>&days=<n>, where the key isdatabase,seaweedfs,bucket:<name>orspool:<replica>.
Docs: Storage Capacity
Webhook alerts (#2149)
Ten conditions that end in lost or late events, each with a warning and a critical level. Set them under Admin > Settings > Alerts > Webhooks or GET|PUT /api/v1/admin/settings/webhook-alert. Per-source conditions take overrides on each source.
| Condition | Default warning / critical |
|---|---|
Spool fill, against max_bytes |
50% / 80% |
Oldest spooled event, against max_age |
25% / 60% |
| Drain failures in a row, per source | 3 / 10, or failing for 5 minutes |
| Spool volume free space | 25% / 10% free |
| A replica holding events stopped reporting | critical after 120 s |
Refusals (spool_full, write_failed, buffer_full) |
any in 5 minutes / one in every minute of 5 |
unauthorized share of a source's requests |
10% over 15 minutes |
| Acknowledgement p99 | 1 s / 5 s |
| Compaction behind (past the window's end and grace) | 1 minute, or a failing window / 30 minutes |
| A source silent | off unless set per source |
- One replica evaluates every condition each minute (
MCP_PLATFORM_WEBHOOK_ALERT_INTERVAL). - A replica that stops reporting for two minutes is judged only on whether it still holds events. A replica replaced in a rollout does not alert on its last report.
- Drain failures are counted per source, so one source that drains cleanly does not hide another that keeps failing.
- A post names the source or replica, the value, the threshold and the page. It never includes a payload.
Docs: Inbound Webhooks: Alerts
How a leveled alert is sent
Storage and webhook alerts share one engine, and it sends each episode once:
- While a condition holds, it is posted at its level under a key that carries the condition, the level and the time that level began. The channel's repeat window holds back repeats within one episode.
- A move from warning to critical posts at once, and so does a condition that clears and comes back.
- A condition that clears is posted once as
resolved. - State is kept in the database, so a restart or another replica picks up where the last pass left off.
- A store the pass could not read keeps its condition: it is neither resolved nor posted again.
Webhook history (#2150)
The Webhooks page gains a History section. GET /api/v1/admin/webhooks/status gains range=week (hourly buckets), range=custom with from/to (RFC 3339), and a history block:
- Requests by HTTP status, per source and minute.
- Acknowledgement latency by stage: time in the buffer, recording the window, writing the segment.
- Per replica: events received against events drained each minute. When a replica's object store is down, the two lines pull apart.
- Compaction runs: duration, lag, segments, events, and input, decoded and output bytes.
- Sizing: the largest window's decoded size against the process memory limit, with a warning at a fixed share of it.
- Retention: per-minute rows are rolled up into hourly rows after 48 hours and kept for
webhooks.compactor.telemetry_retention_days(default 14). - New metrics:
webhook_responses,webhook_ack_stage,webhook_written_events,webhook_written_bytes,webhook_compaction_duration,webhook_compaction_lag,webhook_window_held_bytesandwebhook_source_bytes{source,kind}. No existing series changed its name or labels.
range=hour and range=day answer as before.
Fixed
Columns inherit curation along the catalog's lineage again (#2130)
Through v1.145, a column with no curation of its own showed its upstream column's, read along DataHub lineage. v1.146 replaced DataHub with the platform catalog, and those columns lost that context. The catalog provider now restores it from the catalog's own lineage: the edges the DataHub import carried over, plus those the platform records from trino_execute writes, managed-script runs and table registrations.
- A column with no description or glossary terms of its own gets those of the same-named column (case-insensitive) in the nearest upstream dataset that has them, up to two hops away. A column's own curation is never replaced.
- Tags are not inherited.
is_pii,is_sensitiveand the PII consent prompt read only the column's own tags. - An upstream dataset on a connection the caller's persona cannot reach lends nothing.
- An inherited column carries
inherited_from(source_dataset,source_column,hops,match_method), and the result listsinheritance_sources. - Inheritance is applied on read and nothing is copied, so curating the upstream column changes every downstream column at once.
- It is on by default.
enrichment.lineage_inheritance: falseturns it off.
Webhook raw retention checks what compaction read (#2151)
Retention deletes a window's raw segments only when the listing it is about to delete matches the digest compaction recorded. A segment written after a compaction chose its inputs is never deleted as if it had been compacted.
Platform alerts no longer run out of per-actor budget
Platform alerts (review queue, connection auth, script runs, and the two new families) are no longer charged against the per-actor rate limit (burst 30, 6 per minute). The channel's hourly cap and repeat window still bound them. Before, repeats that the repeat window held back still used up the limit, and the resolved post that followed them could be dropped. Sends from the notify tool and from scripts are limited as before, including those whose API key carries no email.
The scratch-schema reconcile leaves managed tables alone (#2141)
GET /api/v1/admin/tables/reconcile listed managed tables, such as a managed script's working tables, as orphans ("Not the platform's; left alone"). Registrations are always external tables, so managed tables are now skipped, and a repair that asks to drop one is refused.
Portal: missing build files are 404, and a failed chunk reloads once (#2139)
- A path under
/portal/assets/that the build does not have now returns 404, notindex.html. During a rolling update, a page from one build that asks a replica on the other build for a file no longer gets HTML that a browser or proxy could cache under that file's URL. index.htmlis served withCache-Control: no-cache.- When a page's code chunk fails to load, the portal reloads once. A second failure within 30 seconds shows the "This page could not be loaded" message instead.
Math in Mermaid diagrams renders (#2144)
A $$...$$ node label in a Mermaid diagram rendered empty because the sanitizer stripped MathML. Formulas now render. Scripts, event handlers and links on MathML elements are still removed.
The resource folder tree scrolls inside its panel (#2167)
A long folder tree in the resource file manager now scrolls inside its panel instead of running past it.
Security and dependencies
- All 17 open Dependabot alerts are cleared (#2143):
- 15 in
github.com/xuri/excelize/v2: 11 high, 4 medium. Fixed by moving to the upstream commit that carries every fix, since no tagged release has them yet. katex(GHSA-238p-pmpm-9mq7): fixed by moving mermaid to 12.postcss-selector-parser(GHSA-rj75-hqrm-r3gf): fixed by an override to 7.1.6. The built portal CSS is byte-identical.
- 15 in
- Dependency bumps (#2163):
- Go:
golang.org/x/net0.61.0,golang.org/x/crypto0.58.0,github.com/aws/smithy-go1.28.5,github.com/getkin/kin-openapi0.150.0. - Portal:
vite8.3.4,@vitejs/plugin-react6.1.2,@tailwindcss/vite4.3.3. - Not taken:
typescript7 (the lint and type tooling does not support it yet) andtrino-go-client1.x (it requires Go 1.27 and changes whattrino_queryreturns for ROW, nested DATE/TIMESTAMP and DOUBLE array values; tracked in txn2/mcp-trino#113).
- Go:
Upgrading from v1.146.x
- Migrations:
000201_leveled_alerts_storage_historyadds the alert state and storage sample tables, plus four spool report columns.000202_webhook_telemetryadds the status count, per-replica and compaction tables, plus stage and size columns on existing webhook tables.- Both run at startup and both have down migrations.
- Rolling upgrades:
webhook_request_countskeeps its shape and status counts go in their own table, so v1.146 replicas keep writing their counts while the rollout runs. - Turn the alerts on: both alert families start with no channels, so nothing is posted until you name one or more notification channels in Admin > Settings > Alerts > Storage and > Webhooks. A channel name that does not exist is refused.
- Read SeaweedFS: set
seaweedfs.master_urlin the storage settings to fill the cluster row and give unbudgeted buckets a capacity. Without it, the page still lists the database, buckets with budgets, and spools. - Set a database limit: the database's capacity is unknown until you set
database_limit_bytes. - API:
- New routes:
GET /api/v1/admin/storage,GET /api/v1/admin/storage/history,GET|PUT /api/v1/admin/settings/storageandGET|PUT /api/v1/admin/settings/webhook-alert. - The webhook status response gains
historyanduntil. Every field it carried before is unchanged. - A
PUTto either settings route keeps any field it leaves out.
- New routes:
Docs
- New: Storage Capacity
- Inbound Webhooks: alerts, history, retention and metrics
- Notifications: leveled alerts, and platform alerts outside the per-actor limit
- Catalog: inherited column curation
- Configuration:
enrichment.lineage_inheritanceandwebhooks.compactor.telemetry_retention_days
Changelog
Features
Bug Fixes
- ef63631: fix: dependency alerts, osv gate, lineage inheritance, docs build (#2143) (#2146) (@cjimti)
Others
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.147.0Verification
All release artifacts are signed with Cosign. Verify with:
cosign verify-blob --bundle mcp-data-platform_1.147.0_linux_amd64.tar.gz.sigstore.json \
mcp-data-platform_1.147.0_linux_amd64.tar.gzArchives and checksums also carry GitHub artifact attestations. Verify with:
gh attestation verify mcp-data-platform_1.147.0_linux_amd64.tar.gz \
--repo txn2/mcp-data-platform