components-mcp

v0.11.2
@punica/components-mcp Checked 5 hours ago Published 2 days ago

MCP server for @punica/components: find elements, read their API and examples, validate markup.

An MCP server that lets an AI assistant use @punica/components correctly: find an element, read its exact API and examples, and check the markup it wrote. Version 2.0 of the library is newer than most models' training data, so without it a model guesses tags, attributes and events. With it, the model looks them up and validates its answer. Resources: punica://guide and punica://component/.

Summary extracted from the README.

@punica/components-mcp

An MCP server that lets an AI assistant use @punica/components correctly: find an element, read its exact API and examples, and check the markup it wrote.

Version 2.0 of the library is newer than most models' training data, so without it a model guesses tags, attributes and events. With it, the model looks them up and validates its answer.

Tools

Tool What it does
search_components Finds elements by what they are for: "date range", "side navigation", "confirm dialog"
get_component One or more elements' whole API: attributes and their values, properties, methods, events, slots, parts, CSS properties, states
get_examples An element's documentation page as Markdown, with working HTML examples (fetched from the docs site)
validate_markup Checks HTML, JSX, Vue, script or CSS: unknown tags and 1.x names, attributes, values, slots, events, icon names, var(--punica-*) names that are not tokens; each problem with a fix
get_tokens The --punica-* design tokens with their light and dark values, by group; query narrows them (space, color, radius)
get_guide The rules every element follows, or a guide page (theme, forms, frameworks, migration, accessibility, …)

Resources: punica://guide and punica://component/<tag>.

The server answers for the @punica/components installed in the project it is started in; without one, for the version it was built with.

Set up

Claude Code

claude mcp add punica -- npx -y @punica/components-mcp

Cursor (.cursor/mcp.json), VS Code (.vscode/mcp.json, key servers), Claude Desktop and others:

{
  "mcpServers": {
    "punica": { "command": "npx", "args": ["-y", "@punica/components-mcp"] }
  }
}

Without MCP

The library itself ships the same knowledge: npx punica-components search|info|validate, an agent skill in node_modules/@punica/components/skills/punica-components/, and dist/llms.txt / dist/llms-full.txt.