vads-mcp-server

v0.10.1
@department-of-veterans-affairs/vads-mcp-server Checked 4 days ago Published 1 month ago

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

ParameterTypeDescription
querystringSearch 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).

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

ParameterTypeDescription
attributes *arrayHTML attributes to validate
tag *stringComponent 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.

ParameterTypeDescription
categorystringToken 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.

ParameterTypeDescription
query *stringSearch 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.

ParameterTypeDescription
topic *stringGuide 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.

ParameterTypeDescription
categorystringUtility 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.

ParameterTypeDescription
figmaComponentName *stringFigma 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.

ParameterTypeDescription
namestringLogo 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.

ParameterTypeDescription
name *stringPattern name (e.g., "fullName", "addressUI", "dateOfBirth", "ssnOrVaFileNumber")