psi-mcp
v0.40.0MCP server and agent-context generator for the Psi (Ψ) design system
MCP server and agent-context generator for the Psi (Ψ) design system. Documents the system — the 60 React 19 components, 24 composition patterns (D47) that recipe them together with gap-annotated compose trees, every semantic token with its OKLCH derivation formula resolved across all four themes, and the usage guidance — through four tools that return text and change nothing: none writes your files or calls a model.
Summary extracted from the README.
@handamade/psi-mcp
MCP server and agent-context generator for the Psi (Ψ) design system. Documents the system — the 60 React 19 components, 24 composition patterns (D47) that recipe them together with gap-annotated compose trees, every semantic token with its OKLCH derivation formula resolved across all four themes, and the usage guidance — through four tools that return text and change nothing: none writes your files or calls a model.
Connect
- Hosted (no install): Streamable HTTP at
https://psi.kurkin.de/mcp - Local (stdio):
npx @handamade/psi-mcp
Tools: search(query) → compact briefs with ids · get(id) → the docs page as markdown (component:Button, tokens:color, guide:theming, token:bgPrimary, topic:variants, icon:IconTrash, icons:all, hook:useToast, or a bare name) · theme({ color }) → an AA-solved light and dark theme as CSS · check({ code }) → where JSX uses Psi wrongly.
Generate agent context (D44)
npx @handamade/psi-mcp init # writes/updates AGENTS.md
npx @handamade/psi-mcp init --claude # also CLAUDE.md
Content is generated from the same baked index as the MCP tools, inside <!-- psi:agents:start/end --> markers — re-run after upgrades; edits outside the markers are preserved.
How it stays honest
The index is baked at publish time from the sibling packages' generated artifacts (manifest.json, guidance.json, resolved/<theme>.json, per-component docs) and versioned in lockstep with them — the server never answers from prose.