vads-mcp-server
v0.10.1MCP server providing VA Design System component, token, and pattern knowledge to AI coding agents
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
find_components
Use before writing any <va-*> markup to choose the right VA Design System component. Searches by name, tag, or description (also common synonyms like severity, variant, color, invalid); returns all components if no query given.
| Parameter | Type | Description |
|---|---|---|
query | string | Search query (component name, tag, or keyword) |
get_component
Use before writing or editing a <va-*> element to get its exact API: props (with HTML attr names, types, defaults), events, slots, CSS parts, dependency graph, and commonMistakes (prop names borrowed from other design systems).
| Parameter | Type | Description |
|---|---|---|
tag * | string | Component tag name (e.g., "va-text-input") |
validate_component_api
Use after writing <va-*> markup to check its attributes against the component spec. Identifies invalid attributes and suggests corrections (e.g., prop name vs attr name, color/severity → status, isInvalid → error).
| Parameter | Type | Description |
|---|---|---|
attributes * | array | HTML attributes to validate |
tag * | string | Component tag name (e.g., "va-text-input") |
get_tokens
Use when writing CSS to pick VA Design System tokens (CSS custom properties) instead of raw values. Filter by category: color, font, spacing, semantic-spacing, elevation, size, component, border, breakpoint, opacity, legacy.
| Parameter | Type | Description |
|---|---|---|
category | string | Token category to filter by (color, font, spacing, semantic-spacing, elevation, size, component, border, breakpoint, opacity, legacy) |
find_tokens
Use when you have a raw CSS value or partial token name and need the VA Design System token for it. Searches by CSS variable name or value, e.g. "color-primary" or "#005ea2". Synonyms like severity or invalid map to the error/warning/success/info tokens.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query (token name or value) |
get_guide
Use before building a page or form, or writing user-facing copy, to get VA Design System guidance. Topics: installation, page-structure, form-patterns, accessibility, content-style, typography, figma-to-code, logos, frameworks/vanilla.
| Parameter | Type | Description |
|---|---|---|
topic * | string | Guide topic (e.g., "installation", "page-structure", "form-patterns", "accessibility", "content-style", "typography", "figma-to-code", "logos", "frameworks/vanilla") |
get_utility_classes
Use for spacing, layout, and typography instead of inline styles or custom CSS. Returns VADS vads-u-* utility classes by category: margin, padding, display, flexbox, typography, color, border, sizing, position, visibility, grid.
| Parameter | Type | Description |
|---|---|---|
category | string | Utility category (e.g., "margin", "flexbox", "grid") |
map_figma_component
Use when implementing a Figma design to map a Figma component name to its VADS web component tag, with attribute mappings and HTML example. Handles variant info (e.g., "Alert - Warning" or "Button, Type=Secondary"). Returns candidates if no exact match.
| Parameter | Type | Description |
|---|---|---|
figmaComponentName * | string | Figma component name, optionally with variant info (e.g., "Alert", "Alert - Warning", "Button, Type=Secondary") |
get_logos
Use when a page needs a VA logo or seal. Returns the VA Seal (SVG, inline content), VA Logo on Light (PNG, CDN URL), and VA Logo on Dark (PNG, CDN URL) with usage guidance. Filter by name: va-seal, va-on-light, va-on-dark.
| Parameter | Type | Description |
|---|---|---|
name | string | Logo name to retrieve (va-seal, va-on-light, va-on-dark). Omit to get all three. |
list_patterns
Use when building a VA.gov form to discover existing form-field patterns before calling get_pattern. Lists name, purpose, and stability.
get_pattern
Use before implementing a VA.gov form field (name, address, date of birth, SSN, etc.) to get its pattern. Returns purpose, maturity, related patterns, production stack links, and uiSchema/schema export names.
| Parameter | Type | Description |
|---|---|---|
name * | string | Pattern name (e.g., "fullName", "addressUI", "dateOfBirth", "ssnOrVaFileNumber") |