@atomixstudio/mcp 1.0.31 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -19
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -62,15 +62,13 @@ Once connected, the AI can call these tools:
|
|
|
62
62
|
| `listTokens(category)` | List all tokens in a category |
|
|
63
63
|
| `searchTokens(query)` | Search tokens by name or value |
|
|
64
64
|
| `validateUsage(value)` | Check if a hardcoded value should use a token |
|
|
65
|
-
| `syncAll(options?)` | Sync tokens, AI rules, skills (.cursor/skills/atomix-ds/*), and atomix-dependencies.json. One tool for full project sync. **/--sync** invokes this. Optional: `output` (default ./tokens.css), `format` (default css), `skipTokens` (if true, only skills + manifest). |
|
|
65
|
+
| `syncAll(options?)` | Sync tokens, AI rules, skills (.cursor/skills/atomix-ds/*), and atomix-dependencies.json. One tool for full project sync. **/--sync** invokes this. Optional: `workspaceRoot` (project root so files are written in the repo; else `ATOMIX_PROJECT_ROOT` env or cwd), `output` (default ./tokens.css), `format` (default css), `skipTokens` (if true, only skills + manifest). |
|
|
66
66
|
| `getAIToolRules(tool)` | Generate AI coding rules for your design system |
|
|
67
67
|
| `exportMCPConfig(tool)` | Get MCP configuration for different tools |
|
|
68
68
|
| `getSetupInstructions(tool)` | Get detailed setup guide |
|
|
69
69
|
| `getDependencies(platform?, stack?)` | Get suggested dependencies (icons, fonts, SKILL.md, token files). Optional: `platform` (web, ios, android), `stack` (e.g. react, vue, next). Use with **/--get-started** prompt. |
|
|
70
70
|
| `syncToFigma()` | Push design system to Figma (variables, paint styles, text styles, effect styles). Uses built-in bridge + Atomix plugin. If the plugin is not connected, the response includes `agentInstruction` to connect. **Available on all tiers (Free and Pro).** |
|
|
71
71
|
|
|
72
|
-
Other Figma tools (getFigmaVariablesAndStyles, createDesignPlaceholder, resolveFigmaIdsForTokens, designCreateFrame, designCreateText, etc.) are **Pro only** — they appear when the design system owner has a Pro subscription.
|
|
73
|
-
|
|
74
72
|
### getDependencies
|
|
75
73
|
|
|
76
74
|
Returns DS-derived suggestions so the AI can build a "Suggested" vs "Already present" list and, after user approval, install or copy assets.
|
|
@@ -82,7 +80,6 @@ Returns DS-derived suggestions so the AI can build a "Suggested" vs "Already pre
|
|
|
82
80
|
- **iconLibrary** — `package`, `nativePackage`, and a performance hint (use individual imports; apply the DS icon sizing/weight token when rendering icons).
|
|
83
81
|
- **fonts** — Font family names from typography tokens + hint to link fonts via URL (e.g. Google Fonts); no need to download or add font files to the repo.
|
|
84
82
|
- **skill** — `path` (e.g. `.cursor/skills/atomix-ds/SKILL.md`) and `content` (generic, platform-agnostic SKILL.md).
|
|
85
|
-
- **skillFigmaDesign** — `path` (`.cursor/skills/atomix-ds/FIGMA-SKILL.md`) and `content` (design-in-Figma skill: principal product designer, correct token use, prefer existing Figma variables).
|
|
86
83
|
- **tokenFiles** — e.g. `["tokens.css", "tokens.json"]` with copy instructions.
|
|
87
84
|
- **meta** — `dsName`, `platform`, `stack`, `designSystemVersion`, `designSystemExportedAt`. Use `designSystemVersion` to compare with skill frontmatter `atomixDsVersion` and suggest **syncAll** when the design system is newer.
|
|
88
85
|
|
|
@@ -90,7 +87,7 @@ If the design system is unavailable, the tool may fail; the client should tell t
|
|
|
90
87
|
|
|
91
88
|
### syncAll
|
|
92
89
|
|
|
93
|
-
**syncAll** is the single sync tool: tokens file, AI rules, skills (`.cursor/skills/atomix-ds/SKILL.md
|
|
90
|
+
**syncAll** is the single sync tool: tokens file, AI rules, skills (`.cursor/skills/atomix-ds/SKILL.md`), and **atomix-dependencies.json**. The manifest records icon library, font families, and paths. The **/--sync** prompt invokes it. All paths are resolved under a project root so files are written **inside the repo** (committable). Project root is: `workspaceRoot` argument → `ATOMIX_PROJECT_ROOT` env → `process.cwd()`. Optional: `workspaceRoot` (absolute path to repo root), `output` (default `./tokens.css`), `format` (default `css`), `skipTokens` (if true, only writes skills and manifest).
|
|
94
91
|
|
|
95
92
|
**Skill versioning:** Synced skills get frontmatter `atomixDsVersion` and `atomixDsExportedAt` (from the design system at sync time). The manifest’s `skills.syncedAtVersion` matches. The AI can compare the skill’s `atomixDsVersion` to **getDependencies**’ `meta.designSystemVersion`; if the design system is newer, it can suggest running **syncAll** to update.
|
|
96
93
|
|
|
@@ -106,7 +103,6 @@ Run these prompts from your AI tool (e.g. **/--hello**, **/--get-started**):
|
|
|
106
103
|
| **/--sync** | Sync tokens, AI rules, skills files, and dependencies manifest (icons, fonts). Use **/--refactor** to migrate deprecated tokens. |
|
|
107
104
|
| **/--refactor** | Migrate deprecated tokens in codebase. Run after **/--sync**. |
|
|
108
105
|
| **/--sync-to-figma** | Push design system to Figma. Requires bridge + Atomix plugin; see [Sync to Figma](#sync-to-figma) below. **Available on all tiers (Free and Pro).** |
|
|
109
|
-
| **/--design-in-figma** | Design UI in Figma: **3 passes** (wireframe → tokens/rules → audit), **getDesignScreenshot** after each pass, then **finalizeDesignFrame** (rename + ✅, remove placeholder) and summarise. No code generation. **Pro only.** |
|
|
110
106
|
|
|
111
107
|
## --get-started (get started)
|
|
112
108
|
|
|
@@ -121,13 +117,13 @@ The **/--get-started** prompt suggests dependencies for your design system so yo
|
|
|
121
117
|
5. **Optional: suggest global typeset** — If the project has no global styles that use the design system tokens, offer to build a full typeset (Display, Heading, body, caption) from the DS typography tokens via getToken/listTokens, including fontFamily, fontSize, fontWeight, lineHeight, letterSpacing—not just font imports.
|
|
122
118
|
6. **Report what was created** — After any install/copy steps, list what was created or updated (e.g. "Installed: lucide-react. Added: .cursor/skills/atomix-ds/SKILL.md. Synced: tokens.css.").
|
|
123
119
|
|
|
124
|
-
**SKILLs:** The get-started flow suggests adding
|
|
120
|
+
**SKILLs:** The get-started flow suggests adding a generic SKILL at `.cursor/skills/atomix-ds/SKILL.md` (coding-platform agnostic; calls `getAIToolRules` for the current environment).
|
|
125
121
|
|
|
126
122
|
## Sync to Figma
|
|
127
123
|
|
|
128
124
|
**/--sync-to-figma** (or the **syncToFigma** tool) pushes your design system into the open Figma file: color variables, paint styles, number variables (spacing, radius, borders, sizing, breakpoints), text styles, and shadow effect styles. The **Figma bridge runs inside this MCP server** (no separate process). You only need the Atomix Figma plugin and "Connect to Cursor" (no Figma REST API or token).
|
|
129
125
|
|
|
130
|
-
**Tier:** Sync to Figma is available on **all tiers** (Free and Pro).
|
|
126
|
+
**Tier:** Sync to Figma is available on **all tiers** (Free and Pro).
|
|
131
127
|
|
|
132
128
|
**Flow:**
|
|
133
129
|
|
|
@@ -141,17 +137,6 @@ The **/--get-started** prompt suggests dependencies for your design system so yo
|
|
|
141
137
|
3. **Connect** — In the plugin UI, tap **Connect to Cursor** and wait until the status shows "Connected".
|
|
142
138
|
4. Run **Sync to Figma** again.
|
|
143
139
|
|
|
144
|
-
## Design in Figma
|
|
145
|
-
|
|
146
|
-
**/--design-in-figma** designs in the open Figma file using **granular MCP commands** (no script execution) and a **three-pass flow**:
|
|
147
|
-
|
|
148
|
-
1. **Setup:** **syncToFigma** → **createDesignPlaceholder** (save `frameId`) → **getAIToolRules** + **listTokens** → **resolveFigmaIdsForTokens**.
|
|
149
|
-
2. **Pass 1 — Layout and contents (wireframe):** Build structure with designCreateFrame, designCreateText, designCreateRectangle, designSetAutoLayout, designSetLayoutConstraints, designAppendChild. You must use auto-layout/fill/hug. Then **getDesignScreenshot** and check the image;
|
|
150
|
-
3. **Pass 2 — Apply design tokens and AI rules:** Set all fills and text styles from the resolved map; follow getAIToolRules for all design foundations. Prioritise colors, typography, and buttons. No hardcoded values only use Figma variables. Then **getDesignScreenshot** and verify.
|
|
151
|
-
4. **Pass 3 — Confirm no hardcoded values:** Audit that every value uses an id from resolved. **getDesignScreenshot** again, then **finalizeDesignFrame** with `frameId`, `name` (e.g. "Login card ✅"), and `fillVariableId`/`fillPaintStyleId` for surface (removes placeholder gray). Summarise what was built.
|
|
152
|
-
|
|
153
|
-
**If the bridge is not reachable:** ensure the Atomix plugin is running in Figma and **Connect to Cursor** is clicked; leave the plugin open. The MCP server (and bridge) must be running in Cursor.
|
|
154
|
-
|
|
155
140
|
## Token Categories
|
|
156
141
|
|
|
157
142
|
- **colors** — Brand, background, text, icon, border, action, feedback (light + dark)
|
package/package.json
CHANGED