Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | The port number to use when the transport is set to 'http'. | |
| TRANSPORT | No | The transport protocol to use for the server (e.g., 'http'). Defaults to stdio if not specified. | |
| WATCH_PRESETS | No | Enables hot-reloading of presets on disk changes when set to 'true'. |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| load_preset | Activate a UI preset bundle by ID. Loads all tokens, component templates, and layout templates. Resolves inheritance (extends) chain automatically, deep-merging parent tokens. Must be called before any correction, validation, or generation tools. Args:
Returns: Preset manifest summary and token count confirmation. Error: "Preset 'x' not found" if the preset directory doesn't exist. |
| swap_template | Hot-swap the active preset without restarting the server. Useful for switching between client presets while building. Optionally preserves any runtime token overrides applied in the current session. Args:
Returns: New active preset summary. |
| list_presets | List all available presets in the presets directory. Optionally includes full manifest metadata for each preset. Args:
Returns: Array of preset IDs, or array of preset manifests if include_metadata is true. |
| diff_presets | Compare two presets and return what changed between them. Useful for understanding what a client override changes vs the base. Args:
Returns: Object with added, removed, and changed keys with before/after values. |
| get_session_state | Returns the current session state including active preset ID, load time, and any runtime token overrides. Returns:
|
| scaffold_preset | Create a new preset directory with manifest and token override scaffold, inheriting from a parent preset. Generates a ready-to-customize preset structure on disk. Args:
Returns: Path to new preset directory and files created. |
| autocorrect_component | Analyze a React component and auto-correct it against the active preset. Corrects: hardcoded colors, missing glass treatment, wrong typography tokens, wrong animation tokens, non-conforming sidebar/settings structure. Args:
Returns:
Requires active preset (run load_preset first). |
| validate_ui | Validate a React component against the active preset rules without modifying code. Returns a conformance score (0–100) and detailed issue list. Args:
Returns:
Requires active preset. |
| generate_component | Generate a React component from a preset template, with tokens resolved. Templates come from the active preset's component library. Args:
Returns:
Run list_presets with include_metadata to see available templates. Requires active preset. |
| generate_tokens | Export the active preset's design tokens in various formats for use in your project. Args:
Returns: Token file content as a string. Requires active preset. |
| apply_token_overrides | Apply runtime token overrides on top of the active preset (deep merged). Overrides are applied in memory only unless persist: true writes them to disk. Useful for per-client accent color changes without creating a full preset. Args:
Example overrides: { "colors": { "accent": { "primary": "#2563eb" } } } Returns: Confirmation of applied override paths. Requires active preset. |
| generate_color_palette | Generate a harmonious color palette from a seed hex color using color theory. Args:
Returns:
Use the result to populate apply_token_overrides or scaffold_preset. |
| suggest_style | Get a style preset and token override suggestions based on a natural-language aesthetic description. Args:
Returns matching preset and style suggestions. |
| list_style_categories | List all available design style categories with descriptions, design principles, and associated presets. Args:
Returns: Array of style categories with metadata. Use with suggest_style and load_preset to explore the design system. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |