Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add mp3wizard/figma-console-mcp --skill code-connectgit clone --depth 1 https://github.com/mp3wizard/figma-console-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/mp3wizard/figma-console-mcp/code-connect)<a href="https://agentmods.dev/skills/mp3wizard/figma-console-mcp/code-connect"><img src="https://agentmods.dev/badge/skills/mp3wizard/figma-console-mcp/code-connect/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/mp3wizard/figma-console-mcp/code-connect"><img src="https://agentmods.dev/badge/skills/mp3wizard/figma-console-mcp/code-connect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00132 | $0.02522 |
| Opus 5.5 | $0.00053 | $0.01009 |
| Sonnet 5.5 | $0.00026 | $0.00504 |
| Haiku 4.5 | $0.00013 | $0.00252 |
Grade A, and why
code-connect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
100% identical to code-connect — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Code Connect with the repo's real components
Tools (Local Mode): these tools are in the
codeconnecttoolset. If they aren't in your tool list, callfigma_enable_toolsets({ toolsets: ["codeconnect"] })once at the start. Call them directly:figma_callwon't run figma_generate_code_connect (it writes files) or the preview/publish/unpublish tools (they run code from the repo). If your client doesn't refresh its tool list after enabling a toolset, ask the person to addcodeconnecttoFIGMA_TOOLSETSin the server's environment and restart the client. Cloud Mode has generate, map and audit only, working on file contents you pass infiles; nothing is written there.
Code Connect links a Figma component to the code component that implements it, so Dev Mode shows a real snippet (<Button size="lg" disabled />) instead of generated markup. The source of truth is files in the repo: .figma.ts templates plus figma.config.json. Figma's public APIs can't read mappings published from elsewhere or made in Figma's UI, so always work from the repo.
0. What you need
- repoRoot: the absolute path of the repository (or
FIGMA_CODE_CONNECT_ROOTin the server env). In a monorepo, pass the workspace root asrepoRootand the package folder asproject. - Figma access: the Desktop Bridge plugin open in the library file (any plan, published or not), or
FIGMA_ACCESS_TOKENfor REST reads. - For preview and publish only:
@figma/code-connectinstalled in the repo (npm install --save-dev @figma/code-connect). These tools never download it. Ask the person before you install anything. Publishing also needs a personal access token (figd_…) with Code Connect: Write and File content: Read, set asFIGMA_ACCESS_TOKENin the server environment. No tool takes a token argument; never put one in a tool call or a file.
1. Set up the project once
figma.config.json in the project folder. Always set include explicitly:
{ "codeConnect": { "include": ["src/**/*.figma.ts"], "label": "React" } }
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today First seen · 83 lines · 132 tokens per session scan A 6361d45d6060
code-connect is a skill published in the GitHub repository mp3wizard/figma-console-mcp (1 stars, last pushed yesterday), licensed MIT. It adds 132 tokens to every session and 2,522 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to code-connect, differing in 0 lines, and is treated as a copy.
code-connect compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| code-connectmp3wizard/figma-console-mcp | Skill | 1 | yesterday | MIT | A | 132 | Claude Code, Codex |
| webgl-holographic-foilnexu-io/open-design | Skill | 110k | today | Apache-2.0 | A | 41 | Claude Code, Codex |
| html-ppt-hermes-cyber-terminalnexu-io/open-design | Skill | 110k | today | Apache-2.0 | A | 53 | Claude Code, Codex |
| html-ppt-taste-brutalistnexu-io/open-design | Skill | 110k | today | Apache-2.0 | A | 78 | Claude Code, Codex |
| visual-ralphYeachan-Heo/oh-my-codex | Skill | 34k | today | MIT | A | 52 | Codex |
| glance-canonical-layoutsandroid/skills | Skill | 11k | 7d ago | Apache-2.0 | A | 56 | Claude Code |
| prototype-webnexu-io/html-anything | Skill | 17k | yesterday | Apache-2.0 | A | 24 | Claude Code, Codex |