spotlight-mcp
v0.1.6MCP server for the Spotlight Design System
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_component
Get full details for a Spotlight component: props, usage guidelines, examples, related components, and design tokens.
| Parameter | Type | Description |
|---|---|---|
name * | string | Component name or id, e.g. "Button", "TextField". When two components share a name across categories, pass the id from search_components (e.g. "header-data-display"). |
search_components
Search Spotlight components by name, description, or category. Returns a ranked list of matches.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query, e.g. "date picker", "dropdown", "inputs" |
limit | number | Max results to return (default 10) |
get_token
Get details for a Spotlight design token: its default (light/:root) value, category, which components use it, and its variants — the dark-theme value (.spotlight_theme-dark), interactive-state values, etc.
| Parameter | Type | Description |
|---|---|---|
name * | string | Token name, e.g. "--space-md", "--color-background-positive" |
search_tokens
Search Spotlight design tokens by name, description, category, or value (light and dark). Returns purpose-named semantic tokens; pass includeRefs to also get raw palette/scale steps.
| Parameter | Type | Description |
|---|---|---|
query * | string | Semantic description, e.g. "large spacing", "positive color", "border radius" |
category | string | Substring filter on the token category: "color-background", "color-text", "color-border", "color-content", "space", "size", "border-radius", "text-size", "text-weight", "text-line-height". Layers (sem… |
includeRefs | boolean | Also return ref-layer tokens (numbered palette/scale steps like --color-system-100). Default false. |
limit | number | Max results to return (default 10) |
get_migration_guide
Get the migration guide from a MUI or deprecated Spotlight component to its current equivalent, including prop mapping.
| Parameter | Type | Description |
|---|---|---|
fromComponent * | string | Source component, e.g. "MUI/Button", "ComboBox" |
get_pattern
Get a Spotlight usage pattern: when to use which component, comparisons between alternatives, and code examples.
| Parameter | Type | Description |
|---|---|---|
id | string | Exact (or near-exact) pattern id, e.g. "form-multi-step-selection-guide". Alias for `query` — use either. |
query | string | Pattern name or topic, e.g. "overlay", "modal vs drawer", "filtering", "pagination" |
validate_usage
Check a JSX/TSX snippet against Spotlight rules and return any violations.
| Parameter | Type | Description |
|---|---|---|
code * | string | JSX or TSX code snippet to validate (max 20,000 characters) |
list_deprecated
List all deprecated and legacy Spotlight components with their replacements and removal dates.
search_utility_classes
Search Spotlight CSS utility classes (e.g. ".spotlight_body-xs") by name, category, or subcategory. Use to find the helper class for typography, layout, spacing, alignment, etc.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query, e.g. "body text", "heading", "flex", "grid column" |
category | string | Filter by category: "typography", "layout", "spacing", etc. |
limit | number | Max results to return (default 10) |
ask_spotlight
Answer a Spotlight Design System question in ONE call. The default entry point for any natural-language question about Spotlight — which component to use, when/how to use it, props, design tokens, button labeling/placement, MUI migration, etc. Searches components, usage patterns/guides, and tokens, and returns the most relevant material consolidated so no follow-up calls are needed for a typical answer.
| Parameter | Type | Description |
|---|---|---|
question * | string | A natural-language question, e.g. "how should I label and place buttons?" |
identify_pattern
Identify the correct Spotlight pattern for a use case. Call this when you need to know which pattern applies before implementing — provide a natural-language description of what you are building. Returns ranked pattern matches with confidence scores and whether a recipe is available.
| Parameter | Type | Description |
|---|---|---|
useCase * | string | Natural-language description of the UI you are building, e.g. "a table of timecards with sorting and row selection" |
components | array | Spotlight component names already in scope (optional), e.g. ["GridTable", "Chip"] |
get_recipe
Get the implementation recipe for a Spotlight pattern — concise, AI-consumable instructions for building the pattern correctly. Call this after identify_pattern confirms which pattern applies. Returns component structure, critical props, token usage, a complete implementation example, and a validation checklist.
| Parameter | Type | Description |
|---|---|---|
patternId * | string | Pattern ID from identify_pattern, e.g. "data-display-table-pattern" or "filter-chips-pattern" |