AI and MCP
Let coding agents look up components through the bundled MCP server.
@a31labs/rax ships an MCP server, rax-mcp, so coding agents look components up instead of guessing. It answers from the DESIGN.md of the installed version, runs locally over stdio and needs no network.
Tools
list_components: every component with its import line and a one-line summary.get_component: one component's full rules, import line and the link to its usage snippet.search_components: components whose name or rules mention the words you give.get_design_rules: the whole DESIGN.md, or one section such as Setup or Colour roles.
Setup
With the package in your project, npx runs the project's own copy, so the rules match the version you use. Elsewhere it fetches the latest release.
Terminal
claude mcp add rax -- npx -y -p @a31labs/rax rax-mcpOr share it with the team in .mcp.json at the project root:
.mcp.json
{
"mcpServers": {
"rax": {
"command": "npx",
"args": [
"-y",
"-p",
"@a31labs/rax",
"rax-mcp"
]
}
}
}Without MCP
Every docs page has a markdown twin, listed in llms.txt; llms-full.txt has all of it in one file. The same rules ship in the package as node_modules/@a31labs/rax/DESIGN.md.