design-system-mcp
v0.2.3Helios Design System MCP server
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_hds_components Search HDS components
Find Helios Design System components by name, from the component catalog shipped inside the installed @hashicorp/design-system-components package. This is a name lookup, not a question answerer: it matches a substring against each component's invocation name, class name, module path and docs route. Pass 'advanced table' or 'Hds::Flyout', not 'how do I make a table sortable'. Use it to confirm a component exists and to recover its exact invocation name and spelling before writing a template. Results are intentionally concise. Follow up with get_hds_component for a component's arguments, accepte…
| Parameter | Type | Description |
|---|---|---|
query * | string | Component name fragment, e.g. 'button', 'advanced table', 'Hds::Flyout' or 'HdsCopyButton'. Matched as a case-insensitive substring against the invocation name, the class name, the module path and the… |
limit | integer | Maximum results to return (1-50). Defaults to 20. |
get_hds_component Get an HDS component API
Read the full API of one Helios Design System component: every argument with its type, whether it is required and which values it accepts, plus the blocks it takes and the contextual components it yields. The data is generated from the TypeScript declarations of the installed @hashicorp/design-system-components package, so it is the authoritative answer to 'what arguments does this take' — prefer it over prose documentation, which can lag the code. Pass the template invocation, the class name, the bare name or the module path. When the name does not resolve, search_hds_components results com…
| Parameter | Type | Description |
|---|---|---|
name * | string | Component name. Accepts the template invocation ('Hds::Button'), the imported class name ('HdsButton'), the bare name ('button') or the module path ('hds/button'). Case-insensitive, and the Hds:: name… |
search_hds_docs Search HDS documentation
Search the bundled Helios Design System documentation (helios.hashicorp.design) and return ranked passages with snippets. The corpus is a snapshot committed into this server: search runs entirely locally and never makes a network request. Every result carries the canonical URL of the passage, and the response carries the bundledAt timestamp, so a client that needs the live page can fetch it itself. Follow up with read_hds_docs, passing a result's `id`, to read the full passage including its code examples. Results are ranked, not filtered for truth: a non-empty result set is not evidence that H…
| Parameter | Type | Description |
|---|---|---|
query * | string | Natural language or keyword query, e.g. 'how do I make a button full width' or 'sticky table header'. |
docsPath | string | Restrict to one docs route or route prefix, e.g. 'components/button' or 'components/form'. This is the same value the hds://components resource reports as a component's docsPath. |
limit | integer | Maximum results to return (1-25). Defaults to 8. |
section | string | Restrict to one top-level docs section, e.g. 'components', 'foundations', 'patterns' or 'getting-started'. A value the catalog does not use comes back in unknownFilters alongside the sections that exi… |
tab | string | Restrict to one page tab, e.g. 'Guidelines', 'Code', 'Accessibility' or 'Specifications'. A value the catalog does not use comes back in unknownFilters alongside the tabs that exist. Version and chang… |
read_hds_docs Read an HDS documentation passage
Read one passage of the bundled Helios Design System documentation by id, as markdown. Ids come from search_hds_docs; run that first rather than guessing an id. The returned markdown keeps the <Doc::*> and <Hds::*> usage examples and the inlined code snippets, which is what search snippets strip out. The corpus is a snapshot committed into this server: nothing is fetched. The first content block carries the canonical URL and the bundledAt timestamp so a client can fetch the live page itself.
| Parameter | Type | Description |
|---|---|---|
id * | string | Passage id from a search_hds_docs result, e.g. 'components/button#code/how-to-use-this-component/full-width'. |
includeChildren | boolean | Also return the passages nested under this heading. Use when the passage is a section header whose detail lives in its subsections. |
maxBytes | integer | Byte cap on the returned markdown (500-60000). Defaults to 16000. |
search_hds_icons Search HDS icons
Find HDS icons — the icon set Helios ships — by name or keyword, from the catalog inside the installed @hashicorp/flight-icons package. Each icon's searchable text includes its description keywords, so 'warning' reaches alert-triangle even though the two share no characters. Use it to pick the @name value for <Hds::Icon> or <Hds::Button @icon=>, and to confirm an icon exists before writing a name that would render nothing. Use the optional size filter when you need an icon available at a particular size; otherwise pick the size at the call site. The catalog is read from disk and never fetc…
| Parameter | Type | Description |
|---|---|---|
query * | string | Icon name or keyword, e.g. 'alert', 'triangle', 'arrow-right' or 'warning'. Matched as a case-insensitive substring against the icon name, its description keywords, its category, its Figma mapping and… |
category | string | Restrict to one icon category, e.g. 'Status', 'Arrows', 'Interface' or 'Products'. A value the catalog does not use comes back in unknownFilters alongside the categories that exist. |
hasMapping | boolean | Restrict to icons that do (true) or do not (false) carry a Figma component mapping. Leave unset unless you are reconciling code against the Figma library. |
limit | integer | Maximum results to return (1-50). Defaults to 20. |
size | string | Restrict to icons available at one size, such as '16' or '24'. A value the catalog does not use comes back in unknownFilters alongside the sizes that exist. |
search_hds_tokens Search HDS design tokens
Find Helios design tokens by name or value, from the token catalog inside the installed @hashicorp/design-system-tokens package. Every result carries the cssVar to write in a stylesheet — var(--token-color-foreground-action) — so use this to replace a hard-coded color, spacing or radius with the token that holds it. The query matches the token value too, so searching a hex code finds which token already defines it. The catalog is read from disk and never fetched. Exact and prefix matches on the token key, name or CSS variable rank first, so a token you named by hand comes back at the top;…
| Parameter | Type | Description |
|---|---|---|
query * | string | Token name fragment or value, e.g. 'foreground-action', 'border radius', 'blue-200' or '#1060ff'. Matched as a case-insensitive substring against the token key, its CSS variable name, its dotted path… |
category | string | Restrict to one token category, e.g. 'color', 'border' or 'typography'. A value the catalog does not use comes back in unknownFilters alongside the categories that exist. |
limit | integer | Maximum results to return (1-50). Defaults to 20. |
type | string | Restrict to one token type. 'color' and 'dimension' are the two that carry most of the catalog. |