mcp
v1.1.9An MCP server that answers questions about the Orange Halo Design System: every component and its API, every tier 2 token with each brand's value, the rules…
An MCP server that answers questions about the Orange Halo Design System: every component and its API, every tier 2 token with each brand's value, the rules and the recipes. Everything it answers from is bundled in index.json, so it needs only Node. It never edits anything. Add it to your project's .mcp.json (or your assistant's MCP settings): Each version bundles OHDS as it was at that release; get_rules names the package versions it describes.
Summary extracted from the README.
@orange-halo/mcp
An MCP server that answers questions about the Orange Halo Design System: every component and its API, every tier 2 token with each brand's value, the rules and the recipes. Everything it answers from is bundled in index.json, so it needs only Node. It never edits anything.
Use it
Add it to your project's .mcp.json (or your assistant's MCP settings):
{
"mcpServers": {
"ohds": {
"command": "npx",
"args": ["-y", "@orange-halo/mcp"]
}
}
}
| Tool | Answers |
|---|---|
list_components |
Every element, its package and what it is |
get_component |
One element's full API: description, attributes with their allowed values, defaults and descriptions, events, slots and parts |
find_tokens |
Tier 2 tokens for a word or a few words, with each brand's value and the CSS custom property. A component word ("card") adds the roles that component reads and the recipes that mention it |
get_rules |
How to load OHDS, the rules that matter when using it, and the recipes for text, headings, layout and forms |
Each version bundles OHDS as it was at that release; get_rules names the package versions it describes.
Restart it after upgrading OHDS. The server reads its index once, when it starts, so a server (or an assistant session) left running across an upgrade keeps answering for the old version. npx -y fetches the latest version each time it starts; if get_rules names older package versions than you're using, restart it.
In the OHDS repo
pnpm build writes index.json (build-index.mjs, after the components and tokens build), from the manifests, the built tokens, llms.txt and api-values.json. The repo's .mcp.json runs server.mjs from the checkout. pnpm --filter @orange-halo/mcp test starts the server as an agent would and checks each tool's answer; --server <path> tests an installed copy instead.
Release it with the other packages: add a changeset for @orange-halo/mcp whenever a release changes components, tokens or the rules, so the published index stays current.