psi-mcp
v0.40.0MCP 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.
search Search the Psi design system
Keyword search over Psi components, icons (by name or by what they show), hooks, composition patterns, semantic tokens, and guidance topics. Returns compact briefs with ids for the get tool. Empty query returns an overview: topics, every component by name, the icon count, and the patterns.
| Parameter | Type | Description |
|---|---|---|
query * | string | Keywords, e.g. 'button variants' or 'bg token' |
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.
| Parameter | Type | Description |
|---|---|---|
id * | string | An 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.
| Parameter | Type | Description |
|---|---|---|
chroma | string | How saturated the accent is. From a colour, the nearest word is picked for you. |
color | string | A brand colour: a hex such as #3b82f6, or an oklch() string. Pass this or hue. |
hue | number | OKLCH hue, 0 to 359. Pass this or color. |
name | string | kebab-case theme name. Default brand-<hue>. |
radius | number | Control 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.
| Parameter | Type | Description |
|---|---|---|
code * | string | TSX or JSX: a module, or one or more elements. At most 20000 characters. |