Elementum Design System MCP
Component schemas, design tokens, snippet generation, and WCAG lint for @wcomp/elementum.
사용해야 할까요
품질 및 안전성
발견 사항 (2)
- LOWscaffold_component에서
- LOWvalidate_accessibility에서
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"elementum": {
"command": "npx",
"args": [
"@wcomp/elementum"
]
}
}
}실행 가능한 패키지
0.8.0stdio원격 엔드포인트
https://elementum-sage.vercel.app/api/mcpstreamable-httphttps://elementum-sage.vercel.app/mcpstreamable-http할 수 있는 일
도구 목록
도구 (10)
🟢list_components
Lists all available Web Components in the Elementum Design System.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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).
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"type": "object",
"properties": {}
}커뮤니티
증거