figma-console-mcp 1.3.0 → 1.4.1
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 +53 -0
- 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 +18 -5
- package/dist/cloudflare/core/figma-tools.js +6 -1
- package/dist/cloudflare/index.js +25 -0
- package/dist/core/figma-api.d.ts +3 -0
- package/dist/core/figma-api.d.ts.map +1 -1
- package/dist/core/figma-api.js +18 -5
- package/dist/core/figma-api.js.map +1 -1
- package/dist/core/figma-tools.d.ts.map +1 -1
- package/dist/core/figma-tools.js +6 -1
- package/dist/core/figma-tools.js.map +1 -1
- package/dist/local.d.ts.map +1 -1
- package/dist/local.js +72 -2
- package/dist/local.js.map +1 -1
- package/package.json +9 -3
package/README.md
CHANGED
|
@@ -518,6 +518,59 @@ The **Figma Desktop Bridge** plugin enables powerful capabilities:
|
|
|
518
518
|
|
|
519
519
|
---
|
|
520
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
|
+
|
|
521
574
|
## 🚀 Advanced Topics
|
|
522
575
|
|
|
523
576
|
- **[Setup Guide](docs/SETUP.md)** - Complete setup guide for all MCP clients
|