mcp-server

v1.24.0
@cobwds/mcp-server Checked 2 days ago Published 14 days ago

MCP server for the City of Boston Web Design System.

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

find_components

Search for COBWDS components by name or description. Omit query to list all components.

ParameterTypeDescription
querystringSearch query to match against component names and descriptions. Omit to list all components.

get_component

Get full documentation for a specific COBWDS component including properties, events, slots, and CSS custom properties. Set framework to 'react' or 'angular' to get that framework's import line, event-prop naming, and forms guidance alongside HTML/React/Angular code examples.

ParameterTypeDescription
tagName *stringThe tag name of the component (e.g., 'cob-button')
frameworkstringWhich framework to optimize the response for. 'html' (default) returns plain custom-element usage. 'react' and 'angular' add framework-specific usage notes (import line, event-prop naming, forms bindi…
includeExamplesbooleanInclude code examples from component JSDoc. Set to true when you need usage patterns. Each example carries html, react, and angular snippets.

find_tokens

Search or browse COBWDS design tokens. Omit query to list all. Returns CSS variable names for use with var().

ParameterTypeDescription
categorystringFilter by category
includestring'recommended' (default) excludes color primitives; 'primitive' returns only primitives; 'all' returns everything
querystringFree-text search across token names and descriptions. Omit to list all.

get_token

Get full details for a specific design token including resolved values and alternatives.

ParameterTypeDescription
token *stringCSS variable name (e.g., "--cob-color-text" or "color-text")

get_token_graph

Get the token dependency graph showing which tokens reference which and which are used by which

ParameterTypeDescription
categorystringFilter to a specific category
filterstringFilter the graph to specific token types
limitintegerMaximum number of tokens to return (default: 20)

validate_component_api

Validate that the provided attributes/properties are valid for a given COBWDS component

ParameterTypeDescription
attributes *objectObject of attribute names and values to validate
tagName *stringThe tag name of the component (e.g., 'cob-button')

get_utility_classes

Get COBWDS utility class reference for layout, spacing, and styling

ParameterTypeDescription
categorystringCategory of utility classes to retrieve. Defaults to 'all'.

get_guide

Get COBWDS guides for installation, forms, styles, fonts, page structure, themes, or framework setup

ParameterTypeDescription
topic *stringThe guide topic to retrieve
frameworkstringWhen provided, returns framework-specific setup guide instead of the topic guide. Use with topic 'installation' to get framework install instructions.