mcp-server
v1.24.0MCP 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.
| Parameter | Type | Description |
|---|---|---|
query | string | Search 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.
| Parameter | Type | Description |
|---|---|---|
tagName * | string | The tag name of the component (e.g., 'cob-button') |
framework | string | Which 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… |
includeExamples | boolean | Include 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().
| Parameter | Type | Description |
|---|---|---|
category | string | Filter by category |
include | string | 'recommended' (default) excludes color primitives; 'primitive' returns only primitives; 'all' returns everything |
query | string | Free-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.
| Parameter | Type | Description |
|---|---|---|
token * | string | CSS 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
| Parameter | Type | Description |
|---|---|---|
category | string | Filter to a specific category |
filter | string | Filter the graph to specific token types |
limit | integer | Maximum number of tokens to return (default: 20) |
validate_component_api
Validate that the provided attributes/properties are valid for a given COBWDS component
| Parameter | Type | Description |
|---|---|---|
attributes * | object | Object of attribute names and values to validate |
tagName * | string | The tag name of the component (e.g., 'cob-button') |
get_utility_classes
Get COBWDS utility class reference for layout, spacing, and styling
| Parameter | Type | Description |
|---|---|---|
category | string | Category of utility classes to retrieve. Defaults to 'all'. |
get_guide
Get COBWDS guides for installation, forms, styles, fonts, page structure, themes, or framework setup
| Parameter | Type | Description |
|---|---|---|
topic * | string | The guide topic to retrieve |
framework | string | When provided, returns framework-specific setup guide instead of the topic guide. Use with topic 'installation' to get framework install instructions. |