feat: MCP server + Browser Yolo/CDP mode for NixOS/Linux - #29
Open
alauxui wants to merge 5 commits into
Open
Conversation
- Auto-detect NixOS and switch to browser mode on connect - Add --browser flag to figma-cli connect - detectBrowser(), isCdpBrowserRunning(), startFigmaBrowser() in cli-core.js - Render command falls back to daemon when figma-use binary unavailable - Fix daemon WebSocket Private Network Access header for Chrome 130+ Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…enshots Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds src/mcp-server.js — a Model Context Protocol server that wraps figma-cli commands so Claude can drive Figma from any project without shell access. Register once in ~/.claude/settings.json and all projects get figma_render, figma_render_batch, figma_verify, figma_tokens_preset, figma_extract, figma_import, figma_export, figma_blocks, figma_shadcn_add, figma_a11y, figma_gradient, figma_variants_from, and more. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Ala nixos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi @silships
What's included
MCP Server (
src/mcp-server.js)figma_*tools for Claude Code and any MCP client — render, tokens, variables, blocks, shadcn, verify, export, import, canvas, find, spec, and more~/.claude/settings.json, works across every projectBrowser / CDP Mode (
src/commands/setup.js,src/daemon.js)figma-cli connect --browserdrives Figma in Chrome/Chromium via CDPrender,render-batch,eval,verify) work identicallyDocs
Supporting artifacts
button-handoff.md,button-tokens.css,button-tokens.json— example output from a live Browser Yolo sessionTest plan
figma-cli connect --browserattaches to browser and returns "Connected"figma-cli render '<Frame>...</Frame>'works in CDP modenode src/mcp-server.jsstarts and Claude Code lists 21 tools