spotlight-mcp

v0.1.6
@castandcrew/spotlight-mcp Checked 3 days ago Published 1 month ago

MCP 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.

ParameterTypeDescription
name *stringComponent 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.

ParameterTypeDescription
query *stringSearch query, e.g. "date picker", "dropdown", "inputs"
limitnumberMax 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.

ParameterTypeDescription
name *stringToken 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.

ParameterTypeDescription
query *stringSemantic description, e.g. "large spacing", "positive color", "border radius"
categorystringSubstring 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…
includeRefsbooleanAlso return ref-layer tokens (numbered palette/scale steps like --color-system-100). Default false.
limitnumberMax 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.

ParameterTypeDescription
fromComponent *stringSource component, e.g. "MUI/Button", "ComboBox"

get_pattern

Get a Spotlight usage pattern: when to use which component, comparisons between alternatives, and code examples.

ParameterTypeDescription
idstringExact (or near-exact) pattern id, e.g. "form-multi-step-selection-guide". Alias for `query` — use either.
querystringPattern 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.

ParameterTypeDescription
code *stringJSX 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.

ParameterTypeDescription
query *stringSearch query, e.g. "body text", "heading", "flex", "grid column"
categorystringFilter by category: "typography", "layout", "spacing", etc.
limitnumberMax 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.

ParameterTypeDescription
question *stringA 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.

ParameterTypeDescription
useCase *stringNatural-language description of the UI you are building, e.g. "a table of timecards with sorting and row selection"
componentsarraySpotlight 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.

ParameterTypeDescription
patternId *stringPattern ID from identify_pattern, e.g. "data-display-table-pattern" or "filter-chips-pattern"