mcp

v3.6.1
@optiaxiom/mcp Checked 11 hours ago Published 3 hours ago

MCP server for Axiom Design System - enables AI assistants to generate accurate Axiom code

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

get_component Get Component

Get information about an Axiom component. Returns the component's description, import statement, sub-components, and accessibility notes (keyboard interactions, and what the consumer must provide such as labels) by default — no props. Use the `import` statement. `entryPoint` names the component's own entry point; use it instead only when the project imports from entry points (e.g. a lint rule bans the `@optiaxiom/react` barrel). Never mix both styles in one project. Use the optional "props" parameter to search for specific props by name or description. Searches both component-specific prop…

ParameterTypeDescription
name *stringComponent name (e.g., "Badge", "Button", "Alert")
propsstringProps to return definitions for, by name or description (e.g., 'loading', 'padding background'). Omit for prop names only.

search_components Search Components

Search Axiom components by name, description, or keywords. Returns matching components. Use get_component() to read full details and get_patterns() to see composition examples.

ParameterTypeDescription
categorystringFilter by category (e.g., 'form', 'layout', 'navigation', 'feedback', 'overlay', 'data-display', 'actions', 'typography')
limitnumberMaximum results to return
querystringSearch query (component name, keyword, or description). Leave empty to browse all components or all components in a category.

get_patterns Get Patterns

Find usage examples showing how Axiom components work together. When you are about to write or compose JSX that uses one or more Axiom components together, refer to this to follow real, working patterns from the docs instead of guessing the API. Returns real examples that demonstrate component composition (which sub-components to use, required props, and how pieces wire together). Examples: get_patterns({ components: "Field Input Button" }) → examples showing forms with fields and buttons get_patterns({ components: "Input", query: "addon" }) → examples showing Input with addons

ParameterTypeDescription
components *stringSpace-separated component names to find patterns for (e.g., "Field Input Button"). Returns examples that use these components together.
limitnumberMaximum number of examples to return.
querystringSearch example titles and the docs headings and prose that introduce them (e.g., 'addon', 'filter', 'empty').

get_tests Get Tests

Get vetted reference test files for Axiom components. When the user asks to write, generate, add, or fix a test / spec / *.spec.tsx / *.test.tsx for any Axiom component, refer to this to follow the repo's established conventions instead of generic React Testing Library habits. These reference tests show how this repo renders components, queries them by role and accessible name, and asserts accessibility (ARIA roles, labels) and interactions. The response also includes a note explaining the custom `vitest.rtl` render helper the tests rely on (auto-wraps in AxiomProvider and returns a `user` fo…

ParameterTypeDescription
componentsstringSpace-separated component names to find reference tests for (e.g., "Alert Button"). Returns tests that use these components. Omit to list all available reference tests.
limitnumberMaximum number of reference tests to return when searching by component. Ignored when listing all tests.

get_tokens Get Design Tokens

Get design token mappings for the Axiom Design System. Returns token-to-value mappings for colors, sizes, borderRadius, fontSize, boxShadow, duration, fontFamily, zIndex, and breakpoints (the min-widths responsive props switch at). Use this to convert hardcoded values to semantic tokens (e.g., #4F576E → fg.secondary, 32px height → h='md'). Spacing is not a token: spacing props take the pixel count (16px padding → p='16') and have no CSS variable or `theme` entry. For how to consume these tokens in code (style props, CSS variables, or the `theme` object), call get_guides({ names: 'design-…

ParameterTypeDescription
categoriesarrayFilter to specific token categories (e.g., ['colors', 'boxShadow']). Returns all categories if omitted.

search_icons Search Icons

Search for icons from the @optiaxiom/icons package. Returns matching icon component names. Search by keywords (e.g., 'message', 'arrow', 'user'). Use the `import` statement; use `entryPoint` instead only when the project imports icons from entry points.

ParameterTypeDescription
query *stringSearch query (icon keyword or name, e.g., 'message', 'arrow', 'user')
limitnumberMaximum results to return

get_guides Get Guides

Get setup, configuration, and integration guides for the Axiom Design System. Refer to these when setting up Axiom, importing its CSS, configuring CSS layers, using icons, integrating Axiom into a host app, or setting up tests and locating components in them (unit or Playwright) — instead of guessing the setup steps. Examples: get_guides({ names: "css-imports css-layers" }) → both CSS setup guides get_guides() → list all available guides (names + titles)

ParameterTypeDescription
namesstringSpace-separated guide names to fetch (e.g., "css-imports css-layers"). Omit to list all available guides.