@orfium/ictinus-mcp
v0.1.1
Published
MCP server for the Ictinus design system - component APIs, tokens, icons, and docs for AI agents
Readme
@orfium/ictinus-mcp
MCP (Model Context Protocol) server for the Ictinus design system. Gives AI assistants (Cursor, Claude Code, etc.) accurate component metadata, tokens, icons, and docs.
Install
# project
pnpm add -D @orfium/ictinus-mcp
# or run without installing
npx @orfium/ictinus-mcpAfter publishing:
{
"mcpServers": {
"ictinus": {
"command": "npx",
"args": ["-y", "@orfium/ictinus-mcp"]
}
}
}Cursor (local monorepo)
{
"mcpServers": {
"ictinus": {
"command": "npx",
"args": ["-y", "tsx", "${workspaceFolder}/packages/mcp-server/src/index.ts"]
}
}
}Refresh metadata when APIs/docs change: pnpm --filter @orfium/ictinus-mcp generate. Then toggle the server off/on in Cursor MCP settings.
Tools
| Tool | Purpose |
| ------------------- | ----------------------------------------------------------------------- |
| search_components | Find components by name, category, or API (vanilla / legacy) |
| get_component | Overview (import, examples); optional props search for definitions |
| get_patterns | Storybook composition examples (vanilla ranked first) |
| get_tokens | Design token maps from @orfium/tokens |
| search_icons | Vanilla *Icon components and legacy <Icon name> |
| get_guides | Installation, theme, migration, vanilla-vs-legacy |
Agent tips
- Prefer
@orfium/ictinus/vanillawhen both APIs exist. - Call
get_guides({ names: "vanilla-vs-legacy getting-started-installation" })before scaffolding. - Call
get_componentfor overview, thenget_component({ props: "…" })when you need prop types; thenget_patternsbefore composing. - Vanilla components extend Box — use sprinkle layout props /
get_tokensfor spacing and color.
Development
# from repo root
pnpm install
pnpm --filter @orfium/ictinus-mcp generate # refresh src/data.json
pnpm --filter @orfium/ictinus-mcp build # generate + tsc → dist/Metadata is generated at build time from:
- Component exports + JSDoc/props in
packages/ictinus - Storybook MDX guides in
apps/storybook/docs - CSF stories for usage patterns
- Token sources in
packages/tokens - Icon unions in
Icon.types.ts
Commit regenerated src/data.json whenever upstream APIs/docs change. The running MCP
reloads data.json when its mtime changes; after code changes, restart the MCP server in Cursor.
License
Apache-2.0
