@mp3wizard/figma-console-mcp 1.25.1 → 1.28.2

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.
Files changed (207) hide show
  1. package/README.md +53 -35
  2. package/dist/apps/design-system-dashboard/mcp-app.html +78 -78
  3. package/dist/apps/token-browser/mcp-app.html +60 -59
  4. package/dist/cloudflare/core/config.js +0 -8
  5. package/dist/cloudflare/core/console-monitor.js +3 -3
  6. package/dist/cloudflare/core/diagnose-tool.js +96 -0
  7. package/dist/cloudflare/core/figma-tools.js +69 -229
  8. package/dist/cloudflare/core/identity.js +96 -0
  9. package/dist/cloudflare/core/tokens/alias-resolver.js +135 -0
  10. package/dist/cloudflare/core/tokens/config.js +284 -0
  11. package/dist/cloudflare/core/tokens/figma-converter.js +195 -0
  12. package/dist/cloudflare/core/tokens/formatters/css-vars.js +329 -0
  13. package/dist/cloudflare/core/tokens/formatters/dtcg.js +300 -0
  14. package/dist/cloudflare/core/tokens/formatters/index.js +45 -0
  15. package/dist/cloudflare/core/tokens/formatters/json.js +187 -0
  16. package/dist/cloudflare/core/tokens/formatters/less.js +4 -0
  17. package/dist/cloudflare/core/tokens/formatters/scss.js +252 -0
  18. package/dist/cloudflare/core/tokens/formatters/stubs.js +13 -0
  19. package/dist/cloudflare/core/tokens/formatters/style-dictionary-v3.js +207 -0
  20. package/dist/cloudflare/core/tokens/formatters/tailwind-v3.js +237 -0
  21. package/dist/cloudflare/core/tokens/formatters/tailwind-v4.js +330 -0
  22. package/dist/cloudflare/core/tokens/formatters/tokens-studio.js +250 -0
  23. package/dist/cloudflare/core/tokens/formatters/ts-module.js +198 -0
  24. package/dist/cloudflare/core/tokens/index.js +15 -0
  25. package/dist/cloudflare/core/tokens/parsers/css-vars.js +4 -0
  26. package/dist/cloudflare/core/tokens/parsers/dtcg.js +253 -0
  27. package/dist/cloudflare/core/tokens/parsers/index.js +138 -0
  28. package/dist/cloudflare/core/tokens/parsers/json.js +7 -0
  29. package/dist/cloudflare/core/tokens/parsers/scss.js +4 -0
  30. package/dist/cloudflare/core/tokens/parsers/stubs.js +20 -0
  31. package/dist/cloudflare/core/tokens/parsers/style-dictionary-v3.js +4 -0
  32. package/dist/cloudflare/core/tokens/parsers/tailwind-v3.js +4 -0
  33. package/dist/cloudflare/core/tokens/parsers/tailwind-v4.js +4 -0
  34. package/dist/cloudflare/core/tokens/parsers/tokens-studio.js +4 -0
  35. package/dist/cloudflare/core/tokens/schemas.js +148 -0
  36. package/dist/cloudflare/core/tokens/transforms/color.js +12 -0
  37. package/dist/cloudflare/core/tokens/transforms/index.js +29 -0
  38. package/dist/cloudflare/core/tokens/transforms/size.js +7 -0
  39. package/dist/cloudflare/core/tokens/types.js +18 -0
  40. package/dist/cloudflare/core/tokens-tools.js +859 -0
  41. package/dist/cloudflare/core/websocket-server.js +5 -55
  42. package/dist/cloudflare/index.js +37 -26
  43. package/dist/core/config.d.ts.map +1 -1
  44. package/dist/core/config.js +0 -8
  45. package/dist/core/config.js.map +1 -1
  46. package/dist/core/console-monitor.d.ts +2 -2
  47. package/dist/core/console-monitor.d.ts.map +1 -1
  48. package/dist/core/console-monitor.js +3 -3
  49. package/dist/core/console-monitor.js.map +1 -1
  50. package/dist/core/diagnose-tool.d.ts +33 -0
  51. package/dist/core/diagnose-tool.d.ts.map +1 -0
  52. package/dist/core/diagnose-tool.js +97 -0
  53. package/dist/core/diagnose-tool.js.map +1 -0
  54. package/dist/core/figma-connector.d.ts +1 -1
  55. package/dist/core/figma-connector.d.ts.map +1 -1
  56. package/dist/core/figma-tools.d.ts +1 -2
  57. package/dist/core/figma-tools.d.ts.map +1 -1
  58. package/dist/core/figma-tools.js +69 -229
  59. package/dist/core/figma-tools.js.map +1 -1
  60. package/dist/core/identity.d.ts +41 -0
  61. package/dist/core/identity.d.ts.map +1 -0
  62. package/dist/core/identity.js +97 -0
  63. package/dist/core/identity.js.map +1 -0
  64. package/dist/core/tokens/alias-resolver.d.ts +55 -0
  65. package/dist/core/tokens/alias-resolver.d.ts.map +1 -0
  66. package/dist/core/tokens/alias-resolver.js +136 -0
  67. package/dist/core/tokens/alias-resolver.js.map +1 -0
  68. package/dist/core/tokens/config.d.ts +352 -0
  69. package/dist/core/tokens/config.d.ts.map +1 -0
  70. package/dist/core/tokens/config.js +285 -0
  71. package/dist/core/tokens/config.js.map +1 -0
  72. package/dist/core/tokens/figma-converter.d.ts +81 -0
  73. package/dist/core/tokens/figma-converter.d.ts.map +1 -0
  74. package/dist/core/tokens/figma-converter.js +196 -0
  75. package/dist/core/tokens/figma-converter.js.map +1 -0
  76. package/dist/core/tokens/formatters/css-vars.d.ts +24 -0
  77. package/dist/core/tokens/formatters/css-vars.d.ts.map +1 -0
  78. package/dist/core/tokens/formatters/css-vars.js +330 -0
  79. package/dist/core/tokens/formatters/css-vars.js.map +1 -0
  80. package/dist/core/tokens/formatters/dtcg.d.ts +28 -0
  81. package/dist/core/tokens/formatters/dtcg.d.ts.map +1 -0
  82. package/dist/core/tokens/formatters/dtcg.js +301 -0
  83. package/dist/core/tokens/formatters/dtcg.js.map +1 -0
  84. package/dist/core/tokens/formatters/index.d.ts +30 -0
  85. package/dist/core/tokens/formatters/index.d.ts.map +1 -0
  86. package/dist/core/tokens/formatters/index.js +46 -0
  87. package/dist/core/tokens/formatters/index.js.map +1 -0
  88. package/dist/core/tokens/formatters/json.d.ts +37 -0
  89. package/dist/core/tokens/formatters/json.d.ts.map +1 -0
  90. package/dist/core/tokens/formatters/json.js +188 -0
  91. package/dist/core/tokens/formatters/json.js.map +1 -0
  92. package/dist/core/tokens/formatters/less.d.ts +4 -0
  93. package/dist/core/tokens/formatters/less.d.ts.map +1 -0
  94. package/dist/core/tokens/formatters/less.js +5 -0
  95. package/dist/core/tokens/formatters/less.js.map +1 -0
  96. package/dist/core/tokens/formatters/scss.d.ts +26 -0
  97. package/dist/core/tokens/formatters/scss.d.ts.map +1 -0
  98. package/dist/core/tokens/formatters/scss.js +253 -0
  99. package/dist/core/tokens/formatters/scss.js.map +1 -0
  100. package/dist/core/tokens/formatters/stubs.d.ts +9 -0
  101. package/dist/core/tokens/formatters/stubs.d.ts.map +1 -0
  102. package/dist/core/tokens/formatters/stubs.js +14 -0
  103. package/dist/core/tokens/formatters/stubs.js.map +1 -0
  104. package/dist/core/tokens/formatters/style-dictionary-v3.d.ts +45 -0
  105. package/dist/core/tokens/formatters/style-dictionary-v3.d.ts.map +1 -0
  106. package/dist/core/tokens/formatters/style-dictionary-v3.js +208 -0
  107. package/dist/core/tokens/formatters/style-dictionary-v3.js.map +1 -0
  108. package/dist/core/tokens/formatters/tailwind-v3.d.ts +37 -0
  109. package/dist/core/tokens/formatters/tailwind-v3.d.ts.map +1 -0
  110. package/dist/core/tokens/formatters/tailwind-v3.js +238 -0
  111. package/dist/core/tokens/formatters/tailwind-v3.js.map +1 -0
  112. package/dist/core/tokens/formatters/tailwind-v4.d.ts +41 -0
  113. package/dist/core/tokens/formatters/tailwind-v4.d.ts.map +1 -0
  114. package/dist/core/tokens/formatters/tailwind-v4.js +331 -0
  115. package/dist/core/tokens/formatters/tailwind-v4.js.map +1 -0
  116. package/dist/core/tokens/formatters/tokens-studio.d.ts +44 -0
  117. package/dist/core/tokens/formatters/tokens-studio.d.ts.map +1 -0
  118. package/dist/core/tokens/formatters/tokens-studio.js +251 -0
  119. package/dist/core/tokens/formatters/tokens-studio.js.map +1 -0
  120. package/dist/core/tokens/formatters/ts-module.d.ts +35 -0
  121. package/dist/core/tokens/formatters/ts-module.d.ts.map +1 -0
  122. package/dist/core/tokens/formatters/ts-module.js +199 -0
  123. package/dist/core/tokens/formatters/ts-module.js.map +1 -0
  124. package/dist/core/tokens/index.d.ts +17 -0
  125. package/dist/core/tokens/index.d.ts.map +1 -0
  126. package/dist/core/tokens/index.js +16 -0
  127. package/dist/core/tokens/index.js.map +1 -0
  128. package/dist/core/tokens/parsers/css-vars.d.ts +3 -0
  129. package/dist/core/tokens/parsers/css-vars.d.ts.map +1 -0
  130. package/dist/core/tokens/parsers/css-vars.js +5 -0
  131. package/dist/core/tokens/parsers/css-vars.js.map +1 -0
  132. package/dist/core/tokens/parsers/dtcg.d.ts +21 -0
  133. package/dist/core/tokens/parsers/dtcg.d.ts.map +1 -0
  134. package/dist/core/tokens/parsers/dtcg.js +254 -0
  135. package/dist/core/tokens/parsers/dtcg.js.map +1 -0
  136. package/dist/core/tokens/parsers/index.d.ts +37 -0
  137. package/dist/core/tokens/parsers/index.d.ts.map +1 -0
  138. package/dist/core/tokens/parsers/index.js +139 -0
  139. package/dist/core/tokens/parsers/index.js.map +1 -0
  140. package/dist/core/tokens/parsers/json.d.ts +4 -0
  141. package/dist/core/tokens/parsers/json.d.ts.map +1 -0
  142. package/dist/core/tokens/parsers/json.js +8 -0
  143. package/dist/core/tokens/parsers/json.js.map +1 -0
  144. package/dist/core/tokens/parsers/scss.d.ts +3 -0
  145. package/dist/core/tokens/parsers/scss.d.ts.map +1 -0
  146. package/dist/core/tokens/parsers/scss.js +5 -0
  147. package/dist/core/tokens/parsers/scss.js.map +1 -0
  148. package/dist/core/tokens/parsers/stubs.d.ts +15 -0
  149. package/dist/core/tokens/parsers/stubs.d.ts.map +1 -0
  150. package/dist/core/tokens/parsers/stubs.js +21 -0
  151. package/dist/core/tokens/parsers/stubs.js.map +1 -0
  152. package/dist/core/tokens/parsers/style-dictionary-v3.d.ts +3 -0
  153. package/dist/core/tokens/parsers/style-dictionary-v3.d.ts.map +1 -0
  154. package/dist/core/tokens/parsers/style-dictionary-v3.js +5 -0
  155. package/dist/core/tokens/parsers/style-dictionary-v3.js.map +1 -0
  156. package/dist/core/tokens/parsers/tailwind-v3.d.ts +3 -0
  157. package/dist/core/tokens/parsers/tailwind-v3.d.ts.map +1 -0
  158. package/dist/core/tokens/parsers/tailwind-v3.js +5 -0
  159. package/dist/core/tokens/parsers/tailwind-v3.js.map +1 -0
  160. package/dist/core/tokens/parsers/tailwind-v4.d.ts +3 -0
  161. package/dist/core/tokens/parsers/tailwind-v4.d.ts.map +1 -0
  162. package/dist/core/tokens/parsers/tailwind-v4.js +5 -0
  163. package/dist/core/tokens/parsers/tailwind-v4.js.map +1 -0
  164. package/dist/core/tokens/parsers/tokens-studio.d.ts +3 -0
  165. package/dist/core/tokens/parsers/tokens-studio.d.ts.map +1 -0
  166. package/dist/core/tokens/parsers/tokens-studio.js +5 -0
  167. package/dist/core/tokens/parsers/tokens-studio.js.map +1 -0
  168. package/dist/core/tokens/schemas.d.ts +152 -0
  169. package/dist/core/tokens/schemas.d.ts.map +1 -0
  170. package/dist/core/tokens/schemas.js +149 -0
  171. package/dist/core/tokens/schemas.js.map +1 -0
  172. package/dist/core/tokens/transforms/color.d.ts +9 -0
  173. package/dist/core/tokens/transforms/color.d.ts.map +1 -0
  174. package/dist/core/tokens/transforms/color.js +13 -0
  175. package/dist/core/tokens/transforms/color.js.map +1 -0
  176. package/dist/core/tokens/transforms/index.d.ts +36 -0
  177. package/dist/core/tokens/transforms/index.d.ts.map +1 -0
  178. package/dist/core/tokens/transforms/index.js +30 -0
  179. package/dist/core/tokens/transforms/index.js.map +1 -0
  180. package/dist/core/tokens/transforms/size.d.ts +7 -0
  181. package/dist/core/tokens/transforms/size.d.ts.map +1 -0
  182. package/dist/core/tokens/transforms/size.js +8 -0
  183. package/dist/core/tokens/transforms/size.js.map +1 -0
  184. package/dist/core/tokens/types.d.ts +228 -0
  185. package/dist/core/tokens/types.d.ts.map +1 -0
  186. package/dist/core/tokens/types.js +19 -0
  187. package/dist/core/tokens/types.js.map +1 -0
  188. package/dist/core/tokens-tools.d.ts +42 -0
  189. package/dist/core/tokens-tools.d.ts.map +1 -0
  190. package/dist/core/tokens-tools.js +860 -0
  191. package/dist/core/tokens-tools.js.map +1 -0
  192. package/dist/core/types/index.d.ts +0 -8
  193. package/dist/core/types/index.d.ts.map +1 -1
  194. package/dist/core/websocket-connector.d.ts +1 -1
  195. package/dist/core/websocket-connector.d.ts.map +1 -1
  196. package/dist/core/websocket-server.d.ts +4 -3
  197. package/dist/core/websocket-server.d.ts.map +1 -1
  198. package/dist/core/websocket-server.js +5 -55
  199. package/dist/core/websocket-server.js.map +1 -1
  200. package/dist/local.d.ts +0 -12
  201. package/dist/local.d.ts.map +1 -1
  202. package/dist/local.js +959 -3406
  203. package/dist/local.js.map +1 -1
  204. package/figma-desktop-bridge/code.js +11 -63
  205. package/figma-desktop-bridge/ui.html +72 -11
  206. package/package.json +27 -12
  207. package/figma-desktop-bridge/ui-full.html +0 -1353
