AI agents (MCP)
Give Claude Code, Cursor and other agents the rules, so they write code that works the first time.
The @rdloom/mcp server serves the specs: props, when to use each component and when not to, anti-patterns, accessibility requirements, tokens and tested examples. It's read-only and needs no network access.
Set up
npm install -D @rdloom/mcpClaude Code:
claude mcp add rdloom -- npx rdloom-mcpOther clients, in their MCP config (for example .mcp.json):
{
"mcpServers": {
"rdloom": { "command": "npx", "args": ["rdloom-mcp"] }
}
}Tools
list_components: all components, or ranked by a search like "pick a date range"get_component: install and import lines, props, usage rules, accessibility, the first exampleget_example: working example code, each one tested with axeget_component_source: the filesaddcopiesget_tokens: CSS variables with light and dark valuesvalidate_props: checks props against the spec before the agent writes themget_setup: how to set up a project