musea-mcp-server

v0.834.0
@vizejs/musea-mcp-server Checked 1 day ago Published 1 day ago

MCP server for building Vue.js design systems - component analysis, documentation, variant generation, and design tokens

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

analyze_component

Statically analyze a Vue SFC to extract its props and emits. Accepts a Vue component path directly, or an art-file reference that resolves to the linked component source.

ParameterTypeDescription
componentstringResolve an art file by its component reference or component basename, then analyze it
pathstringPath to the .vue component file or .art.vue file (relative to project root)
querystringFuzzy-search an art file, then analyze the linked component source
refstringGeneric art-file reference: path, title, component name, or search text
titlestringResolve an art file by its display title, then analyze its component source

get_palette

Derive an interactive props palette (control types, defaults, ranges, options) for a component described by an Art file. Falls back to SFC analysis when native palette inference is sparse.

ParameterTypeDescription
componentstringResolve an art file by component reference or component basename
pathstringPath to the .art.vue file (relative to project root)
querystringFuzzy-search an art file before generating the palette
refstringGeneric art-file reference: path, title, component name, or search text
titlestringResolve an art file by title instead of path

list_components

List components registered in the design system. Returns titles, categories, tags, status, variant names, and related resource URIs.

ParameterTypeDescription
categorystringFilter by category
componentstringFilter by component reference or component basename
includeVariantsbooleanInclude per-variant metadata in the result (default: false)
limitnumberMaximum number of components to return (default: all)
sortBystringSort order for the result list (default: title)
statusstringFilter by status badge
tagstringFilter by tag

get_component

Get full details of a design-system component: metadata, variants, source-component analysis, palette data, documentation, and related resource URIs.

ParameterTypeDescription
componentstringResolve an art file by component reference or component basename
includeAnalysisbooleanInclude resolved component props/emits analysis (default: true)
includeDocumentationbooleanInclude generated Markdown docs inline (default: false)
includePalettebooleanInclude inferred palette data (default: true)
pathstringPath to the .art.vue file (relative to project root)
querystringFuzzy-search an art file before loading details
refstringGeneric art-file reference: path, title, component name, or search text
titlestringResolve an art file by display title instead of path

get_variant

Retrieve a single variant (template and metadata) from a component, resolving the component by path, title, component name, or fuzzy query.

ParameterTypeDescription
variant *stringVariant name
componentstringResolve an art file by component reference or component basename
includeAnalysisbooleanInclude resolved component props/emits analysis (default: false)
pathstringPath to the .art.vue file
querystringFuzzy-search an art file before looking up the variant
refstringGeneric art-file reference: path, title, component name, or search text
titlestringResolve an art file by title

search_components

Ranked full-text search over component titles, descriptions, categories, tags, component names, and variant names.

ParameterTypeDescription
query *stringSearch query
categorystringRestrict matches to one category
componentstringRestrict matches to a component reference/basename before searching
limitnumberMaximum number of results to return (default: 10)
statusstringRestrict matches to one status
tagstringRestrict matches to one tag

recommend_components

Intent-oriented component recommendation. Useful when the user describes a task or UX goal rather than knowing exact component names.

ParameterTypeDescription
task *stringIntent or UI task to solve
categorystringOptional category filter
componentstringOptional component reference/basename filter
limitnumberMaximum number of recommendations to return (default: 5)
statusstringOptional status filter
tagstringOptional tag filter

generate_variants

Analyze a Vue component's props and auto-generate an .art.vue file containing appropriate variant combinations (default, boolean toggles, enum values, etc.).

ParameterTypeDescription
componentPath *stringPath to the .vue component file (relative to project root)
includeBooleanTogglesbooleanGenerate variants that toggle each boolean prop (default: true)
includeDefaultbooleanInclude a default variant (default: true)
includeEnumVariantsbooleanGenerate one variant per enum/union value (default: true)
maxVariantsnumberMaximum number of variants to generate (default: 20)

generate_csf

Convert an .art.vue file into Storybook CSF 3.0 code for integration with existing Storybook setups.

ParameterTypeDescription
componentstringResolve an art file by component reference or component basename
pathstringPath to the .art.vue file
querystringFuzzy-search an art file before converting to CSF
refstringGeneric art-file reference: path, title, component name, or search text
titlestringResolve an art file by title

generate_docs

Generate Markdown documentation for a design-system component from its .art.vue definition.

ParameterTypeDescription
componentstringResolve an art file by component reference or component basename
includeSourcebooleanEmbed source code in the output (default: false)
includeTemplatesbooleanEmbed variant templates in the output (default: false)
pathstringPath to the .art.vue file (relative to project root)
querystringFuzzy-search an art file before generating docs
refstringGeneric art-file reference: path, title, component name, or search text
titlestringResolve an art file by title

generate_catalog

Produce a single Markdown catalog covering every component in the design system, grouped by category.

ParameterTypeDescription
includeSourcebooleanEmbed source code in the catalog (default: false)
includeTemplatesbooleanEmbed variant templates in the catalog (default: false)

get_tokens

Read design tokens (colors, spacing, typography, etc.) from a Style Dictionary-compatible JSON file or directory. Auto-detects common paths if not specified.

ParameterTypeDescription
formatstringOutput format (default: json)
tokensPathstringPath to tokens JSON file or directory (relative to project root). Auto-detects tokens/, design-tokens/, or style-dictionary/ if omitted.

search_tokens

Search flattened design tokens by token name, category path, value, or description. Much more practical than loading the full token tree for large systems.

ParameterTypeDescription
query *stringSearch query
limitnumberMaximum number of matches to return (default: 20)
tokensPathstringPath to tokens JSON file or directory (relative to project root). Auto-detects common locations if omitted.
typestringOptional token type filter, e.g. color, dimension, typography