package/README.md CHANGED
@@ -6,21 +6,25 @@
6
6
  [![Documentation](https://img.shields.io/badge/docs-docs.figma--console--mcp.southleft.com-0D9488)](https://docs.figma-console-mcp.southleft.com)
7
7
  [![Sponsor](https://img.shields.io/badge/Sponsor-southleft-ea4aaa?logo=github-sponsors&logoColor=white)](https://github.com/sponsors/southleft)
8
8
 
9
- > **Your design system as an API.** Model Context Protocol server that bridges design and development—giving AI assistants complete access to Figma for **extraction**, **creation**, and **debugging**.
9
+ > **Your design system as an API.** Model Context Protocol server that bridges design and development—giving AI assistants complete access to Figma for **extraction**, **creation**, **debugging**, and **bidirectional token sync**.
10
10
 
11
- > **🆕 Version History & Time-Series Awareness (v1.23.0):** Six new tools turn a Figma file from a static snapshot into a queryable history list versions, snapshot any past version, diff two versions for component/binding deltas, generate markdown changelogs ready for release notes, and trace exactly when (and by whom) a property or variant was introduced via a binary-search blame walker. Author attribution flows from autosaves, not just labeled releases. [See what's new →](CHANGELOG.md#1230---2026-05-09)
11
+ > **🆕 Token Sync Full Formatter Coverage (v1.28.0, patched v1.28.1):** `figma_export_tokens` now ships **10 fully-implemented output formats**: DTCG JSON (canonical), CSS custom properties, Tailwind v4 `@theme inline`, Tailwind v3 config, SCSS, TypeScript module, JSON (flat + nested), Style Dictionary v3, and Tokens Studio multi-file. Pull Figma variables and emit code in whatever styling flavor your project uses — no Style Dictionary or Tokens Studio install required. Diff-aware merge for round-trip; one Figma API call per changed value, not full rewrites. v1.28.1 fixes four alias-resolution bugs found in live-fire testing against multi-tier semantic-token design systems. 103 tools total. [See what's new →](CHANGELOG.md#1281---2026-05-18)
12
12
 
13
13
  ## What is this?
14
14
 
15
15
  Figma Console MCP connects AI assistants (like Claude) to Figma, enabling:
16
16
 
17
17
  - **🎨 Design system extraction** - Pull variables, components, and styles
18
+ - **🔁 Bidirectional token sync** - Export Figma variables to DTCG JSON + CSS custom properties; push code-side edits back to Figma. Replaces Style Dictionary and Tokens Studio's export pipeline.
18
19
  - **📸 Visual debugging** - Take screenshots for context
19
20
  - **✏️ Design creation** - Create UI components, frames, and layouts directly in Figma
20
21
  - **🔧 Variable management** - Create, update, rename, and delete design tokens
22
+ - **🕰 Version history & time-series awareness** - List versions, diff snapshots, generate markdown changelogs, trace property/variant introduction via binary-search blame
21
23
  - **⚡ Real-time monitoring** - Watch console logs from the Desktop Bridge plugin
22
24
  - **📌 FigJam boards** - Create stickies, flowcharts, tables, and code blocks on collaborative boards
25
+ - **🎞️ Slides presentations** - Build and manage Figma Slides decks programmatically
23
26
  - **♿ Accessibility scanning** - 14 WCAG design checks with conformance level tagging, component scorecards, axe-core code scanning, design-to-code parity
27
+ - **🛡 Cross-MCP identity** - Every tool response carries `_mcp: "figma-console-mcp"` and errors are prefixed `[figma-console-mcp]` so attribution stays unambiguous in agents running multiple Figma MCPs
24
28
  - **☁️ Cloud Write Relay** - Web AI clients (Claude.ai, v0, Replit) can design in Figma via cloud pairing
25
29
  - **🔄 Four ways to connect** - Remote SSE, Cloud Mode, NPX, or Local Git
26
30
 
@@ -51,9 +55,9 @@ Figma Console MCP connects AI assistants (like Claude) to Figma, enabling:
51
55
  | Real-time monitoring (console, selection) | ✅ | ❌ | ❌ |
52
56
  | Desktop Bridge plugin | ✅ | ✅ | ❌ |
53
57
  | Requires Node.js | Yes | **No** | No |
54
- | **Total tools available** | **100+** | **83** | **9** |
58
+ | **Total tools available** | **103** | **95** | **9** |
55
59
 
56
- > **Bottom line:** Remote SSE is **read-only** with ~38% of the tools. **Cloud Mode** unlocks write access from web AI clients without Node.js. NPX/Local Git gives the full 100+ tools with real-time monitoring.
60
+ > **Bottom line:** Remote SSE is **read-only** with ~38% of the tools. **Cloud Mode** unlocks write access from web AI clients without Node.js. NPX/Local Git gives the full 103 tools with real-time monitoring.
57
61
 
58
62
  ---
59
63
 
@@ -61,7 +65,7 @@ Figma Console MCP connects AI assistants (like Claude) to Figma, enabling:
61
65
 
62
66
  **Best for:** Designers who want full AI-assisted design capabilities.
63
67
 
64
- **What you get:** All 100+ tools including design creation, variable management, and component instantiation.
68
+ **What you get:** All 103 tools including design creation, variable management, and component instantiation.
65
69
 
66
70
  #### Prerequisites
67
71
 
@@ -81,7 +85,7 @@ Figma Console MCP connects AI assistants (like Claude) to Figma, enabling:
81
85
 
82
86
  **Claude Code (CLI):**
83
87
  ```bash
84
- claude mcp add figma-console -s user -e FIGMA_ACCESS_TOKEN=figd_YOUR_TOKEN_HERE -e ENABLE_MCP_APPS=true -- npx -y figma-console-mcp@latest
88
+ claude mcp add figma-console -s user -e FIGMA_ACCESS_TOKEN=figd_YOUR_TOKEN_HERE -e ENABLE_MCP_APPS=true -- npx -y @mp3wizard/figma-console-mcp@latest
85
89
  ```
86
90
 
87
91
  **Cursor / Windsurf / Claude Desktop:**
@@ -93,7 +97,7 @@ Add to your MCP config file (see [Where to find your config file](#-where-to-fin
93
97
  "mcpServers": {
94
98
  "figma-console": {
95
99
  "command": "npx",
96
- "args": ["-y", "figma-console-mcp@latest"],
100
+ "args": ["-y", "@mp3wizard/figma-console-mcp@latest"],
97
101
  "env": {
98
102
  "FIGMA_ACCESS_TOKEN": "figd_YOUR_TOKEN_HERE",
99
103
  "ENABLE_MCP_APPS": "true"
@@ -126,11 +130,13 @@ If you're not sure where to put the JSON configuration above, here's where each
126
130
  1. Open Figma Desktop normally (no special flags needed) and open a file
127
131
  2. Go to **Plugins → Development → Import plugin from manifest...**
128
132
  3. Select `~/.figma-console-mcp/plugin/manifest.json` (stable path, auto-created by the MCP server)
129
- 4. Run the plugin in your Figma file — the bootloader finds the MCP server and loads the latest UI automatically
133
+ 4. Run the plugin in your Figma file — it scans ports 9223–9232 and connects automatically to your running MCP server
130
134
 
131
- > One-time setup. The plugin uses a bootloader that dynamically loads fresh code from the MCP server no need to re-import when the server updates.
132
-
133
- > **Upgrading from v1.14 or earlier?** Your existing plugin still works, but to get the bootloader benefits (no more re-importing), do one final re-import from `~/.figma-console-mcp/plugin/manifest.json`. The path is created automatically when the MCP server starts. Run `npx figma-console-mcp@latest --print-path` to see it. After this one-time upgrade, you're done forever.
135
+ > **Heads-up on plugin updates.** Figma caches plugin files (`code.js` and `ui.html`) at the application level. The MCP server refreshes the files at `~/.figma-console-mcp/plugin/` on every startup, but Figma keeps using its cached copy until you re-import the manifest.
136
+ >
137
+ > **Re-importing is _required_ only when a release notes entry says so** typically when the plugin adds a new method the server needs (e.g. v1.22.4, v1.10.0). For most upgrades the new server stays wire-compatible with the previous plugin, and re-importing is **optional**: you'll still get every functional change, just not the cosmetic plugin-side touches (status-pill copy, `pluginVersion` reporting).
138
+ >
139
+ > When you do re-import: Plugins → Manage plugins → re-import `~/.figma-console-mcp/plugin/manifest.json`. The stable path never changes, so it's a one-click step.
134
140
 
135
141
  #### Step 4: Restart Your MCP Client
136
142
 
@@ -156,7 +162,7 @@ Create a simple frame with a blue background
156
162
 
157
163
  **Best for:** Developers who want to modify source code or contribute to the project.
158
164
 
159
- **What you get:** Same 100+ tools as NPX, plus full source code access.
165
+ **What you get:** Same 103 tools as NPX, plus full source code access.
160
166
 
161
167
  #### Quick Setup
162
168
 
@@ -245,7 +251,7 @@ Ready for design creation? Follow the [NPX Setup](#-npx-setup-recommended) guide
245
251
 
246
252
  **Best for:** Using Claude.ai, v0, Replit, or Lovable to create and modify Figma designs — no Node.js required.
247
253
 
248
- **What you get:** 83 tools including full write access — design creation, variable management, component instantiation, and all REST API tools. Only real-time monitoring (console logs, selection tracking, document changes) requires Local Mode.
254
+ **What you get:** 95 tools including full write access — design creation, variable management, component instantiation, and all REST API tools. Only real-time monitoring (console logs, selection tracking, document changes) requires Local Mode.
249
255
 
250
256
  #### Prerequisites
251
257
 
@@ -302,7 +308,7 @@ AI Client → Cloud MCP Server → Durable Object Relay → Desktop Bridge Plugi
302
308
  | Feature | NPX (Recommended) | Cloud Mode | Local Git | Remote SSE |
303
309
  |---------|-------------------|------------|-----------|------------|
304
310
  | **Setup time** | ~10 minutes | ~5 minutes | ~15 minutes | ~2 minutes |
305
- | **Total tools** | **100+** | **83** | **100+** | **9** (read-only) |
311
+ | **Total tools** | **103** | **95** | **103** | **9** (read-only) |
306
312
  | **Design creation** | ✅ | ✅ | ✅ | ❌ |
307
313
  | **Variable management** | ✅ | ✅ | ✅ | ❌ |
308
314
  | **Component instantiation** | ✅ | ✅ | ✅ | ❌ |
@@ -317,7 +323,7 @@ AI Client → Cloud MCP Server → Durable Object Relay → Desktop Bridge Plugi
317
323
  | **Automatic updates** | ✅ (`@latest`) | ✅ | Manual (`git pull`) | ✅ |
318
324
  | **Source code access** | ❌ | ❌ | ✅ | ❌ |
319
325
 
320
- > **Key insight:** Remote SSE is read-only. Cloud Mode adds write access for web AI clients without Node.js. NPX/Local Git give the full 100+ tools.
326
+ > **Key insight:** Remote SSE is read-only. Cloud Mode adds write access for web AI clients without Node.js. NPX/Local Git give the full 103 tools.
321
327
 
322
328
  **📖 [Complete Feature Comparison](docs/mode-comparison.md)**
323
329
 
@@ -370,9 +376,11 @@ When you first use design system tools:
370
376
 
371
377
  ## 🛠️ Available Tools
372
378
 
373
- ### Navigation & Status
374
- - `figma_navigate` - Open Figma URLs
375
- - `figma_get_status` - Check connection status
379
+ ### Status & Diagnostics
380
+ - `figma_get_status` - Check WebSocket bridge connection and file context
381
+ - `figma_diagnose` - Designer-readable health check + setup guidance
382
+ - `figma_reconnect` - Force reconnect to the Desktop Bridge plugin
383
+ - `figma_navigate` - Switch the active file target among connected plugins (Local), or navigate the cloud headless browser (Remote/Cloud)
376
384
 
377
385
  ### Console Debugging
378
386
  - `figma_get_console_logs` - Retrieve console logs
@@ -417,6 +425,10 @@ When you first use design system tools:
417
425
  - `figma_check_design_parity` - Compare Figma component specs against code implementation, producing a scored diff report with actionable fix items
418
426
  - `figma_generate_component_doc` - Generate platform-agnostic markdown documentation by merging Figma design data with code-side info
419
427
 
428
+ ### 🔁 Token Sync (Local Mode + Cloud Mode)
429
+ - `figma_export_tokens` - **Export Figma variables to design token files in your codebase.** Canonical DTCG JSON + CSS custom properties out of the box. Diff-aware merge against existing source files (only writes what changed). `tokens.config.json` autodiscovery means zero-arg calls after first setup. Replaces Style Dictionary and Tokens Studio's export pipeline for popular styling methods.
430
+ - `figma_import_tokens` - **Push code-side token edits back to Figma.** Diff against current Figma state, apply only the deltas. Round-trip safe — Figma variable IDs preserved in DTCG `$extensions["figma-console-mcp"]` so renames on either side don't create duplicates. Dry-run default for safety. In Cloud Mode, pass tokens inline via `payload` or `files` (no local filesystem access).
431
+
420
432
  ### 🔧 Variable Management (Local Mode + Cloud Mode)
421
433
  - `figma_create_variable_collection` - Create new variable collections with modes
422
434
  - `figma_create_variable` - Create COLOR, FLOAT, STRING, or BOOLEAN variables
@@ -651,7 +663,7 @@ The **Figma Desktop Bridge** plugin is the recommended way to connect Figma to t
651
663
  - The MCP server communicates via **WebSocket** through the Desktop Bridge plugin
652
664
  - The server tries port 9223 first, then automatically falls back through ports 9224–9232 if needed
653
665
  - The plugin scans all ports in the range and connects to every active server it finds
654
- - All 100+ tools work through the WebSocket transport
666
+ - All 103 tools work through the WebSocket transport
655
667
 
656
668
  **Multiple files:** The WebSocket server supports multiple simultaneous plugin connections — one per open Figma file. Each connection is tracked by file key with independent state (selection, document changes, console logs).
657
669
 
@@ -693,9 +705,11 @@ When two processes tried to start the MCP server (e.g., Claude Desktop's Chat ta
693
705
 
694
706
  **Nothing.** Multi-instance support is fully automatic:
695
707
  - Each MCP server claims the next available port in the range
696
- - The bootloader plugin scans all ports and connects to every active server
708
+ - The Desktop Bridge plugin scans all ports and connects to every active server
697
709
  - Orphaned processes from closed tabs are automatically cleaned up on startup
698
- - No re-importing, no manual port management
710
+ - No manual port management — the plugin already scans the whole range
711
+
712
+ (Re-importing the manifest is only required when the plugin code itself changes — e.g. after a package update. Port-range scanning is already in the shipped plugin.)
699
713
 
700
714
  ---
701
715
 
@@ -788,27 +802,31 @@ The architecture supports adding new apps with minimal boilerplate — each app
788
802
 
789
803
  ## 🛤️ Roadmap
790
804
 
791
- **Current Status:** v1.23.0 (Stable) - Production-ready with version history & time-series awareness, FigJam + Slides support, Cloud Write Relay, Design System Kit, WebSocket-only connectivity, smart multi-file tracking, 100+ tools, Comments API, and MCP Apps
805
+ **Current Status:** v1.28.1 (Stable) - Production-ready with 10-format token export pipeline (DTCG, CSS, Tailwind v4, Tailwind v3, SCSS, TS module, JSON flat/nested, Style Dictionary v3, Tokens Studio), bidirectional Figma↔code token sync, version history & time-series awareness, FigJam + Slides support, Cloud Write Relay, Design System Kit, WebSocket-only connectivity, smart multi-file tracking, **103 tools** (Local) / **95 tools** (Cloud) / **9 tools** (Remote read-only), Comments API, cross-MCP identity disambiguation, and MCP Apps.
792
806
 
793
807
  **Recent Releases:**
794
- - [x] **v1.17.0** - Figma Slides Support: 15 new tools for managing presentations slides, transitions, content, reordering, and navigation. Inspired by Toni Haidamous (PR #11).
795
- - [x] **v1.16.0** - FigJam Support: 9 new tools for creating and reading FigJam boards stickies, flowcharts, tables, code blocks, and connection graphs. Community-contributed by klgral and lukemoderwell.
796
- - [x] **v1.12.0** - Cloud Write Relay: web AI clients (Claude.ai, v0, Replit, Lovable) can create and modify Figma designs via cloud relay pairing no Node.js required
797
- - [x] **v1.11.2** - Screenshot fix: `figma_take_screenshot` works without explicit `nodeId` in WebSocket mode
798
- - [x] **v1.11.1** - Doc generator fixes: clean markdown tables, Storybook links, property metadata filtering
799
- - [x] **v1.11.0** - Complete CDP removal, improved multi-file active tracking with focus detection
800
- - [x] **v1.10.0** - Multi-instance support (dynamic port fallback 9223–9232, multi-connection plugin, instance discovery)
801
- - [x] **v1.9.0** - Figma Comments tools, improved port conflict detection
802
- - [x] **v1.8.0** - WebSocket Bridge transport (CDP-free connectivity), real-time selection/document tracking, `figma_get_selection` + `figma_get_design_changes` tools
803
- - [x] **v1.7.0** - MCP Apps (Token Browser, Design System Dashboard), batch variable operations, design-code parity tools
804
- - [x] **v1.5.0** - Node manipulation tools, component property management, component set arrangement
805
- - [x] **v1.3.0** - Design creation via `figma_execute`, variable CRUD operations
808
+ - [x] **v1.28.1** - Bug fix patch surfacing from live-fire testing of the v1.28.0 formatters against multi-tier semantic-token design systems. Fixes: Tailwind v3 emitted empty `module.exports` for alias-only sets (now resolves alias chains to literal values); TypeScript module + JSON flat + JSON nested formatters emitted `"{alias.path}"` strings as literal values (now resolves); Tailwind v4 namespace-prefix doubling (`--color-theme-color-X` is now `--color-theme-X`). Adds `resolveAliasChain` public helper. 1151 tests still passing.
809
+ - [x] **v1.28.0** - Full formatter coverage for `figma_export_tokens`. Seven new output formats: Tailwind v4 `@theme inline`, Tailwind v3 config, SCSS variables, TypeScript module, JSON flat/nested, Style Dictionary v3, Tokens Studio multi-file. Combined with DTCG + CSS variables, ships **10 fully-implemented output formats** with zero third-party build-tool dependencies. Tool description updated, docs/tools.md table all-green. 22 new Jest tests, 1151 total passing.
810
+ - [x] **v1.27.1** - Documentation patch. No code behavior changes. Sweeps stale "Phase 1 ships with DTCG only" claims across tool descriptions, error messages, and internal comments after CSS variables formatter and the apply phase shipped during the v1.27.0 dev cycle. Refreshes README banner + capability bullets + roadmap. Adds `Phase 3.5: Stale-Content Audit` to the release runbook so future releases get a strict pre-publish grep sweep across banners, tool descriptions, error messages, source comments, and tool-count consistency.
811
+ - [x] **v1.27.0** - Bidirectional token sync: `figma_export_tokens` + `figma_import_tokens` replace Style Dictionary and Tokens Studio's export pipeline. Canonical DTCG JSON + CSS custom properties. Diff-aware merge with round-trip ID preservation via `$extensions["figma-console-mcp"]`. Apply phase pushes hex-value edits back to Figma via the plugin bridge. Verified end-to-end against 713-token + 280-token design systems.
812
+ - [x] **v1.26.0** - Internal cleanup + cross-MCP identity: Local-mode CDP/Puppeteer transport removed entirely (WebSocket-only). `figma_diagnose` tool for designer-readable health checks. Every response tagged `_mcp: "figma-console-mcp"`; errors prefixed `[figma-console-mcp]` so attribution is unambiguous when running multiple Figma MCPs. Plugin status pill now reads `Local · ready` / `Cloud · ready` / `Local + Cloud · ready`. Net diff: −7,299 lines, plugin re-import optional.
813
+ - [x] **v1.25.0** - Description + Dev Mode annotation tracking in `figma_diff_versions` via plugin session buffer. Description and annotation edits made during a session now appear in diff output (REST API doesn't return these — bridged through the plugin's `documentchange` listener).
814
+ - [x] **v1.24.0** - Honest scope coverage on version diffs. `scope_coverage` object surfaces what `figma_diff_versions` does and doesn't track; always-on coverage warnings prevent silent invisibility on token-value changes and component-instance placements.
815
+ - [x] **v1.23.0** - Version History & Time-Series Awareness: 6 new tools (list versions, snapshot any past version, diff two versions for component/binding deltas, generate markdown changelogs, trace property/variant introduction via binary-search blame walker). Author attribution flows from autosaves, not just labeled releases.
816
+ - [x] **v1.17.0** - Figma Slides support: 15 tools for managing presentations.
817
+ - [x] **v1.16.0** - FigJam support: 9 tools for creating and reading FigJam boards.
818
+ - [x] **v1.12.0** - Cloud Write Relay: web AI clients can create and modify Figma designs without Node.js.
819
+ - [x] **v1.11.0** - Complete CDP removal, improved multi-file active tracking with focus detection.
820
+ - [x] **v1.10.0** - Multi-instance support (dynamic port fallback 9223–9232, multi-connection plugin, instance discovery).
821
+ - [x] **v1.9.0** - Figma Comments tools, improved port conflict detection.
822
+ - [x] **v1.8.0** - WebSocket Bridge transport (CDP-free connectivity), real-time selection/document tracking.
823
+ - [x] **v1.7.0** - MCP Apps (Token Browser, Design System Dashboard), batch variable operations, design-code parity tools.
806
824
 
807
825
  **Coming Next:**
826
+ - [ ] **Token sync — parsers + import-side apply expansion** - Parsers for non-DTCG input (Tokens Studio, CSS vars, Tailwind v4, Tailwind v3 config, SCSS, Style Dictionary v3, JSON flat/nested). Plus `toCreate` apply orchestration, `toDelete` for `replace` strategy, alias-target updates, and cross-library variable resolution via `getVariableByIdAsync` so cross-library aliases render as real `var(--target)` references instead of comments.
808
827
  - [ ] **Component template library** - Common UI pattern generation
809
828
  - [ ] **Visual regression testing** - Screenshot diff capabilities
810
829
  - [ ] **Design linting** - Automated compliance and accessibility checks
811
- - [ ] **AI enhancements** - Intelligent component suggestions and auto-layout optimization
812
830
 
813
831
  **📖 [Full Roadmap](docs/ROADMAP.md)**
814
832