mcp-server

v0.8.0
@maltjoy/mcp-server Checked 2 days ago Published 1 day ago

MCP server for Joy Design System - exposes Vue3 components information

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

joy_list_components

Lists all available Joy Vue3 components from the @maltjoy/core-vue library as a flat object keyed by category name. Each entry contains components with their name and description.

joy_get_component_info

Retrieves detailed information about a specific Joy Vue3 component including description, category, props, events, slots, and exposed members. Provide the exact component name (e.g., VJoyButton).

ParameterTypeDescription
componentName *stringThe exact name of the component (e.g., VJoyButton, VJoyAvatar)

joy_get_component_types

Retrieves the TypeScript types definition file associated with a specific Joy Vue3 component. These types define the allowed values for props (variants, sizes, etc.). Provide the exact component name (e.g., VJoyButton).

ParameterTypeDescription
componentName *stringThe exact name of the component (e.g., VJoyButton, VJoyAvatar)

joy_search_tokens

Find Joy design tokens by intent or name (e.g. "page title", "disabled fill", "color.text.heading"). Prefer this over listing all tokens. Semantic tokens rank first. Use joy_get_token for full usage docs on one result. typography.* composites are not searchable CSS tokens; use joy_list_css_classes for .joy-font-* presets.

ParameterTypeDescription
query *stringIntent, token path, CSS name, or partial name
domainstring
includeDeprecatedbooleanInclude deprecated aliases. Defaults to false.
layerstringDefaults to semantic, then falls back to all if nothing matches
limitnumberMax hits (default 8, max 25)

joy_get_token

Get one Joy design token by path (color.text.heading), CSS name (--joy-color-text-heading), or font preset (heading-page). Returns value, layer, usage docs, color utility classes (.joy-* and .joy-bg*), and getFontBySize SCSS hints when applicable. Composite typography JSON paths (typography.*) are build-only and not returned; consume them via getFontBySize / .joy-font-*.

ParameterTypeDescription
name *stringToken path or CSS custom property

joy_get_token_group

Get all Joy tokens in a group. Use aliases like text, background, border, spacing, color, forms, font. The typography alias maps to font.* CSS tokens, not typography.json composites. Semantic groups are returned by default so you can compare sibling roles (heading vs label).

ParameterTypeDescription
group *stringGroup name or alias (text, background, border, spacing, color, forms, …)
includeDeprecatedbooleanInclude deprecated aliases. Defaults to false.

joy_get_token_usage

Get usage rules for a Joy token topic (text, background, border, color, spacing, typography). Returns a decision tree and the relevant semantic tokens with do/don't. The typography topic includes getFontBySize SCSS mixin guidance (@maltjoy/themes) and role presets (heading-page, heading-overlay). Call this when choosing between similar color roles or typography presets.

ParameterTypeDescription
topic *stringUsage topic

joy_list_design_tokens

List Joy design tokens as compact summaries. Defaults to the semantic layer only. Pass layer=primitive or a domain to narrow. Prefer joy_search_tokens when you know the intent. typography.json composites ($type: typography) are build-only and are not listed: they compile to $FONTS_MAP / getFontBySize / .joy-font-*, not --joy-typography-* CSS variables. domain=typography returns semantic text.size.* tokens (and font.* / lineHeight.* when layer=primitive). Use joy_list_css_classes for type presets.

ParameterTypeDescription
domainstring
includeDeprecatedbooleanInclude deprecated aliases. Defaults to false.
layerstringDefaults to semantic

joy_list_css_classes

Lists Joy CSS utility classes (colors, spacing, typography, elevation, radius, misc) and SCSS typography mixin metadata (getFontBySize from @maltjoy/themes). colors lists the classes emitted in _tokens-classes.scss: primitive shades named by hue (.joy-color-red-50, .joy-bgcolor-teal-10, .joy-color-neutral-40), text roles (.joy-color-text-support), and background roles (.joy-bgcolor-background-default). deprecatedColors maps each deprecated alias (.joy-color-primary-*, secondary, tertiary, quaternary, brand-primary, brand-secondary, ai-primary) to its replacement. Never use a deprecated class i…