Figma MCP rejects non-whitelisted agents, including OpenCode. This almost no-dependncy code allows to authenticate and create the mcp-auth.json file.
For context and alternatives, see anomalyco/opencode#988
npm i
npm run build
npm start https://mcp.figma.com/mcpThen move or merge mcp-auth.json into ~/.local/share/opencode/mcp-auth.json
This was only tested with Figma.