figma-rust-mcp 3.0.1 → 3.0.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.
- package/package.json +1 -1
- package/plugin/code.js +11 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "figma-rust-mcp",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Claude Code to Figma — Bidirectional MCP bridge. AI draws UI on Figma canvas, reads designs back. Works with Claude, Cursor, VS Code, Windsurf, Antigravity. No API key needed.",
|
|
5
5
|
"mcpName": "io.github.BuiHung1612/figma-mcp",
|
|
6
6
|
"type": "module",
|
package/plugin/code.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// figma-mcp — Figma Plugin main thread v1.2.1
|
|
2
2
|
// Handles both WRITE (draw UI) and READ (extract design) operations.
|
|
3
3
|
// AUTO-GENERATED by scripts/build-plugin.js — edit plugin-src/*.js instead
|
|
4
|
-
// Generated: 2026-08-
|
|
4
|
+
// Generated: 2026-08-29T05:29:59.260Z
|
|
5
5
|
|
|
6
6
|
// ── plugin-src/utils.js ──
|
|
7
7
|
// ─── UTILS ────────────────────────────────────────────────────────────────────
|
|
@@ -1348,7 +1348,7 @@ const handlers = {};
|
|
|
1348
1348
|
|
|
1349
1349
|
handlers.status = async () => ({
|
|
1350
1350
|
connected: true,
|
|
1351
|
-
version: "3.0.
|
|
1351
|
+
version: "3.0.2",
|
|
1352
1352
|
fileName: figma.root.name,
|
|
1353
1353
|
currentPage: figma.currentPage.name,
|
|
1354
1354
|
pageCount: figma.root.children.length,
|
|
@@ -3851,6 +3851,12 @@ handlers.get_design_context = async function(params) {
|
|
|
3851
3851
|
};
|
|
3852
3852
|
};
|
|
3853
3853
|
|
|
3854
|
+
// Aliases for developer convenience & MCP tool naming compatibility
|
|
3855
|
+
handlers.inspect_node = handlers.get_design_context;
|
|
3856
|
+
handlers.inspect = handlers.get_design_context;
|
|
3857
|
+
handlers.get_node_info = handlers.get_node_detail;
|
|
3858
|
+
handlers.node_detail = handlers.get_node_detail;
|
|
3859
|
+
|
|
3854
3860
|
// get_component_map — list every component instance in a frame with variant properties
|
|
3855
3861
|
// Use this to map Figma components to their code equivalents
|
|
3856
3862
|
handlers.get_component_map = async function(params) {
|
|
@@ -4159,6 +4165,9 @@ handlers.get_variables = async function() {
|
|
|
4159
4165
|
return { collections: collections, resolvedTokens: resolvedTokensMap };
|
|
4160
4166
|
};
|
|
4161
4167
|
|
|
4168
|
+
handlers.get_tokens = handlers.get_variable_tokens;
|
|
4169
|
+
handlers.tokens = handlers.get_variable_tokens;
|
|
4170
|
+
|
|
4162
4171
|
// ─── EXPORT ASSETS (Batch Icon & Image Extractor) ────────────────────────────
|
|
4163
4172
|
handlers.export_assets = async function(params) {
|
|
4164
4173
|
var id = params ? (params.id || params.nodeId) : null;
|