mcp-server

v1.0.0
@leeward/mcp-server Checked 2 days ago Published 18 days ago

MCP 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.

ParameterTypeDescription
brandstringBrand. Defaults to leeward.
categorystringToken category, for example fill, text or space.
modestringlight 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.

ParameterTypeDescription
name *stringComponent 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".

ParameterTypeDescription
query *stringWhat 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".

ParameterTypeDescription
topic *stringOne 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.

ParameterTypeDescription
code *stringTSX source of a screen or component.