MCP
Zest ships its documentation for AI tools, built from the same sources as this site, so an agent writes Zest code from the facts instead of guessing them.
Markdown for AI toolsThe MCP server #
@limerdev/zest-mcp lets a tool that speaks MCP ask about Zest instead of reading it. It answers from the @limerdev/zest installed in the app, so what it says matches the version in use. Install it beside Zest, at the same version (the two are released together):
pnpm add -D @limerdev/zest-mcp Then tell the AI tool to start it from the app's folder. For Claude Code, in the app's .mcp.json:
{
"mcpServers": {
"zest": { "command": "pnpm", "args": ["exec", "zest-mcp"] }
}
} Other tools take the same command (pnpm exec zest-mcp, on stdio) in their own settings. Its tools:
| Tool | Arguments | Answers with |
|---|---|---|
list_components |
category? |
Every component in one line, grouped by category |
get_component |
name, parts?, examples? |
One component: when to use it, its parts, their props, and examples |
get_theme |
The theme's variables, the shipped themes, the utilities, how to write a theme | |
search |
query |
The components that fit a need ("pick a date", "confirm delete") |
get_component gives the whole component by default. For one with many parts (the menus, the date pickers), parts: ["Item"] lists the props of those parts only, and examples: false leaves out the longer examples. The rules for using Zest go to the tool as the server's instructions when it connects. On start, the server prints to stderr which Zest it answers for and where it read it from.
llms.txt #
The same documentation as text files, in the package and on this site:
| File | In the package | On this site |
|---|---|---|
| The index: the rules and one line per component | dist/llms.txt |
/llms.txt |
| One component: when to use it, its Bits UI mapping, every part's props, its examples | dist/llms/<component>.txt |
/llms/dialog.txt |
| The theme's variables and utilities, and how to write a theme | dist/llms/theme.txt |
/llms/theme.txt |
| All of it | dist/llms-full.txt |
/llms-full.txt |
Point a tool at the package's copy (node_modules/@limerdev/zest/dist/llms.txt): it matches the installed version, and this site documents the latest release. The same documentation as data is @limerdev/zest/catalog.json (/catalog.json); the props alone are @limerdev/zest/api.json.
Every page of these docs is also Markdown: add .md to its address (/docs/themes.md).
Tell the agent #
An app's AGENTS.md (or CLAUDE.md) can say it once:
This app's UI is Zest (`@limerdev/zest`). Use its components and theme utilities, never
`bits-ui` or hard-coded colours. Look components up with the zest MCP server, or read
node_modules/@limerdev/zest/dist/llms.txt.