psi-mcp

v0.40.0
@handamade/psi-mcp Checked 1 day ago Published 2 days ago

MCP server and agent-context generator for the Psi (Ψ) design system

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

get Get Psi docs by id

The docs for one id from search, as markdown: a component's whole docs page (examples, props, keyboard, theming, rules — the same text as psi.kurkin.de/docs/components/<page>.md), a token page ('tokens:color'), a guide ('guide:theming'), one token ('token:bgPrimary': formula and value in every theme), a pattern ('pattern:destructive-confirm': recipe and preset), a topic ('topic:variants'), an icon ('icon:IconTrash'; 'icons:all' lists all of them), or a hook ('hook:useToast': the page that tables its API). A bare name also works.

ParameterTypeDescription
id *stringAn id from search results, or a bare name

theme Make a Psi theme from a colour

Derive a light and a dark Psi theme from one brand colour or a hue, solved so every text and control pair meets WCAG AA. Returns the CSS to save, how to import it, and the contrast of every gated pair. It never calls a model: to start from a brief such as 'calm fintech', choose hue, chroma and radius yourself.

ParameterTypeDescription
chromastringHow saturated the accent is. From a colour, the nearest word is picked for you.
colorstringA brand colour: a hex such as #3b82f6, or an oklch() string. Pass this or hue.
huenumberOKLCH hue, 0 to 359. Pass this or color.
namestringkebab-case theme name. Default brand-<hue>.
radiusnumberControl corner radius in px. Default 8.

check Check JSX against the Psi API

Report where a JSX snippet uses Psi wrongly: a name Psi does not export, an unknown prop, a value outside a prop's allowed values (size="md", variant="primary"), a missing required prop, a child a slot does not accept, or a component without the accessible name it needs. Icons are checked too. Reports only; never rewrites the code. Spreads and computed values are listed as skipped, not guessed.

ParameterTypeDescription
code *stringTSX or JSX: a module, or one or more elements. At most 20000 characters.