@atomixstudio/mcp 1.0.34 → 1.0.35
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 +10 -2
- package/dist/chunk-426RNS3G.js +1782 -0
- package/dist/chunk-426RNS3G.js.map +1 -0
- package/dist/figma-bridge-protocol.d.ts +4 -3
- package/dist/figma-bridge-protocol.js +1 -1
- package/dist/index.js +534 -742
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-CE6J5MJX.js +0 -49
- package/dist/chunk-CE6J5MJX.js.map +0 -1
package/README.md
CHANGED
|
@@ -80,6 +80,7 @@ Returns DS-derived suggestions so the AI can build a "Suggested" vs "Already pre
|
|
|
80
80
|
- **iconLibrary** — `package`, `nativePackage`, and a performance hint (use individual imports; apply the DS icon sizing/weight token when rendering icons).
|
|
81
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.
|
|
82
82
|
- **skill** — `path` (e.g. `.cursor/skills/atomix-ds/SKILL.md`) and `content` (generic, platform-agnostic SKILL.md).
|
|
83
|
+
- **skillFigmaDesign** — `path` (`.cursor/skills/atomix-ds/figma-design-SKILL.md`) and `content` (Figma design skill: advisory and generative UI on the Figma canvas).
|
|
83
84
|
- **tokenFiles** — e.g. `["tokens.css", "tokens.json"]` with copy instructions.
|
|
84
85
|
- **meta** — `dsName`, `platform`, `stack`, `designSystemVersion`, `designSystemExportedAt`. Use `designSystemVersion` to compare with skill frontmatter `atomixDsVersion` and suggest **syncAll** when the design system is newer.
|
|
85
86
|
|
|
@@ -87,7 +88,7 @@ If the design system is unavailable, the tool may fail; the client should tell t
|
|
|
87
88
|
|
|
88
89
|
### syncAll
|
|
89
90
|
|
|
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).
|
|
91
|
+
**syncAll** is the single sync tool: tokens file, AI rules, skills (`.cursor/skills/atomix-ds/SKILL.md` and `.cursor/skills/atomix-ds/figma-design-SKILL.md`), and **atomix-dependencies.json**. The manifest records icon library, font families, and skill 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).
|
|
91
92
|
|
|
92
93
|
**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.
|
|
93
94
|
|
|
@@ -103,6 +104,7 @@ Run these prompts from your AI tool (e.g. **/--hello**, **/--get-started**):
|
|
|
103
104
|
| **/--sync** | Sync tokens, AI rules, skills files, and dependencies manifest (icons, fonts). Use **/--refactor** to migrate deprecated tokens. |
|
|
104
105
|
| **/--refactor** | Migrate deprecated tokens in codebase. Run after **/--sync**. |
|
|
105
106
|
| **/--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).** |
|
|
107
|
+
| **/--design-in-figma** | Load the Figma design skill and use the **designInFigma** MCP tool to design UI in the connected Figma file (catalog, query, execute). **Pro only.** |
|
|
106
108
|
|
|
107
109
|
## --get-started (get started)
|
|
108
110
|
|
|
@@ -117,7 +119,7 @@ The **/--get-started** prompt suggests dependencies for your design system so yo
|
|
|
117
119
|
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.
|
|
118
120
|
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.").
|
|
119
121
|
|
|
120
|
-
**SKILLs:** The get-started flow suggests adding
|
|
122
|
+
**SKILLs:** The get-started flow suggests adding two skills: `.cursor/skills/atomix-ds/SKILL.md` (generic, platform-agnostic; call `getRules` for governance rules) and `.cursor/skills/atomix-ds/figma-design-SKILL.md` (Figma design — advisory and generative UI). Run /--sync to write both skills; .rules files (e.g. .cursorrules) are no longer written.
|
|
121
123
|
|
|
122
124
|
## Sync to Figma
|
|
123
125
|
|
|
@@ -130,6 +132,12 @@ The **/--get-started** prompt suggests dependencies for your design system so yo
|
|
|
130
132
|
1. **Plugin not connected?** The tool checks first. If the plugin is not connected, the response includes `bridgeNotRunning`, `agentInstruction`, and `userInstruction`. Ensure Cursor has this MCP server running, then in Figma run the Atomix plugin and click **Connect to Cursor**, then call **syncToFigma** again.
|
|
131
133
|
2. **Only if that fails** should the user check MCP configuration and plugin connection manually.
|
|
132
134
|
|
|
135
|
+
## Design in Figma
|
|
136
|
+
|
|
137
|
+
**/--design-in-figma** (or the **designInFigma** tool) loads the Figma design skill into context and directs the AI to use the designInFigma MCP tool to create or edit UI in the connected Figma file. The prompt injects the full Figma design skill content and instructs the agent to call designInFigma with `action: "catalog"` first, then `"query"` (e.g. get_selection, get_design_screenshot) or `"execute"` (design steps).
|
|
138
|
+
|
|
139
|
+
**Tier:** Design in Figma is **Pro only**. Free users do not see this prompt or the designInFigma tool in their MCP session.
|
|
140
|
+
|
|
133
141
|
**User steps (when needed):**
|
|
134
142
|
|
|
135
143
|
1. **Ensure MCP is running** — Cursor should have this MCP server configured and running (the bridge is built in; no separate bridge process).
|