Skip to content
Beta

These docs are in progress. Some pages are incomplete or may change. Report a problem

Developer docs

MCP server

Overview of the DTPR MCP server — endpoint, tools, resources, prompts, envelope semantics.

Developer docs menu

The DTPR MCP server exposes the DTPR schema, datachain validation, datachain rendering, icon URL resolution, and the DTPR Agent Skills as Model Context Protocol tools, resources, and prompts. It is hosted at:

POST https://api.dtpr.io/mcp

It implements a read-only subset of the MCP Streamable HTTP transport (spec version 2025-06-18) plus MCP Apps (SEP-1865) for the render flow.

In this section

  • Connecting — endpoint, mcp-session-id header, wire format, batching.
  • Envelope — ok / err payloads, _meta.content_hash, soft-failure semantics.
  • Resources — the ui://dtpr/datachain/view.html MCP App resource.
  • Tools — the 12-tool registry, one page each.
  • Prompts — the seven DTPR Agent Skills plus their reference documents, served as MCP prompts so any MCP-aware harness can load them without a Claude-specific install.

Tools at a glance

ToolPurpose
list_schema_versionsDiscover available schema releases.
get_schemaManifest for a single schema version.
list_categoriesCategories within a schema version.
list_elementsPaginated element list with filters.
get_elementSingle element with icon variants + symbol.
get_elementsBulk fetch, up to 100 element ids.
validate_datachainValidate a datachain instance; soft-failure.
render_datachainRender a datachain + hand off to an iframe via resources/read.
get_icon_urlResolve a composed-icon SVG URL.
resolve_datachainBundle a datachain with the categories and elements it uses.
validate_resolvedValidate a resolved datachain against its schema version.
get_translation_statusPer-locale review status and reviewer flags.

All tools share the same envelope shape.