spor-mcp-server

v2.2.14
@vygruppen/spor-mcp-server Checked 2 days ago Published 7 days ago

MCP server for Spor Design System

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

list_components

List all documented Spor components with their slugs and a short description. Use this as the starting point to discover what components are available.

get_component_docs

Get full documentation for a specific component: introduction, usage guidelines, and all code examples. Pass the component slug obtained from list_components.

ParameterTypeDescription
slug *stringComponent slug, e.g. 'autocomplete-new-combobox'. Obtain slugs from list_components.

get_component_examples

Get only the code examples (TSX snippets) for a component. Useful when you want copy-paste-ready code without the surrounding prose.

ParameterTypeDescription
slug *stringComponent slug, e.g. 'autocomplete-new-combobox'.

get_component_guidelines

Get the design / usage guidelines for a component — when to use it, when not to, and UX best practices.

ParameterTypeDescription
slug *stringComponent slug, e.g. 'autocomplete-new-combobox'.

search_components

Search for components by keyword across titles and documentation content. Returns matching components with summaries.

ParameterTypeDescription
query *stringSearch term, e.g. 'dropdown', 'form', 'navigation'.

get_component_props

Get the props (API reference) for all sub-components of a given component. Returns a markdown table per sub-component with prop name, type, whether it's required, and description. Pass the article slug from list_components, e.g. 'autocomplete-new-combobox'.

ParameterTypeDescription
slug *stringArticle slug, e.g. 'autocomplete-new-combobox'. Obtain slugs from list_components.

get_spor_tokens

Get Spor design tokens for a specific theme and category. Returns flattened color tokens with their alias names, palette keys, and hex values, plus size, font, depth, and transition tokens.

ParameterTypeDescription
theme *stringTheme to fetch tokens for.
categorystringToken category to fetch. Omit to get all. Use 'color' for semantic color tokens, 'palette' for raw color values.
colorKeystringSpecific color group within the theme, e.g. 'brand', 'alert', 'badge'. Only used when category is 'color'.
colorModestringResolve _light or _dark values.

list_spor_react_exports

List all exported names from the @vygruppen/spor-react package. Useful to check what components, hooks, and utilities are available to import.