mcp-server
v1.0.0MCP server that gives AI agents the Leeward Design System: tokens, components, guidelines and a UI validator.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_tokens
List Leeward design tokens (semantic CSS variables) for a brand and mode, optionally filtered by category. Use these instead of raw values. Colors: fill, text, icon, border.
| Parameter | Type | Description |
|---|---|---|
brand | string | Brand. Defaults to leeward. |
category | string | Token category, for example fill, text or space. |
mode | string | light or dark. Defaults to light. |
get_component
Get one Leeward component: import, props with types, variants, do and don't rules, accessibility notes and a correct example.
| Parameter | Type | Description |
|---|---|---|
name * | string | Component name, for example Button or AmountDisplay. |
search_components
Find Leeward components for a need, for example "show an amount", "one-time code" or "confirm before deleting".
| Parameter | Type | Description |
|---|---|---|
query * | string | What you want to build. |
get_guidelines
Get Leeward design rules for a topic. Topics: workflow, principles, tokens, color, typography, amounts, forms, errors, layout, copy, accessibility, motion, dark-mode, or "all".
| Parameter | Type | Description |
|---|---|---|
topic * | string | One of: workflow, principles, tokens, color, typography, amounts, forms, errors, layout, copy, accessibility, motion, dark-mode, all. |
validate_ui
Check generated React/TSX for raw colors, unknown or primitive tokens, raw spacing, unknown components, missing labels, red amounts, hand-formatted money and em dashes. Returns issues with fixes.
| Parameter | Type | Description |
|---|---|---|
code * | string | TSX source of a screen or component. |