@tekyzinc/gsd-t 2.54.11 → 2.55.11

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 (2) hide show
  1. package/bin/gsd-t.js +41 -0
  2. package/package.json +1 -1
package/bin/gsd-t.js CHANGED
@@ -517,6 +517,44 @@ function configureAutoRouteHook(scriptPath) {
517
517
  }
518
518
  }
519
519
 
520
+ // ─── Figma MCP ──────────────────────────────────────────────────────────────
521
+
522
+ const FIGMA_MCP_URL = "https://mcp.figma.com/mcp";
523
+ const CLAUDE_JSON = path.join(os.homedir(), ".claude.json");
524
+
525
+ function configureFigmaMcp() {
526
+ // Check ~/.claude.json (where `claude mcp add` stores servers)
527
+ try {
528
+ if (fs.existsSync(CLAUDE_JSON)) {
529
+ const cj = JSON.parse(fs.readFileSync(CLAUDE_JSON, "utf8"));
530
+ if (cj.mcpServers && cj.mcpServers.figma) {
531
+ info("Figma MCP already configured");
532
+ return;
533
+ }
534
+ }
535
+ } catch { /* ignore parse errors */ }
536
+
537
+ // Also check settings.json (legacy location)
538
+ const settings = readSettingsJson() || {};
539
+ if (settings.mcpServers && settings.mcpServers.figma) {
540
+ info("Figma MCP already configured (settings.json)");
541
+ return;
542
+ }
543
+
544
+ // Add via `claude mcp add` for proper OAuth registration
545
+ try {
546
+ execFileSync("claude", ["mcp", "add", "--transport", "http", "-s", "user", "figma", FIGMA_MCP_URL], {
547
+ encoding: "utf8",
548
+ timeout: 10000,
549
+ });
550
+ success("Figma MCP configured (remote: " + FIGMA_MCP_URL + ")");
551
+ info("Authenticate with Figma on next session start (browser OAuth)");
552
+ } catch {
553
+ warn("Could not auto-configure Figma MCP — add manually:");
554
+ log(` ${DIM}$${RESET} claude mcp add --transport http -s user figma ${FIGMA_MCP_URL}`);
555
+ }
556
+ }
557
+
520
558
  // ─── Utility Scripts ─────────────────────────────────────────────────────────
521
559
 
522
560
  const UTILITY_SCRIPTS = ["gsd-t-tools.js", "gsd-t-statusline.js", "gsd-t-event-writer.js", "gsd-t-dashboard-server.js", "gsd-t-dashboard.html"];
@@ -832,6 +870,9 @@ function doInstall(opts = {}) {
832
870
  heading("Auto-Route (UserPromptSubmit)");
833
871
  installAutoRoute();
834
872
 
873
+ heading("Figma MCP (Design-to-Code)");
874
+ configureFigmaMcp();
875
+
835
876
  heading("Utility Scripts");
836
877
  installUtilityScripts();
837
878
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekyzinc/gsd-t",
3
- "version": "2.54.11",
3
+ "version": "2.55.11",
4
4
  "description": "GSD-T: Contract-Driven Development for Claude Code — 51 slash commands with headless CI/CD mode, graph-powered code analysis, real-time agent dashboard, execution intelligence, task telemetry, doc-ripple enforcement, backlog management, impact analysis, test sync, milestone archival, and PRD generation",
5
5
  "author": "Tekyz, Inc.",
6
6
  "license": "MIT",