mcp

v0.3.1
@rdloom/mcp Checked 2 days ago Published 1 month ago

MCP server that gives AI coding agents the rdloom specs: props, usage rules, accessibility requirements, tokens and source.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_components List components

List the components, optionally ranked by a search like "pick a date range" or "table".

ParameterTypeDescription
querystringWords describing what the UI needs to do

get_component Get component

Props, variants, install and import lines, when to use it and when not to, anti-patterns, and accessibility requirements for one component.

ParameterTypeDescription
name *stringComponent name or id, e.g. "DateRangePicker" or "date-range-picker"

get_example Get example

Working, accessible example code for a component: one example by name, or all of them. Every example is tested with axe.

ParameterTypeDescription
name *stringComponent name or id
examplestringExample name from get_component, e.g. "with-presets"; omit for all

get_component_source Get component source

The source files `add` copies into the project, as shipped. Use it to explain or adapt a component, or pass "utils" or "tokens" for the shared files.

ParameterTypeDescription
name *stringComponent name or id, or "utils" / "tokens"
filestringOne file path from the component, e.g. "button.tsx"; omit for all

get_tokens Get design tokens

Semantic design tokens with their CSS variables and light and dark values.

ParameterTypeDescription
prefixstringFilter by path prefix, e.g. "color.action" or "radius"

validate_props Validate props

Check a component's props against its spec: required props, allowed enum values and types.

ParameterTypeDescription
name *stringComponent name or id
props *objectProps as JSON, e.g. {"variant": "primary", "size": "md"}; use any placeholder for callbacks and nodes

get_setup Get setup instructions

How to add the library to a project: init, tokens CSS, Tailwind, adding and upgrading components.