figma-rust-mcp 2.8.2 → 2.8.3

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 (3) hide show
  1. package/README.md +17 -13
  2. package/bin/figma-mcp.js +11 -11
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -51,22 +51,26 @@ npx figma-rust-mcp
51
51
 
52
52
  This automatically downloads the prebuilt native binary for your architecture and starts the server.
53
53
 
54
- Or if configuring in **Cursor / Claude Desktop / Windsurf / Antigravity MCP Settings**:
54
+ ---
55
55
 
56
- ```json
57
- {
58
- "mcpServers": {
59
- "figma-rust-mcp": {
60
- "command": "npx",
61
- "args": ["-y", "figma-rust-mcp", "--stdio"]
62
- }
63
- }
64
- }
56
+ ### 2. Auto-Start as Background Service (Recommended for SSE)
57
+
58
+ If you use SSE transport across multiple AI IDEs (Antigravity, Claude, Cursor, Windsurf) and want `figma-rust-mcp` to **automatically start on OS login and keep running in the background**:
59
+
60
+ ```bash
61
+ # Install and start auto-start background service (macOS LaunchAgent, Linux systemd, Windows Task Scheduler)
62
+ npx figma-rust-mcp --install-service
63
+
64
+ # Check background service status
65
+ npx figma-rust-mcp --service-status
66
+
67
+ # Uninstall service
68
+ npx figma-rust-mcp --uninstall-service
65
69
  ```
66
70
 
67
71
  ---
68
72
 
69
- ### 2. Or Build from Source (Rust)
73
+ ### 3. Or Build from Source (Rust)
70
74
 
71
75
  Prerequisites: [Rust toolchain](https://rustup.rs/) (`cargo >= 1.80`).
72
76
 
@@ -79,7 +83,7 @@ cargo build --release
79
83
 
80
84
  ---
81
85
 
82
- ### 3. Install the Figma Plugin
86
+ ### 4. Install the Figma Plugin
83
87
 
84
88
  1. Open **Figma Desktop**.
85
89
  2. Go to **Plugins** → **Development** → **Import plugin from manifest...**
@@ -89,7 +93,7 @@ cargo build --release
89
93
 
90
94
  ---
91
95
 
92
- ### 4. Configure Your MCP Client
96
+ ### 5. Configure Your MCP Client
93
97
 
94
98
  #### Google Antigravity (SSE Transport - Recommended)
95
99
  Add to your `~/.gemini/config/mcp_config.json` or project `.agents/mcp_config.json`:
package/bin/figma-mcp.js CHANGED
@@ -298,10 +298,10 @@ WantedBy=default.target
298
298
  // Start it immediately too
299
299
  try { execSync(`schtasks /Run /TN "${taskName}"`, { stdio: 'pipe' }); } catch (_) {}
300
300
 
301
- console.log(`\x1b[32m✓ figma-mcp Windows Task installed!\x1b[0m`);
301
+ console.log(`\x1b[32m✓ figma-rust-mcp Windows Task installed!\x1b[0m`);
302
302
  console.log(` Task: ${taskName}`);
303
303
  console.log(`\n\x1b[36mThe server will now start automatically on every login.\x1b[0m`);
304
- console.log(`\x1b[36mTo uninstall: npx figma-mcp --uninstall-service\x1b[0m`);
304
+ console.log(`\x1b[36mTo uninstall: npx figma-rust-mcp --uninstall-service\x1b[0m`);
305
305
 
306
306
  } else {
307
307
  console.error(`\x1b[31mUnsupported platform: ${platform}\x1b[0m`);
@@ -327,7 +327,7 @@ async function uninstallService() {
327
327
  try { execSync(`launchctl unload -w "${plistPath}"`, { stdio: 'inherit' }); } catch (_) {}
328
328
  fs.unlinkSync(plistPath);
329
329
 
330
- console.log(`\x1b[32m✓ figma-mcp service uninstalled.\x1b[0m`);
330
+ console.log(`\x1b[32m✓ figma-rust-mcp service uninstalled.\x1b[0m`);
331
331
 
332
332
  } else if (platform === 'linux') {
333
333
  try { execSync(`systemctl --user disable --now figma-mcp`, { stdio: 'inherit' }); } catch (_) {}
@@ -335,13 +335,13 @@ async function uninstallService() {
335
335
  if (fs.existsSync(servicePath)) fs.unlinkSync(servicePath);
336
336
  try { execSync(`systemctl --user daemon-reload`, { stdio: 'inherit' }); } catch (_) {}
337
337
 
338
- console.log(`\x1b[32m✓ figma-mcp service uninstalled.\x1b[0m`);
338
+ console.log(`\x1b[32m✓ figma-rust-mcp service uninstalled.\x1b[0m`);
339
339
 
340
340
  } else if (platform === 'win32') {
341
341
  const taskName = 'FigmaMCPServer';
342
342
  try { execSync(`schtasks /Delete /F /TN "${taskName}"`, { stdio: 'inherit' }); } catch (_) {}
343
343
 
344
- console.log(`\x1b[32m✓ figma-mcp Windows Task removed.\x1b[0m`);
344
+ console.log(`\x1b[32m✓ figma-rust-mcp Windows Task removed.\x1b[0m`);
345
345
 
346
346
  } else {
347
347
  console.error(`\x1b[31mUnsupported platform: ${platform}\x1b[0m`);
@@ -379,7 +379,7 @@ async function main() {
379
379
  const binPath = await findOrDownloadBinary();
380
380
  await installService(binPath);
381
381
  } catch (err) {
382
- console.error(`\x1b[31m[figma-mcp error]\x1b[0m ${err.message}`);
382
+ console.error(`\x1b[31m[figma-rust-mcp error]\x1b[0m ${err.message}`);
383
383
  process.exit(1);
384
384
  }
385
385
  return;
@@ -389,7 +389,7 @@ async function main() {
389
389
  try {
390
390
  await uninstallService();
391
391
  } catch (err) {
392
- console.error(`\x1b[31m[figma-mcp error]\x1b[0m ${err.message}`);
392
+ console.error(`\x1b[31m[figma-rust-mcp error]\x1b[0m ${err.message}`);
393
393
  process.exit(1);
394
394
  }
395
395
  return;
@@ -398,11 +398,11 @@ async function main() {
398
398
  if (args.includes('--service-status')) {
399
399
  const installed = isServiceInstalled();
400
400
  if (installed) {
401
- console.log('\x1b[32m✓ figma-mcp service is installed.\x1b[0m');
402
- console.log(' To uninstall: npx figma-mcp --uninstall-service');
401
+ console.log('\x1b[32m✓ figma-rust-mcp service is installed.\x1b[0m');
402
+ console.log(' To uninstall: npx figma-rust-mcp --uninstall-service');
403
403
  } else {
404
- console.log('\x1b[33m✗ figma-mcp service is NOT installed.\x1b[0m');
405
- console.log(' To install: npx figma-mcp --install-service');
404
+ console.log('\x1b[33m✗ figma-rust-mcp service is NOT installed.\x1b[0m');
405
+ console.log(' To install: npx figma-rust-mcp --install-service');
406
406
  }
407
407
  return;
408
408
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "figma-rust-mcp",
3
- "version": "2.8.2",
3
+ "version": "2.8.3",
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",