avis2-design-system
v1.3.1MCP server with a Claude skill that builds AVIS2 mockups from the «AVIS2 UI» design system on each user's own claude.ai Design canvas, and changes the system…
MCP server that gives Claude the avis2-design-system skill. It works with the AVIS2 design system «AVIS2 UI», a claude.ai Design System artifact, in two ways: The server returns the guide and runs the guide's helpers (kit CSS, artboard check, design system check) on local files. Claude reads and writes the artifacts with its own Artifact tool, so the server works where that tool exists: the Claude desktop app and claude.ai. The server needs no network access and stores nothing. You need Node.js 18+ and one artifact link (ask your team; it is not part of this package):
Summary extracted from the README.
avis2-design-system
MCP server that gives Claude the avis2-design-system skill. It works with the AVIS2 design system «AVIS2 UI», a claude.ai Design System artifact, in two ways:
- Mockup. Builds any AVIS2 screen, panel, modal or element only from the system's tokens and components, checks it against the AVIS2 requirements (AVIS-UI-120-01 2.0–2.33, AVIS-UI-150-xx), and adds it to the user's own mockup canvas «AVIS2 UI — Mockups». Claude finds that canvas among the user's artifacts, or creates it with the design system installed on the first mockup.
- System change. Adds or changes a component, token, rule or asset of «AVIS2 UI».
The server returns the guide and runs the guide's helpers (kit CSS, artboard check, design system check) on local files. Claude reads and writes the artifacts with its own Artifact tool, so the server works where that tool exists: the Claude desktop app and claude.ai. The server needs no network access and stores nothing.
Setup
You need Node.js 18+ and one artifact link (ask your team; it is not part of this package):
| Variable | Artifact |
|---|---|
AVIS2_DS_URL |
Design system «AVIS2 UI», with the requirement digests AVIS-UI-120-01 and AVIS-UI-150-xx inside it |
You also need view access to it (edit access only to change the system). If the variable is not set, Claude asks for the link in the chat.
Claude Code / Claude desktop app
claude mcp add avis2-design-system --scope user -e AVIS2_DS_URL=<link> -- npx -y avis2-design-system@latest
On Windows put cmd /c before npx. Start a new session and check that avis2-design-system is listed by /mcp.
JSON config (other MCP clients)
{
"mcpServers": {
"avis2-design-system": {
"command": "npx",
"args": ["-y", "avis2-design-system@latest"],
"env": {
"AVIS2_DS_URL": "<link>"
}
}
}
}
On Windows use "command": "cmd" and "args": ["/c", "npx", "-y", "avis2-design-system@latest"].
Use
Write a normal message (Azerbaijani, Russian or English):
Собери по дизайн-системе экран «Borc bildirişləri»: DebtPageLayout и DataTable.
Колонки: VÖEN/Adı, Qeydiyyat nömrəsi, Qeydiyyat tarixi, Məbləğ, Vəziyyət.
Добавь в AVIS2 UI компонент мастера по требованию 2.19.
or use the prompts mockup and change-system (in Claude Code: /mcp__avis2-design-system__mockup).
- Mockup result: the link to your canvas «AVIS2 UI — Mockups» (new and private on the first mockup; share it yourself if colleagues should see it) with the new board on the page «Ekranlar» (screens) or «Elementlər» (single elements), the components used, the requirement sections followed and every assumption. Play in the canvas makes it clickable.
- System change result: the system link, what changed and why. Claude then offers to rebuild the mockups it affects.
- Changes: ask in the same session, e.g. "add a Bank column".
What the server exposes
| Kind | Name | Purpose |
|---|---|---|
| tool | avis2_ds_guide |
Returns the full guide; Claude calls it first |
| tool | avis2_ds_new_board |
Writes a new artboard from the skeleton with the kit CSS built from the system's tokens.json and bundle.css |
| tool | avis2_ds_check_board |
Checks an artboard: script, every {{hole}} returned, tags balanced |
| tool | avis2_ds_check_ds |
Checks a changed copy of the system: tokens, var(--…) use, previews, READMEs |
| prompts | mockup, change-system |
The guide plus your request, as a ready message |
| resources | avis2-design-system://skill/... |
SKILL.md, the three references, the artboard skeleton |
The file tools take absolute paths on the machine where the server runs. avis2_ds_new_board writes only .dc.html files and does not overwrite one unless asked.
Development
npm install
npm test
The skill text is in skill/ (links as {{AVIS2_…}} placeholders); the tools are in src/. Change them, bump version in package.json, then npm publish.