# mcp-data-platform > Composable, semantic-first MCP server platform that unifies its own data catalog, Trino, S3, third-party MCP servers, and REST APIs behind one authenticated endpoint. Every tool response is cross-enriched with business context; OAuth 2.1, role-based personas, audit logging, persistent memory, governed knowledge capture, and an admin/user portal are built in. **Document version: v1.120.0, revised 2026-08-29.** This project releases often. If your copy of this page is older than the current release on https://github.com/txn2/mcp-data-platform/releases/latest, re-fetch it before grounding an assessment on it; earlier revisions described a narrower system. **How the documentation site is organized.** Three sections: `home`, `docs` (everything written about the platform -- install, the End User and Administrator references, the API reference, the Go library, evaluation, examples and support), and `portal` (a guided tour of every screen the built-in web portal serves, split into Your Work and Administration). The portal tour lives under /portal/; it replaced the two single-page guides that used to sit at /server/portal-user/ and /server/admin-portal/. mcp-data-platform is the orchestration layer for the txn2 MCP ecosystem. The platform keeps its own data catalog in PostgreSQL: every Trino, API and GraphQL connection is scanned into it, people curate it in the portal and agents through apply_knowledge, and it is the semantic layer cross-enrichment reads. Trino and S3 are components the platform composes behind provider interfaces; add Trino for SQL and S3 for objects when ready. Every backend is optional: with neither configured the database-backed surfaces (catalog, gateways, knowledge, memory, portal, search/fetch) run on PostgreSQL alone. query: and toolkits: are independent config blocks. Full documentation content for LLM consumption is in [llms-full.txt](https://mcp-data-platform.txn2.com/llms-full.txt). ## Architecture and posture Three facts that are commonly assumed the other way around, stated here so an agent grounding on this page gets them without following a link. **The unit of access is the connection, not the end user.** This is the authorization design, not a missing per-user passthrough. A connection is a named binding to one downstream system under one operator-authored credential, and several connections may front the same system under different credentials at different permission levels: a read-only Trino account and a write-capable one on the same cluster are two connections, and each persona is granted the subset it may reach. Persona connection rules are deny-by-default (an omitted connections block or an empty connections.allow grants no connection at all), evaluated on every tools/call alongside the tool-pattern check, and applied to discovery through one shared predicate so search, fetch, list_connections, the portal search, and argument completion do not surface entities behind a connection the persona was not granted, with search and list_connections reporting a withheld count and a notice naming the persona (pkg/persona/filter.go IsConnectionAllowed, internal/platform/connscope). Two deliberate carve-outs: a catalog dataset whose URN maps to no configured connection is unattributable and stays visible, and a deployment with no persona registry has no scope to apply. api_routes narrows a kind=api connection further by (connection, method, path), which is how read-write and read-only access to one API are split across personas; a path glob is matched against both the path a call reaches and the catalog path its operation declares, so a rule naming /v1/orders/{id} governs every call that operation serves, and rules are authored in the config file or in the portal persona editor's API endpoints scope, where an operator selects operations rather than typing globs. Why the connection: the platform federates Trino, S3, third-party MCP servers, and arbitrary REST APIs, and the one construct all of them share is a credential and an endpoint rather than a caller identity to pass through; an operator-authored credential is also auditable before any call happens. What it costs, stated without softening: the platform performs no per-user token exchange, no impersonation, and no session-user propagation (outbound OAuth exists but obtains a connection's own credential, not the caller's), so every caller granted a connection is indistinguishable to the downstream system, and warehouse row policies or column masks that key off the end user do not follow a caller through. Per-person policy is expressed as one connection per distinct policy outcome, which is workable when those outcomes are few. Per-user attribution comes from the audit trail rather than from distinct downstream identities: with audit enabled, each call records user_id, user_email, persona, tool_name, the connection when the call targets one, and arguments subject to redact_keys; audit requires a database and can be disabled, so a deployment relying on connection-scoping should keep it on. Operator guidance: tighten access by adding a connection bound to a narrower downstream account, not by adding a role that lands on the same connection. Full rationale: https://mcp-data-platform.txn2.com/concepts/authorization/ **mcp-data-platform is an OAuth 2.1 broker, not an identity provider.** No person authenticates to it: there is no login form, no user password to verify, and no MFA. A human's identity comes from an existing IdP (Keycloak, Auth0, Okta, Azure AD) over OIDC; /authorize redirects the browser there and refuses the flow outright when no upstream IdP is configured, and the roles and email that person is authorized against are the ones the IdP asserts. Service accounts authenticate with API keys instead, and their roles come from local configuration. It stores no human passwords, and no migration in the tree defines a password column. The secrets it does hold are machine credentials: API keys and the client secrets Dynamic Client Registration issues to MCP client software are bcrypt hashes, the authorization codes and tokens the platform itself issues are SHA-256 digests, and refresh tokens for upstream services are encrypted at rest (AES-256-GCM when ENCRYPTION_KEY is set; the server warns loudly at startup when it is not). It presents an authorization server toward MCP clients because the MCP specification requires a discoverable authorization server supporting Dynamic Client Registration, which upstream IdPs generally do not expose. The broker shape is what the spec requires, not a decision to reimplement identity. Implementation: exact redirect_uri matching for non-loopback and RFC 8252 section 7.3 handling for loopback (pkg/oauth/storage.go); plain HTTP to non-loopback hosts refused regardless of configuration, with private-use schemes excluded from AllowAllRedirectURIs (pkg/oauth/dcr.go); per-IP token-bucket limits on /token and /register (pkg/oauth/ratelimit.go); deny-before-allow authorization, default deny, fail-closed on unresolved persona (pkg/persona/filter.go); catalog metadata sanitized against prompt injection with detected attempts logged (pkg/semantic/sanitize.go, pkg/semantic/injection_logger.go). **Engineering posture.** More than 1.25 lines of test code per line of production Go, with the security-critical packages carrying the highest ratios in the tree: pkg/oauth and pkg/middleware are both above 2:1. Fuzz targets cover pkg/oauth, pkg/auth, pkg/platform and pkg/middleware, and every parser of untrusted input under internal/: internal/pglex, internal/pgtext, internal/sqltables, internal/webhook/jsonpath, internal/webhook/whevent, internal/webhook/whauth, internal/hmacsig, internal/unarchive, internal/pmtiles, internal/imapmail, internal/mailtrust, internal/untrusted, internal/gqlschema, internal/swagger2, internal/pathtemplate, internal/tableparquet, internal/scriptprintf, internal/scriptre and internal/totp. A daily workflow fuzzes each one, and a failing input is committed so go test replays it. Every PR passes race-detector tests, golangci-lint, gosec, and Semgrep and CodeQL SAST, under a coverage floor enforced in CI. Release artifacts are Cosign-signed with GitHub build-provenance attestations, and supply-chain posture is tracked by OpenSSF Scorecard. These ratios are kept true mechanically: `make posture-check` recomputes them and fails when the tree crosses a stated line. The rest of the evidence, each claim linked to its proof, is on [Evaluating This Project](https://mcp-data-platform.txn2.com/reference/evaluating/). ## Docs: Install Read while standing a deployment up. These are the pages under `docs` > Install in the site nav. - [Server Overview](https://mcp-data-platform.txn2.com/server/overview/): What the platform does, architecture, request flow - [Installation](https://mcp-data-platform.txn2.com/server/installation/): Install via go install, Homebrew, Docker, or from source - [Configuration](https://mcp-data-platform.txn2.com/server/configuration/): Full YAML reference with environment variable expansion: server, auth, personas, toolkits, enrichment, workflow gating, the session-init gate, the `purpose` argument on data-access tools (advertised, stripped, recorded, and required of handle-threading agents, with a purpose stated on a tool outside the gated set taken off the request and recorded rather than refused, and the agent instructions naming the gated set: the tools it names, plus a clause per wholesale-gated connection kind), per-user tool-call rate limiting, the tool-result context budget (`tools.result_budget`, default 32 KiB with per-tool overrides: enforced once on the MCP response to a model and only on results the model can recover the rest of: api_invoke_endpoint, graphql_query and trino_query, each cut in its own shape and steered to its export tool, while every other result (knowledge pages, tool help, prompts, documents, proxied tools) reaches the model whole; REST gateway, script and admin callers are never fitted, and meet only a connection's `max_response_bytes`, past which the REST route answers 413; it replaced the per-connection `max_inline_bytes`, which now has no effect), prompts (including the `server.builtin_prompts` per-prompt switch; `platform_info` no longer lists the library, which is reached by handle through `manage_prompt use`, `fetch` and the portal's Prompts page), resources (templates plus the full `resources.managed` block, including the `extract` limits for archive extraction (max_member_bytes, max_total_bytes, max_members, max_ratio, independent of the upload ceiling), the `max_upload_bytes` ceiling, the streaming upload path it bounds, and the part order both write routes read the form in), argument autocompletion (completion/complete), portal, database, audit, the call catalog (retention, a persona's `service_account` setting (the portal persona editor's "Service account" checkbox) and its file-config form, the `calls.exclude_personas` list, either of which stops an automated principal's calls being cataloged and embedded while leaving the audit log untouched, removes the records it already wrote in batches of 5,000 together with their index units, with a sweep started at once when the persona is saved in the portal, and the admin Indexing page's Top callers list that names the caller and persona holding most of the catalog, and the one caller that takes no knob: a managed script run, whose calls are audited and never cataloged because a run presents its author's persona and is by construction the re-run), session settings, and explicit session handles (platform_info-minted session_id, MCP 2026-07-28 sessionless readiness). Includes config versioning and hot-reloaded per-key database overrides. An S3 instance's `timeout` bounds a whole call, the request and the read of the response body, and now reaches the platform's own asset and managed-resource clients rather than only the `s3_*` tools; with none set those two take the deployment's object ceiling at a 1 MB/s floor instead of a flat 30 s, because a full-object read the platform itself sized is a throughput budget rather than a timeout (#1773) A `thumbnails` block (`enabled`, default on; `renderer_url`, default `http://127.0.0.1:9222`) points the platform at the headless Chrome it draws every asset, resource and collection tile in (#1787), and paces the worker (`concurrency`, `render_timeout`, `batch`, `lease`, `poll`, `max_attempts`, `retry_backoff`; `allow_private_cidrs` names the private prefixes a drawn document may load files from, #2122). An HTML or JSX frame reports itself drawn only once its stylesheets have loaded or failed, its fonts have settled and its styles and layout have been still for a quiet period (a JSX frame waits for its module to run, not a fixed delay); a public stylesheet or script the platform could not fetch (network, 429, 5xx) makes the attempt unfinished and retried, never a stored unstyled tile; public answers are kept ten minutes for the next render (#2122): a document whose attempts never finish is recorded as not drawable after `max_attempts`, held back longer after each (#1868). The worker reads only rows marked due by a trigger, through a partial index, so asking for work costs the same in a library of any size; `poll` is the first idle wait, doubling to a minute, and a row becoming due wakes every replica over LISTEN (#2084). `max_source_bytes` (1 MB) and `large_source_bytes` (32 MB, PDF/CSV/TSV) bound the document a tile is drawn from; a file past its bound is reported on every asset and resource read as `thumbnail_skipped: "over_source_limit"` with `thumbnail_source_limit` (#2072). The `elicitation` block (cost estimate over `row_threshold`, PII consent) prompts before a `trino_query`, per Trino connection, as input requests on a 2026-07-28 client and in band on an older one; the estimate is measured as `trino_queries_total{query_kind="explain"}` (#2052). Index-job embeds yield to interactive embeds on any replica, through the embed_interactive table (#1988). `portal.login_redirect` sends a signed-out portal visitor straight to the identity provider when OIDC browser sign-in is on, with `/portal/?login=api_key` keeping the API key form unless `portal.allow_api_key_login: false` (#2242). `server.trusted_proxies` names the proxy CIDRs whose X-Forwarded-For an endpoint's `ip_rate_limit` and `req["client_ip"]` read, and the portal and OAuth limits when theirs are empty; a range wider than /8 (/32 for IPv6) is refused (#2556). Schema gate: SELECT * and count(*) of one table run unread, a successful SELECT * is the read (#2810); SESSION_EXPIRED names its reason (expired, unknown, other_identity) and issues a new session_id on expired/unknown (#2816); platform_info names the tools of each connection kind (#2812); platform feedback settings (#2820). - [Deployment](https://mcp-data-platform.txn2.com/server/deployment/): Docker Compose and Kubernetes deployment guides, including how connected agents pick up tool-contract changes across an upgrade. Kubernetes is plain manifests applied with kubectl (ServiceAccount, ConfigMap, Deployment, Service, Ingress, HPA, PDB, given in full); no Helm chart and no operator ship with the repository. Names PostgreSQL 16 and 17 as the supported majors, both covered by the migration gate on every change The Deployment manifest carries a second container, `chromedp/headless-shell` pinned by digest, that the platform draws thumbnails in: no Service or port, reached on loopback, never given an address to call; a document it draws reaches no network because the platform answers every request the page makes (#1787). Thumbnail renderer sizing: raster images are reduced by the platform before the renderer draws them (96 MiB decoded at most), and a document that takes the renderer down is recorded at once (#2697); every file a drawn page loads is answered up to 16 MiB, a range from its start for a video, within 64 MiB answered at once per replica, so redrawing every site tile after an upgrade costs what one draw does (#2721). - [Deployment Shapes](https://mcp-data-platform.txn2.com/server/deployment-shapes/): Which backends a deployment needs, orthogonal to operating mode. The semantic stack (PostgreSQL and Trino, optionally S3) for cross-enrichment; the API-and-knowledge shape on PostgreSQL alone, with no warehouse, listing the twenty tools it registers and what it gives up (cross-enrichment, trino_*/s3_* tools, warehouse tables in the catalog; apply_knowledge writes the platform catalog, which every database-backed deployment has unless semantic.provider is noop); and the combined shape. Includes the minimal YAML for each, and running replicas over one database: sessions.store: database, the X-Platform-Instance response header naming the serving process, the X-Platform-Build header and build meta element an open portal page moves to a new build by (#2727, signed-in callers only), how the connection store rather than a replica's memory answers both what connections exist and a call that names one, and the local two-replica lane make dev runs behind a round-robin nginx that make acceptance connects to, with the criteria that need another stack (script worker off, ClickStack) named per environment in test/acceptance/environments.txt and run nightly - [The Data Stack](https://mcp-data-platform.txn2.com/concepts/components/): Why the built-in catalog, Trino, and S3, what each component brings, and how cross-enrichment makes them greater than the sum of their parts. Components the platform composes, not a prerequisite list: a deployment can attach any subset, including none - [Content Model](https://mcp-data-platform.txn2.com/concepts/content-model/): The four content layers and which one a given file belongs to. Resources are human-uploaded inputs used as-is, assets are AI-generated outputs, knowledge pages are curated facts to search and synthesize, and memory is per-user recall. Covers the canonical positioning statement held byte-identical across platform_info, the portal, and the docs; the resources section platform_info appends for the agent (search for a template before formatting a deliverable, resolve a named company file with search/fetch, treat prompt attachments as authoritative), tool-gated per persona; and the server.agent_instructions rule that makes an approved template mandatory; also names the built-in knowledge pages the platform ships (including asset references and the refresh loop, and writing a document that fits the reader's screen, each carrying a mermaid diagram of its mechanism) (embedded in the binary, reconciled at startup, badged Built-in and read-only, hidable and restorable per deployment, named by slug from the instruction baseline and manage_script help and fetchable by that slug) - [Authorization Model](https://mcp-data-platform.txn2.com/concepts/authorization/): Why access is scoped at the connection rather than the end user, and what that boundary does and does not enforce. Several connections may front one downstream system under different credentials at different permission levels; personas are granted the subset they may reach, deny-by-default, on tool calls and on discovery alike; api_routes narrows an API connection by method and path. The trade stated plainly: no token exchange, no impersonation, no session-user propagation, so warehouse row policies and column masks that key off the end user do not follow a caller through, per-person policy is expressed as one connection per distinct outcome, and per-user attribution comes from the audit trail. Includes when to add a connection instead of a role, and how the model compares with a warehouse-native MCP server that inherits its warehouse's per-user policy inside that one warehouse ## Docs: End User Using the platform. These are the pages under `docs` > End User in the site nav. - [Tools](https://mcp-data-platform.txn2.com/server/tools/): Complete tool list for every toolkit (Trino, S3, knowledge, memory, portal, gateways), fetch of the platform catalog's own references (mcp:dataset:(kind,connection,path), mcp:column:, mcp:glossary_term:, mcp:glossary_node:, mcp:domain:, mcp:data_product:, mcp:tag:, mcp:schema_document:), plus search's tools source (the tool for an action you name, with an example call), manage_prompt with the use resolve-and-run verb (any handle: name, display name, mcp:prompt:, free text), prompt resource attachments (a prompt carries its template, checklist, or brand asset as embedded resources and resource links, scope-checked at attach, promotion, and serve time), prompt versioning with approval provenance (content edits to approved shared prompts pend as draft versions until admin approval; served prompts carry version and approver; run counts from prompt-serve audit events), sharing an asset from the session (manage_asset share/list_shares/revoke_share: a recipient named by email or by a name resolved against the known-users directory, which refuses to guess between candidates; a restricted viewer or editor share that mails the recipient, or an authenticated link, or a public link that must carry an expiry), manage_table (register / list / unregister a stored CSV as a Trino external table, keyed by the reference a search hit carries so one action serves an uploaded resource and a saved asset alike), manage_resource (create / replace_content / get / list / delete / extract on the managed resource library; extract streams the members of a stored zip, gzip or gzipped tar into managed resources under a path, member folders kept as converted folder names, one member optionally filed under a fixed filename so if_exists=replace records the next version and followed tables move, zip-slip names, encrypted members, unsupported methods and any resources.managed.extract limit refused before anything is written, a mid-stream failure naming the members already written; the files a saved asset references: content as text or base64 bytes capped at the same portal.max_content_size save_asset uses, a create reporting the mcp:// URI save_asset's references argument takes, and a replacement keeping the resource's id, URI and filename so every asset referencing it serves the new bytes without being re-saved and every citation and prompt attachment keeps resolving -- recorded in the resource's version history with its author and change summary, restorable, and re-announced to connected clients; creating is scope authority defaulting to the caller's own user scope with the refusal naming the SCOPE and not the file, replacing is authority over that file, and a resource the caller cannot see is answered as absent; a managed-script run is judged as the person it acts for, since it authenticates as a principal that owns no file and is in nobody's library -- resource.Claims.OnBehalfOf, empty for every human, is read by VisibleScopes, CanWriteScope, CanAccessResource and CanModifyResource so a run reaches the file its author uploaded through the portal under their SUBJECT and its own creates land in the author's library rather than the principal's; and the lifecycle around those two writes -- get answering what is filed at an address (scope + path + filename) or what a reference names without the bytes, since search is relevance-ranked and a file it does not return is not a file that is not there, list reporting a folder and everything beneath it, create taking if_exists=replace so landing one rolling file per source is idempotent and the caller keeps no id, and delete removing a file and its version trail under the same authority a replacement takes -- refused while an asset references it, a prompt attaches it or a table is registered over it, since neither reference row is a foreign key and both deliberately outlive the file, counted rather than named because each carries an audience the caller is not necessarily in, with force=true deleting anyway and dropping any table over it; a knowledge page is NOT among them, since ParseCitableRef refuses an mcp:resource: citation on a shared page and no writer of knowledge_page_entity_refs bypasses it), the shared content-editing grammar on manage_asset, manage_prompt and manage_script (patch with anchored edits, locate, get_content, outline, stats, diff; text anchors never line numbers, all-or-nothing application, unified diff as output only, dry_run, base_version staleness checks, text-only refusal; the payload key required and the only one -- `replace` on op=replace, `text` on every other writing op, an omitted or undeclared key REFUSED by name rather than read as an empty replacement that deleted the anchor and reported success (#1804), so deleting is always `"replace": ""` written out; syntax-aware region naming so an HTML/JSX/SVG asset is addressed by CSS selector or heading with balanced element spans, while markdown is addressed by heading and structureless content by anchored edits only), the semantic index over catalog dataset descriptions that makes a fact applied to the catalog reachable from a topical query naming no entity, the governance search source that returns the catalog's glossary terms and nodes, tags, domains and data products as entities in their own right (with their definitions in the hit, and fetchable by their references to the definition plus the datasets and columns that carry it, a node listing what is under it), what replaces each kind of read and write the removed datahub_* tools made, the `purpose` argument the platform adds to every data-access tool and to the two tools that write an asset, save_asset and manage_asset (one sentence naming the wider task the call serves, stripped before the handler and recorded on the audit row, refused with PURPOSE_REQUIRED when a handle-threading agent omits it, and taken off the request and recorded rather than refused when stated on a tool outside that set; an asset is the output a person opens weeks later and the first question they ask is what it was for, so the sentence is recorded beside the write, while apply_knowledge stays outside the set because what it applies is itself the explanation), the sessions search source and `fetch mcp:session:` that let an agent recall its own past work by what it was for — the session's summary, the assets and insights it produced as references to follow, and its call timeline with each call's purpose and, where the catalog recorded one, its kind, outcome and `mcp:call:` reference — scoped in the read so another caller's session id is answered exactly as an id that never ran, and the uniform structured error envelope, and the MCP tool annotations every registered tool advertises on tools/list (readOnlyHint on every tool, since the specification tells a client to assume a tool is NOT read-only when the hint is absent and clients that act on that confirm every unannotated call, which made the mandatory platform_info-then-search-then-fetch opening three write prompts; destructiveHint stated rather than omitted on every write, because the default for an absent one is true; and the hint describing the TOOL rather than the call, so a mixed read/write tool like manage_asset or s3_object advertises the most it can do, held against internal/toolwrite by a structural gate so the advertised hint and the draft write barrier cannot disagree) memory_capture reports recall_check (pending or unavailable) instead of superseded ids (#1987). save_asset is how every document is produced in the user's own words: a PowerPoint or deck is an HTML presentation, a report Markdown or HTML, a spreadsheet CSV, never a local file or a bucket (#1995). A chart, diagram, mind map, roadmap, network or animation in a document is drawn with a CDN library at a pinned version, taught by the built-in page mcp:knowledge_page:platform-visual-libraries (Vega-Lite, Mermaid, Markmap, d3-sankey, Frappe Gantt, Cytoscape.js, Graphviz, Rough.js, dotLottie), which the instruction baseline and save_asset's description name (#2373). `manage_table check` answers whether a table could be registered on a connection, writing nothing (#2213); `list_connections` lists limited connections under `call_limits` (#2209). The S3 tools and bucket sources refuse the platform's own portal and managed-resource buckets on every connection and for every persona, naming the surface that reads them instead, and a granted connection whose credentials list one, or a backup bucket, is logged at startup (#2616). save_asset returns existing_tags and similar_assets (assetsimilar.NearDuplicate, cosine 0.93) over what the caller can open without refusing or holding the save, and manage_asset takes asset_ids, add_tags and remove_tags for bulk update, delete and share (#2507, #2508). Platform feedback (#2820, #2885): manage_feedback topic=platform reports what the platform could not do to its operator (kind=blocked: trying_to, blocked_by, tool, suggestion, mcp:call: refs) or what would have made the agent faster (kind=improvement: observed, proposal, benefit, benefit_kind), off by default, platform_feedback settings, credential check, repeats folded onto open posts and answered with the release or reason of a shipped or declined one, sent as platform.feedback to channels, admin routes under /api/v1/admin/platform-feedback (ranked list, per-persona prompt counts); with it on, the session-start instructions name both loops (memory_capture for the data, topic=platform for the platform), refusals for a missing capability and after a session's first carry the reporting sentence, and patterns in a session's calls add a note, each recorded in audit_logs.feedback_prompt. trino_describe_table takes catalog, schema and table separately (#2814). save_asset's description and its instruction line tell an agent to save to the platform even when its client offers its own artifact or canvas feature, because nothing kept in one vendor's chat reaches the organization's other agents and people, naming the built-in page mcp:knowledge_page:platform-why-assets-live-in-the-platform, and say an HTML, JSX or SVG asset must fit a 375-pixel phone screen (#2463). - [Content Types and Viewers](https://mcp-data-platform.txn2.com/server/content-viewers/): Where an asset's or resource's media type comes from, and what renders it. Content-type detection at every write path (save_asset, manage_asset update, manage_resource create and replace_content, api_export, resource upload) with alias normalization, a bounded-prefix sniff that keeps streaming exports streaming, and a hard rule that detection may only reclassify into passive families, never into text/html, text/jsx or image/svg+xml. Where detection cannot help, a declaration is required rather than guessed: save_asset and manage_resource create refuse a write with no content_type, because SVG, HTML, JSX and Markdown all read as plain text to a byte sniffer and text/plain under nosniff is a file that silently does not render, while replace_content keeps the type the resource already carries so a refresh cannot reclassify a file under every reference to it; the types to choose between ship as a built-in knowledge page generated from the same tables the code decides on. One stored-type allowlist across the three doors that take a caller-declared type for string content (REST inline create, save_asset, manage_asset update), with application/xhtml+xml absent; the byte-carrying resource upload keeps a denylist so the reference library still takes the long tail of document formats. One shared renderer registry across the portal viewer, public/guest viewer, collection items, and the resource viewer: a searchable collapsible JSON tree with JSONPath copy, NDJSON, CSV/TSV tables, image zoom and pan, audio and video with seek, embedded PDF, a Parquet viewer that reads the file by byte range (schema with the Trino type each column registers as, file facts, one row group at a time) and a Table | Records toggle on JSON lines (#1833), CodeMirror for structured text and code, and a metadata card for anything else. Per-family inline size limits, read from the one registry by the asset page, the preview modal and the admin asset viewer alike, with a failed content read shown with its status, Retry and Download rather than a loading state (#1874), and raw-content serving with nosniff, sanitized types, attachment-only active types, byte-range support, and a private-by-default cache directive. What a public share page actually loads: its chrome and its stylesheet inline, and the renderer as a module reference to /portal/view/_assets/, where each family's viewer is a separate content-hashed chunk the browser fetches only if the asset needs it, so a markdown document does not ship CodeMirror, the JSX transformer, the CSV parser or the diagram engine, and a document with no mermaid fence does not ship the diagram engine either; the chunk route is outside both the share access gate and the viewer rate limiter, since there is no token in the path and the same bytes serve every viewer, while the limiter is sized for page loads and one cold view with a diagram in it fetches around thirty chunks at once; its immutable caching means the second share someone opens costs no JavaScript, and a chunk that does not arrive (a tab left open across a deploy) is caught by an error boundary rather than blanking the page. The stylesheet is compiled against the viewer's own bundle rather than copied from the portal SPA. The public viewer's Content-Security-Policy, where one policy has to serve both the viewer page and the untrusted artifacts that inherit it in blob: frames: inline script, 'self' for the bundle, https sources and 'wasm-unsafe-eval' (WebAssembly libraries such as Graphviz and dotLottie, #2373) stay, plaintext http and 'unsafe-eval' do not, and each client-rendered family (HTML, JSX, markdown, SVG) is verified against a live stack by `make frontend-e2e-public-viewer`, which make verify-release runs against its acceptance stack and make verify does not, and which also opens a portal asset page served by the binary (#2206). A JSX artifact carries a second, tighter policy of its own in the document the renderer builds around it, whose img-src and connect-src name the asset-reference route on the viewer's origin with its path -- so a JSX dashboard shows a referenced logo and loads a referenced data file, while the frame still reaches no other path on the platform An HTML document exports to PDF from `.../pdf` beside its content route, printed by the platform's renderer in its own colors, one page per slide for a deck at each slide's last build step (#1983). Drawn sources (#2296, #2303): a Graphviz DOT source and a Vega-Lite spec are content types the portal draws, checked on every save (a DOT source must parse; a spec loads data only from inline values or a declared reference), and save_asset takes a JSON type's content as an object. D2, Excalidraw and Lottie (#2302, #2306, #2308): a D2 source (text/vnd.d2) is rendered to SVG by the platform with D2's Go library (internal/d2render, ?render=svg on the content routes) because D2's browser build needs eval the share policy forbids; an Excalidraw scene (application/vnd.excalidraw+json) is edited in place by anyone with edit access and saved as a new version; Lottie JSON (application/vnd.lottie+json) and an uploaded dotLottie archive play in lottie-web's light build, which runs no expressions; each is checked on save (no imports or outside URLs, no framed pages, no expressions or outside images). save_asset's content_type description names a few types and leaves the full list to the refusal. Embed hosts (#2069): portal.embeds.hosts and Admin > Settings > Embed hosts list the https hosts an HTML asset may frame and play media from, written into the share viewer's frame-src and media-src and enforced in the portal's asset frame; YouTube and Vimeo players do not run in the frame's opaque origin and draw as a card opening the video in a new tab (#2396). Binary content on every content route and the reference route is read by range with or without a Range header, with an ETag and 304 (#2395). A portal page load whose entry script or preloaded module answers 404 during a rolling update reloads once, then says the portal is being updated instead of staying blank (#2495). Links in an HTML, JSX or Markdown asset (#2501): an http:, https: or mailto: link the reader clicks opens in a new tab (the HTML/JSX frame keeps its sandbox; the framed document posts the link to the viewer page, which opens it with noopener,noreferrer only for its own frame, those three schemes and a current user activation); any other scheme opens nothing, and an in-page #anchor scrolls within the asset. - [Street Maps](https://mcp-data-platform.txn2.com/server/maps/): Self-hosted street maps for HTML assets (#2068). The portal serves MapLibre GL JS 6.4.1, the PMTiles protocol 4.5.0, the Protomaps basemap style 5.7.2 with its glyphs and sprites, TopoJSON client 3.1.0 and the us-atlas 3.0.1 boundaries under /portal/vendor/maplibre/. Admin > Settings > Maps (off by default; admin API /api/v1/admin/settings/maps with /regions, /regions/{id}/refresh, /estimate) keeps regions, presets or boxes, extracted from the newest Protomaps daily build or a mirror into the operator's bucket by one replica under an advisory lock, by range reads through the outbound client and a streamed upload with no scratch disk; queued, fetching with progress, ready or failed with the reason, a failed refresh leaving the previous build serving; sizes measured for the contiguous US (8.8 GB at zoom 14, the default, 18.8 GB at 15) and planning memory; a .pmtiles file put under maps/uploads/ is listed as ready with no fetch. /portal/maps/regions, /portal/maps/{id}.pmtiles and /portal/vendor/maplibre/ need no session and are served, with Range, only to this deployment, the sites on the Allowed sites setting (allowed_origins, https://host or https://*.domain) and reads naming no site (Origin null with no Referer, or neither header); any other site's browser read is 403 with no CORS grant, and the archive is Cache-Control private with Vary Origin, Referer (#2393); thumbnails and PDF export read them in-process by range, and a PDF of a map is printed, and its thumbnail taken (#2087), once the map has drawn, on one page the size of its screen layout. The knowledge page mcp:knowledge_page:platform-maps lists the ready regions or says the deployment has none; state and county choropleths need no basemap. - [Asset References](https://mcp-data-platform.txn2.com/server/asset-references/): How an asset names something instead of carrying its bytes: a managed resource by its mcp:// URI, or ANOTHER ASSET by its mcp:asset: reference. A save declares what its content names (`references` on save_asset and on manage_asset update/patch, capped at portal.asset_refs.max across both kinds (default 20, 1-100, advertised in references.maxItems, #2021), replacing whatever the asset referenced before -- absent leaves them alone, an empty list removes them all), the content itself writes the reference where it loads the file, and every viewing surface rewrites the DECLARED references into a serving URL as it serves: the portal asset and version reads, the public share and collection-item reads, and the admin console's reads. The rewrite is a whole-document replacement over textual content rather than an attribute rewrite, so a reference resolves in an img src, in a fetch() inside a