@muloka/figma-console-mcp 0.3.0 β 0.5.0
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 +31 -13
- package/dist/apps/design-system-dashboard/mcp-app.html +521 -0
- package/dist/apps/token-browser/mcp-app.html +410 -0
- package/dist/cloudflare/core/figma-tools.js +64 -13
- package/dist/cloudflare/core/tokens-tools.js +1 -1
- package/dist/cloudflare/core/websocket-server.js +60 -7
- package/dist/cloudflare/index.js +3 -3
- package/dist/core/port-discovery.d.ts.map +1 -1
- package/dist/core/port-discovery.js +101 -20
- package/dist/core/port-discovery.js.map +1 -1
- package/dist/core/websocket-server.d.ts +18 -1
- package/dist/core/websocket-server.d.ts.map +1 -1
- package/dist/core/websocket-server.js +44 -3
- package/dist/core/websocket-server.js.map +1 -1
- package/dist/core/write-tools.d.ts.map +1 -1
- package/dist/core/write-tools.js +98 -9
- package/dist/core/write-tools.js.map +1 -1
- package/dist/local.d.ts.map +1 -1
- package/dist/local.js +7 -3
- package/dist/local.js.map +1 -1
- package/figma-desktop-bridge/code.js +57 -27
- package/figma-desktop-bridge/ui.html +76 -7
- package/package.json +1 -1
- package/dist/browser/base.d.ts +0 -58
- package/dist/browser/base.d.ts.map +0 -1
- package/dist/browser/base.js +0 -6
- package/dist/browser/base.js.map +0 -1
- package/dist/browser/local.d.ts +0 -87
- package/dist/browser/local.d.ts.map +0 -1
- package/dist/browser/local.js +0 -318
- package/dist/browser/local.js.map +0 -1
- package/dist/core/figma-desktop-connector.d.ts +0 -312
- package/dist/core/figma-desktop-connector.d.ts.map +0 -1
- package/dist/core/figma-desktop-connector.js +0 -1298
- package/dist/core/figma-desktop-connector.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,20 +1,38 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @muloka/figma-console-mcp
|
|
2
2
|
|
|
3
|
-
>
|
|
4
|
-
>
|
|
5
|
-
> **`@muloka/figma-console-mcp`** is a fork of [southleft/figma-console-mcp](https://github.com/southleft/figma-console-mcp) with a few agent-focused adjustments not yet in upstream:
|
|
6
|
-
>
|
|
7
|
-
> - **Streamable HTTP transport** in local mode β connect multiple local clients to one running instance ([upstream #48](https://github.com/southleft/figma-console-mcp/issues/48))
|
|
8
|
-
> - **`VariableID:` alias support** in `figma_batch_create_variables` and `figma_setup_design_tokens` ([upstream #52](https://github.com/southleft/figma-console-mcp/issues/52))
|
|
9
|
-
> - **Bridge robustness** β handler timeout + dropped-response logging in the Desktop Bridge dispatch ([upstream #94](https://github.com/southleft/figma-console-mcp/issues/94))
|
|
10
|
-
>
|
|
11
|
-
> **Install this fork:** `npx @muloka/figma-console-mcp` β the `npx figma-console-mcp` commands below install *upstream* instead. Versioned independently starting at `0.1.0`; currently tracking upstream **v1.35.0**. Everything else in this README is upstream's documentation and applies as written.
|
|
3
|
+
> An independently maintained fork of [southleft/figma-console-mcp](https://github.com/southleft/figma-console-mcp).
|
|
12
4
|
|
|
13
|
-
[](https://modelcontextprotocol.io/)
|
|
14
5
|
[](https://www.npmjs.com/package/@muloka/figma-console-mcp)
|
|
6
|
+
[](https://modelcontextprotocol.io/)
|
|
15
7
|
[](https://opensource.org/licenses/MIT)
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
|
|
9
|
+
**Install:** `npx @muloka/figma-console-mcp` β the `npx figma-console-mcp` commands in the upstream documentation below install *upstream* instead. Versioned independently on a `0.x` line.
|
|
10
|
+
|
|
11
|
+
## What this fork changes
|
|
12
|
+
|
|
13
|
+
- **Honest error reporting** β the eight single-op variable/collection/mode write tools check the bridge's result envelope, so a plugin-side failure surfaces its real error text instead of a false success or a masking TypeError; batch-create failure rows identify variables that were created before the throw (`created`/`id`/`valueSet: false`)
|
|
14
|
+
- **Mode-limit safety** β `figma_setup_design_tokens` and `figma_create_variable_collection` roll the collection back on a mode-limit failure instead of orphaning it, and the setup tool returns your file's real ceiling as `planModeLimit`; the schema's stale 4-mode cap is now a 40 sanity bound (current Figma plans allow 10/20/unlimited β the runtime limit governs)
|
|
15
|
+
- **No orphaned nodes on failure** β `figma_create_connector` validates endpoints before creating (a stale nodeId can no longer strand an endpoint-less connector), and create-child / add-text-to-slide / create-table remove their partially-created node on error; batch stickies report the id of any sticky a failed row left behind. `figma_create_child` also gains the POLYGON/STAR/VECTOR types the plugin always supported
|
|
16
|
+
- **Per-command dispatch budgets** β long-running bridge commands (variable refresh and component scans at 300s, lint/audit at 120s, large component sets) no longer get silently cut off at 30s: the server's real timeout rides in each WS frame and the dispatcher honors it, on both local and cloud transports ([upstream #94](https://github.com/southleft/figma-console-mcp/issues/94) lineage)
|
|
17
|
+
- **Streamable HTTP transport** in local mode β connect multiple local clients to one running instance ([upstream #48](https://github.com/southleft/figma-console-mcp/issues/48))
|
|
18
|
+
- **`VariableID:` alias support** in `figma_batch_create_variables` and `figma_setup_design_tokens` ([upstream #52](https://github.com/southleft/figma-console-mcp/issues/52))
|
|
19
|
+
- **`page`/`pageSize` honored in `figma_get_variables` `format: "full"`** ([upstream #98](https://github.com/southleft/figma-console-mcp/issues/98))
|
|
20
|
+
- **Plugin + server build versions surfaced** in the Desktop Bridge UI and diagnostics
|
|
21
|
+
- **CI + plugin-asset guards** β Node 22/24 test matrix, a per-file typecheck ratchet, and regression tests that parse the plugin files and run Figma's own import-expression scanner against `code.js` so a comment can never again brick the plugin loader
|
|
22
|
+
|
|
23
|
+
## Relationship to upstream
|
|
24
|
+
|
|
25
|
+
- Frozen at the upstream **v1.36.0** base β this fork does **not** track upstream releases.
|
|
26
|
+
- Upstream fixes are cherry-picked selectively when they matter to this fork's use cases, with original authorship preserved (so far: the v1.38.2 orphan-reaper fix and the v1.39.1 plugin-update-banner direction fix).
|
|
27
|
+
- Bugs and requests for this fork go to [this repo's issue tracker](https://github.com/muloka/figma-console-mcp/issues) β do not file them upstream.
|
|
28
|
+
- The hosted `*.southleft.com` endpoints referenced in the documentation below are upstream's service, not this fork's.
|
|
29
|
+
- Upstream's docs site and sponsorship: [](https://docs.figma-console-mcp.southleft.com) [](https://github.com/sponsors/southleft)
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
# Figma Console MCP Server
|
|
34
|
+
|
|
35
|
+
*Upstream documentation as of the v1.36.0 base β applies as written.*
|
|
18
36
|
|
|
19
37
|
> **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**.
|
|
20
38
|
|