1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

メモ: VSCodeでfigma mcpをつかう with mcp.json

Posted at

結論だけ記載する。
ワークスペースレベルでしか使わないことがあるので.vscode/mcp.jsonに記載する。
あと、wsl上で作業していたので、Dev Mode MCPサーバー利用ガイド にあるようにlocalhost:3845 に接続できなかった。(ポートフォワーディングすればできるけどめんどいからやめた)

なので以下の記載で設定した。
ref: https://github.com/GLips/Figma-Context-MCP

{
  "servers": {
    "figma-dev-mode": {
      "command": "npx",
      "args": [
        "-y",
        "figma-developer-mcp",
        "--figma-api-key=${env:FIGMA_API_KEY}",
        "--stdio"
      ],
      "env": {
        "FIGMA_API_KEY": "${input:FIGMA_API_KEY}"
      }
    }
  },
  "inputs": [
    {
      "id": "FIGMA_API_KEY",
      "type": "promptString",
      "description": "Enter your Figma API key",
      "default": ""
    }
  ]
}

起動したら、token求められるので入力して完了🐦

いい感じ。

image.png

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?