A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
Standalone OAuth helper for MCP servers with client allowlists (Figma, etc.) - works with OpenCode without forking
⚠️ Temporary workaround — This tool exists because Figma's MCP server currently uses an OAuth client allowlist that doesn't include OpenCode. Once Figma adds OpenCode to their allowlist (tracked in sst/opencode#5636 and sst/opencode#5583), this tool will no longer be needed.
A standalone CLI tool that authenticates with remote MCP servers that use OAuth client allowlists (e.g., Figma MCP). Once authenticated, tokens are saved to ~/.local/share/opencode/mcp-auth.json and work with vanilla OpenCode — no fork needed.
Some MCP servers (like Figma) only allow known OAuth clients to register. OpenCode registers as "OpenCode" and gets rejected because it's not on the allowlist. This tool registers as "Codex" (which is on the allowlist) and saves the tokens in the format OpenCode expects.
This approach is based on this workaround commit by @connorads, packaged as a standalone tool so you don't need to fork OpenCode.
git clone https://github.com/sdaoudi/mcp-auth-helper.git
cd mcp-auth-helper
npm install
npm run build
node dist/index.js auth figma --url https://mcp.figma.com/mcp
This will:
~/.local/share/opencode/mcp-auth.jsonAfter authenticating, make sure the Figma MCP server is configured in your opencode.json and OpenCode will pick up the saved tokens automatically:
{
"mcp": {
"figma": {
"type": "remote",
"url": "https://mcp.figma.com/mcp",
"enabled": true
}
}
}
--url <url> MCP server URL (required)
--client-name <name> OAuth client name (default: "Codex")
--callback-port <port> Local callback port (default: 19876)
--output <path> Token output path (default: ~/.local/share/opencode/mcp-auth.json)
You can authenticate with multiple MCP servers. Each one is saved as a separate entry in mcp-auth.json:
node dist/index.js auth figma --url https://mcp.figma.com/mcp
node dist/index.js auth another --url https://another-mcp.example.com/mcp
/.well-known/oauth-authorization-server)~/.local/share/opencode/mcp-auth.json in OpenCode's expected formatBased on the workaround commit by @connorads, repackaged as a standalone CLI tool.
Related issues:
MIT
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
MCP server integration for DaVinci Resolve Studio