Elementum Design System MCP
Component schemas, design tokens, snippet generation, and WCAG lint for @wcomp/elementum.
¿Debería usar esto?
Calidad y seguridad
Hallazgos (2)
- LOWen scaffold_component
- LOWen validate_accessibility
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"elementum": {
"command": "npx",
"args": [
"@wcomp/elementum"
]
}
}
}Paquetes ejecutables
0.8.0stdioPuntos de conexión remotos
https://elementum-sage.vercel.app/api/mcpstreamable-httphttps://elementum-sage.vercel.app/mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (10)
🟢list_components
Lists all available Web Components in the Elementum Design System.
Esquema de entrada
{
"type": "object",
"properties": {}
}🟢get_component_doc(tag, section)
Retrieves structured component API metadata (separated closed variants, boolean states, props, composition/JS constraints, events, slots, CSS parts, and standalone usage examples) for an Elementum component.
Esquema de entrada
{
"type": "object",
"properties": {
"tag": {
"type": "string",
"description": "The custom element tag name, e.g. \"el-button\" or \"el-badge\""
},
"section": {
"type": "string",
"enum": [
"all",
"schema",
"examples"
],
"description": "Optional filter: 'schema' returns variants, states, props, constraints, events, slots & parts without usage examples; 'examples' returns only usage examples; 'all' (default) returns both as separate sections."
}
},
"required": [
"tag"
]
}🟢list_tokens(category)
Lists Figma design tokens (colors, spacing, radii) for the design system.
Esquema de entrada
{
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"color",
"spacing",
"radius",
"all"
],
"description": "Token category to filter by."
}
}
}🟢generate_snippet(tag, variant, size, label, disabled)
Generates valid Elementum Web Component HTML markup matching Figma variants.
Esquema de entrada
{
"type": "object",
"properties": {
"tag": {
"type": "string",
"description": "Component tag, e.g. \"el-button\""
},
"variant": {
"type": "string",
"description": "Visual variant, e.g. \"primary\", \"secondary\", \"danger\""
},
"size": {
"type": "string",
"description": "Size variant, e.g. \"sm\", \"md\", \"lg\""
},
"label": {
"type": "string",
"description": "Content text for the default slot"
},
"disabled": {
"type": "boolean",
"description": "Whether the element is disabled"
}
},
"required": [
"tag"
]
}🟢scaffold_component(tag, name, description, formAssociated, attributes)
Scaffolds standard boilerplate JavaScript code for a new Elementum Web Component adhering to design system standards.
Esquema de entrada
{
"type": "object",
"properties": {
"tag": {
"type": "string",
"description": "Component tag, e.g. \"el-card\""
},
"name": {
"type": "string",
"description": "Component class name, e.g. \"ElCard\""
},
"description": {
"type": "string",
"description": "Component description"
},
"formAssociated": {
"type": "boolean",
"description": "Whether the component associates with forms"
},
"attributes": {
"type": "array",
"items": {
"type": "string"
},
"description": "Observed attributes, e.g. [\"variant\", \"disabled\"]"
}
},
"required": [
"tag"
]
}🟢lint_accessibility(markup)
Static HTML accessibility linter for common WCAG 2.2 labeling and attribute issues (not a substitute for real-browser axe-core auditing).
Esquema de entrada
{
"type": "object",
"properties": {
"markup": {
"type": "string",
"description": "HTML markup snippet to inspect"
}
},
"required": [
"markup"
]
}🟢validate_accessibility(markup)
Alias for lint_accessibility: static HTML accessibility linter for common WCAG 2.2 labeling issues.
Esquema de entrada
{
"type": "object",
"properties": {
"markup": {
"type": "string",
"description": "HTML markup snippet to inspect"
}
},
"required": [
"markup"
]
}🟢suggest_component(query, limit)
Recommends Elementum Web Components that best match a UI requirement or natural-language query.
Esquema de entrada
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "UI requirement, e.g. \"date picker\", \"code diff\", \"command palette\""
},
"limit": {
"type": "number",
"description": "Maximum results to return (default 5)"
}
},
"required": [
"query"
]
}🟢validate_component_usage(markup)
Validates <el-*> tags and attributes in an HTML snippet against the live Custom Elements Manifest to catch hallucinated tags or props.
Esquema de entrada
{
"type": "object",
"properties": {
"markup": {
"type": "string",
"description": "HTML snippet containing <el-*> components"
}
},
"required": [
"markup"
]
}🟢get_component_maturity
Returns machine-readable package version, component count, stability tier, and browser/testing verification metadata.
Esquema de entrada
{
"type": "object",
"properties": {}
}Comunidad
Evidencia