Skip to content

AI tool integrations

helix-ui is AI-native. Every component owns a machine-readable spec.md. The token system ships as DTCG JSON. The MCP server exposes everything over a single stdio interface. The goal: an LLM that has never seen helix-ui can produce correct, token-accurate, accessible UI on the first try.

This section is the per-tool wiring guide.

Artifact Where Purpose
llms.txt served at site root Compact tree the model fetches once.
llms-full.txt served at site root Full prose version of the docs (~80 KB, fits in any context window).
components-manifest.json served at site root Every component, its props, its tokens — machine-readable.
tokens-manifest.json served at site root DTCG flat dump of every token.
DESIGN.md repo root Canonical design-system summary in a single file.
spec.md (per component) packages/core/src/components/<name>/ Per-component contract.

You can drop any of these into a model’s context and it’ll get useful answers. The MCP server (next section) is the recommended path because it stays in sync as your local helix-ui version evolves.

@helix-ui/mcp is a Model Context Protocol server that speaks JSON-RPC 2.0 over stdio. Its tools include:

Tool What it does
helix-ui.search BM25 search across every component spec.
helix-ui.validate Inspect TSX contracts, report errors and unchecked coverage.
helix-ui.fix_jsx Propose source-preserving repairs and inspect the candidate again.
helix-ui.parse_dsl Convert the helix-ui prompt DSL into JSX.
helix-ui.emit_dsl Convert JSX into compact DSL.
helix-ui.express_dna Expand a DNA shorthand into a canonical DESIGN.md.
helix-ui.parse_design Parse a DESIGN.md into JSON.
helix-ui.list_presets List the built-in DNA presets.
helix-ui.derive_dna_from_image Infer the closest helix-ui DNA from a screenshot.

Plus six resource URIs (helix-ui://components-manifest.json, helix-ui://tokens-manifest.json, helix-ui://components.md, helix-ui://llms-full.txt, helix-ui://DESIGN.md, helix-ui://DESIGN_MD_FORMAT.md) for static lookups.

Validation reports valid, invalid, or incomplete. Treat unchecked and notChecked as outstanding work: dynamic values, full TypeScript semantics and rendered behavior are not certified by a static report. profile="admin" opts into literal inline token checks. Repair candidates include source edits and whether component substitutions need review; they never write source files.

Why this beats “just give the LLM the docs URL”

Section titled “Why this beats “just give the LLM the docs URL””

Three problems with the docs-URL approach:

  1. Pull, not query. The model has to fetch all the docs and parse them, every time, even when it only needs Button’s props. Tokens spent on noise.
  2. No interactive validation. The model generates JSX; only at runtime do you find out <Button tone="purple"> is invalid.
  3. Drift. Docs URLs go to the latest version; the model is working against the version you have installed.

The MCP server fixes all three: queryable, validating, version-locked to your local install.

You should be able to:

  1. Mention “helix-ui” in a fresh Claude/Cursor/Copilot session.
  2. The tool picks up the local MCP server (or the llms.txt you serve).
  3. It writes JSX using the right components, the right tokens, the right a11y attributes — all on the first generation.
  4. If it gets a component name wrong, helix-ui.validate tells it which names exist and the model self-corrects.

If your tool isn’t doing that, open an issue and tell us what you tried. This is a contract; helix-ui breaks if it breaks.