mcp-server
v0.8.0MCP 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).
| Parameter | Type | Description |
|---|---|---|
componentName * | string | The 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).
| Parameter | Type | Description |
|---|---|---|
componentName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
query * | string | Intent, token path, CSS name, or partial name |
domain | string | |
includeDeprecated | boolean | Include deprecated aliases. Defaults to false. |
layer | string | Defaults to semantic, then falls back to all if nothing matches |
limit | number | Max 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-*.
| Parameter | Type | Description |
|---|---|---|
name * | string | Token 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).
| Parameter | Type | Description |
|---|---|---|
group * | string | Group name or alias (text, background, border, spacing, color, forms, …) |
includeDeprecated | boolean | Include 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.
| Parameter | Type | Description |
|---|---|---|
topic * | string | Usage 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.
| Parameter | Type | Description |
|---|---|---|
domain | string | |
includeDeprecated | boolean | Include deprecated aliases. Defaults to false. |
layer | string | Defaults 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…