Developers
On this page
Overview
Two MCP servers give your AI assistant structured knowledge of Red Hat Design System components and design tokens. Once configured, your assistant can generate correct RHDS markup, suggest token values, and validate your usage.
| Server | What it knows | Install |
|---|---|---|
| CEM | Elements: attributes, slots, events, CSS custom properties, guidelines | npm i -g @pwrs/cem |
| Asimonim | Design tokens: colors, spacing, typography, shadows, and more | npm i -g @pwrs/asimonim |
Both are also available via go install:
go install bennypowers.dev/cem@latest
go install bennypowers.dev/asimonim@latest
Verify both are installed:
cem version
asimonim version
Setup
Pick your editor below and follow the steps. You only need to configure one.
Claude Code
Install both plugins:
/plugin marketplace add bennypowers/cem
/plugin install cem
/plugin marketplace add bennypowers/asimonim
/plugin install asimonim
No additional configuration needed. Both plugins discover RHDS
manifests and token files from node_modules automatically.
Cursor
Add both servers to your Cursor MCP config:
{
"mcpServers": {
"cem": {
"command": "cem",
"args": ["mcp"]
},
"asimonim": {
"command": "asimonim",
"args": ["mcp"]
}
}
}
VS Code
For component intelligence, install the Custom Elements Language Server extension from the marketplace.
For MCP support, add both servers to your MCP configuration the same way as Cursor (above).
Neovim
For Neovim 0.11+ with native LSP support, create two files:
~/.config/nvim/lsp/cem.lua:
return {
cmd = { 'cem', 'lsp' },
root_markers = { 'custom-elements.json', 'package.json', '.git' },
filetypes = { 'html', 'twig', 'php', 'typescript', 'javascript' },
}
~/.config/nvim/lsp/asimonim.lua:
return {
cmd = { 'asimonim', 'lsp' },
root_markers = { 'package.json', '.git' },
filetypes = {
'css', 'html', 'twig', 'php',
'javascript', 'javascriptreact',
'typescript', 'typescriptreact',
'json', 'yaml',
},
}
Verify your setup
- Open an HTML or CSS file in a project that depends on
@rhds/elements - Type
<rh-and confirm that autocomplete suggestions appear - In a CSS file, type
--rh-and confirm that token suggestions appear - If using MCP, ask your AI assistant to generate an RHDS component or list available tokens
If completions do not appear, make sure your project has @rhds/elements
in its dependencies. If your project has its own web components, you can
generate a manifest with:
cem generate
Learn more
Other libraries
To learn more about our other libraries, visit this page.
Feedback
To give feedback about anything on this page, contact us.
Designers
To get started using our design system as a designer, go to the Designers page.