beam-react-mcp

v2.96.1
@viasat/beam-react-mcp Checked 2 days ago Published 3 days ago

MCP server for the Beam React design system that gives AI coding tools structured access to component APIs, props, usage examples, and concept docs.

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

listComponents

List all Beam React components. Optionally filter by query string (searches name, slug, description, and common synonyms from other design systems, e.g. "snackbar" finds Toast, "dropdown" finds Select) or category.

ParameterTypeDescription
categorystringFilter by component category (e.g., "Button", "Form", "Layout")
querystringSearch query to filter components by name, description, or common synonym

getComponent

Get full details for a specific Beam React component: props with types/defaults/descriptions, subcomponent props, and the Default story source inline. All available story names are listed — call getComponentStory for additional story JSX examples. For context-driven/imperative components (e.g. ToastContainer), a `pairedHooks` array lists the hooks/providers that complete the usage contract (with full signatures) — read these before writing code, as the component is driven by the hook, not by props/children alone. When present, a `usageGuidelines` field carries designer-authored, natural-la…

ParameterTypeDescription
name *stringComponent name, slug, or title (e.g., "Button", "button", "Form/TextField")

getComponentStory

Get the JSX source for a specific named story of a Beam React component. Call after getComponent — use the story names from the index to request only the examples you need.

ParameterTypeDescription
component *stringComponent name, slug, or title (e.g., "Button", "Card/Card")
story *stringStory name as returned by getComponent (e.g., "Default", "With Actions")

listIconGroups

Step one of icon discovery: list the Beam icon groups with their importPath and iconCount — no icon names, so the response stays tiny. Groups are the main icon set, illustrative icons, and logo subcategories (flags, airlines, banks, payments, viasat, viasatMark, inmarsat). The main set uses Material Symbols names; illustrative icons and logos are Beam-authored. Then call searchIcons to find a specific icon; never ask for a full icon listing, the catalog is several thousand names. Icons are named exports from their group's importPath — e.g. import { Add } from '@viasat/beam-icons/icons'.

searchIcons

Step two of icon discovery: find Beam icons by name. Matching is literal substring, case- and separator-insensitive, so type the name as words ("arrow back" finds ArrowBack). Returns `results` (one entry per group as { importPath, icons: string[] }, best-matching group first) and matchCount, the total before the limit — if matchCount far exceeds the icons returned, narrow the query or pass a group rather than paging. Search the Material Symbols name, not the industry nickname: the main group is Material-derived and PascalCased (access_alarm → AccessAlarm). Matching is not semantic, so a ni…

ParameterTypeDescription
query *stringSubstring to match against icon names (e.g., "close", "arrow")
groupstringNarrow to one group from listIconGroups — full importPath or its last segment (e.g., "@viasat/beam-icons/logos/flags" or "flags")
limitintegerMaximum icons to return (default 50, max 200)

listConcepts

List all Beam concept documentation pages (theming, accessibility, getting started, etc.).

getConcept

Get full content for a specific Beam concept doc page (e.g., theming guide, accessibility patterns, getting started).

ParameterTypeDescription
name *stringConcept name or slug (e.g., "Getting Started", "getting-started", "Concepts/Theming")