figma-console-mcp 1.2.5 β 1.4.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 +58 -2
- package/dist/apps/token-browser/mcp-app.html +378 -0
- package/dist/apps/token-browser/server.d.ts +26 -0
- package/dist/apps/token-browser/server.d.ts.map +1 -0
- package/dist/apps/token-browser/server.js +137 -0
- package/dist/apps/token-browser/server.js.map +1 -0
- package/dist/apps/token-browser.d.ts +30 -0
- package/dist/apps/token-browser.d.ts.map +1 -0
- package/dist/apps/token-browser.js +680 -0
- package/dist/apps/token-browser.js.map +1 -0
- package/dist/cloudflare/apps/hello-world/server.js +63 -0
- package/dist/cloudflare/apps/token-browser/server.js +136 -0
- package/dist/cloudflare/apps/token-browser.js +679 -0
- package/dist/cloudflare/core/figma-api.js +111 -5
- package/dist/cloudflare/core/figma-desktop-connector.js +60 -8
- package/dist/cloudflare/core/figma-tools.js +36 -6
- package/dist/cloudflare/index.js +1204 -91
- package/dist/core/figma-api.d.ts +41 -0
- package/dist/core/figma-api.d.ts.map +1 -1
- package/dist/core/figma-api.js +111 -5
- package/dist/core/figma-api.js.map +1 -1
- package/dist/core/figma-desktop-connector.d.ts.map +1 -1
- package/dist/core/figma-desktop-connector.js +60 -8
- package/dist/core/figma-desktop-connector.js.map +1 -1
- package/dist/core/figma-tools.d.ts.map +1 -1
- package/dist/core/figma-tools.js +36 -6
- package/dist/core/figma-tools.js.map +1 -1
- package/dist/local.d.ts.map +1 -1
- package/dist/local.js +68 -1
- package/dist/local.js.map +1 -1
- package/package.json +9 -3
package/README.md
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
# Figma Console MCP Server
|
|
2
2
|
|
|
3
3
|
[](https://modelcontextprotocol.io/)
|
|
4
|
+
[](https://www.npmjs.com/package/figma-console-mcp)
|
|
4
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
|
+
[](https://docs.figma-console-mcp.southleft.com)
|
|
5
7
|
|
|
6
|
-
> **Model Context Protocol server
|
|
8
|
+
> **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**.
|
|
7
9
|
|
|
8
10
|
## What is this?
|
|
9
11
|
|
|
@@ -516,6 +518,59 @@ The **Figma Desktop Bridge** plugin enables powerful capabilities:
|
|
|
516
518
|
|
|
517
519
|
---
|
|
518
520
|
|
|
521
|
+
## π§© MCP Apps (Experimental)
|
|
522
|
+
|
|
523
|
+
Figma Console MCP includes support for **MCP Apps** β rich interactive UI experiences that render directly inside any MCP client that supports the [MCP Apps protocol extension](https://github.com/anthropics/anthropic-cookbook/tree/main/misc/model_context_protocol/ext-apps). Built with the official [`@modelcontextprotocol/ext-apps`](https://www.npmjs.com/package/@modelcontextprotocol/ext-apps) SDK.
|
|
524
|
+
|
|
525
|
+
> **What are MCP Apps?** Traditional MCP tools return text or images to the AI. MCP Apps go further β they render interactive HTML interfaces inline in the chat, allowing users to browse, filter, and interact with data directly without consuming AI context.
|
|
526
|
+
|
|
527
|
+
### Token Browser
|
|
528
|
+
|
|
529
|
+
The first MCP App is the **Token Browser** β an interactive design token explorer.
|
|
530
|
+
|
|
531
|
+
**Usage:** Ask Claude to "browse design tokens" or "show me the design tokens" for any Figma file.
|
|
532
|
+
|
|
533
|
+
**Features:**
|
|
534
|
+
- Browse all tokens organized by collection with expandable sections
|
|
535
|
+
- Filter by type (Colors, Numbers, Strings) and search by name/description
|
|
536
|
+
- Per-collection mode columns (Light, Dark, Custom) matching Figma's Variables panel
|
|
537
|
+
- Color swatches, alias resolution, and click-to-copy on any value
|
|
538
|
+
- Works without Enterprise plan via Desktop Bridge (local mode)
|
|
539
|
+
|
|
540
|
+
**Enabling MCP Apps:**
|
|
541
|
+
|
|
542
|
+
MCP Apps are gated behind an environment variable. Add to your MCP config:
|
|
543
|
+
|
|
544
|
+
```json
|
|
545
|
+
{
|
|
546
|
+
"mcpServers": {
|
|
547
|
+
"figma-console-local": {
|
|
548
|
+
"command": "node",
|
|
549
|
+
"args": ["/path/to/figma-console-mcp/dist/local.js"],
|
|
550
|
+
"env": {
|
|
551
|
+
"FIGMA_ACCESS_TOKEN": "figd_YOUR_TOKEN_HERE",
|
|
552
|
+
"ENABLE_MCP_APPS": "true"
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
```
|
|
558
|
+
|
|
559
|
+
> **Note:** MCP Apps require an MCP client with [ext-apps protocol](https://github.com/anthropics/anthropic-cookbook/tree/main/misc/model_context_protocol/ext-apps) support (e.g. Claude Desktop). This feature is experimental and the protocol may evolve.
|
|
560
|
+
|
|
561
|
+
### Future MCP Apps Roadmap
|
|
562
|
+
|
|
563
|
+
The Token Browser is the first of several planned MCP Apps:
|
|
564
|
+
|
|
565
|
+
- **Component Gallery** β Visual browser for searching and previewing components with variant exploration
|
|
566
|
+
- **Style Inspector** β Interactive panel for exploring color, text, and effect styles with live previews
|
|
567
|
+
- **Variable Diff Viewer** β Side-by-side comparison of token values across modes and branches
|
|
568
|
+
- **Design System Dashboard** β Overview of your design system health with coverage metrics
|
|
569
|
+
|
|
570
|
+
The architecture supports adding new apps with minimal boilerplate β each app is a self-contained module with its own server-side tool registration and client-side UI.
|
|
571
|
+
|
|
572
|
+
---
|
|
573
|
+
|
|
519
574
|
## π Advanced Topics
|
|
520
575
|
|
|
521
576
|
- **[Setup Guide](docs/SETUP.md)** - Complete setup guide for all MCP clients
|
|
@@ -593,7 +648,8 @@ MIT - See [LICENSE](LICENSE) file for details.
|
|
|
593
648
|
|
|
594
649
|
## π Links
|
|
595
650
|
|
|
596
|
-
-
|
|
651
|
+
- π **[Documentation Site](https://docs.figma-console-mcp.southleft.com)** β Complete guides, tutorials, and API reference
|
|
652
|
+
- π [Local Docs](docs/) β Documentation source files
|
|
597
653
|
- π [Report Issues](https://github.com/southleft/figma-console-mcp/issues)
|
|
598
654
|
- π¬ [Discussions](https://github.com/southleft/figma-console-mcp/discussions)
|
|
599
655
|
- π [Model Context Protocol](https://modelcontextprotocol.io/)
|