Skip to content

Fix Figma loading no tools for OAuth accounts - #38

Open
flamboh wants to merge 1 commit into
UsefulSoftwareCo:mainfrom
flamboh:figma-oauth-tools
Open

flamboh wants to merge 1 commit into
UsefulSoftwareCo:mainfrom
flamboh:figma-oauth-tools

Conversation

@flamboh

@flamboh flamboh commented Dec 2, 2026

Copy link
Copy Markdown

Note

🤖 Claude Opus 5.5 on behalf of Oliver

Fixes #37.

Figma accounts that sign in with OAuth get no tools at all. Personal access token accounts work, which is why this was easy to miss.

Cause

The app sends OAuth tokens through a scheme it names OAuthBearer. Figma's spec never mentions that name. Its operations ask for PersonalAccessToken, PlanAccessToken or OAuth2. So no operation matched the oauth method, and every tool was filtered out for OAuth accounts.

Fix

Rename the override to OAuth2. That replaces the spec's own OAuth2 scheme with a bearer Authorization header, so the operations that list OAuth2 now accept OAuth accounts. Token accounts are unchanged.

Validation

  • openapiToolNames with the old options: 50 tools, all token, none oauth. With this change: 56 tools, 50 for token and 55 for oauth.
  • scripts/check.sh figma passes (typecheck, 56 tools, deploys to a local Executor).
  • Deployed the same change to a hosted organization with a healthy OAuth account. The app went from 0 tools to 55, and figma.users.getMe returned the signed-in user.

Sign-in itself on the catalog version still needs #36.

Made with Claude Opus 5.5 in Claude Code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Figma: app loads no tools on executor.sh even with a healthy OAuth account

1 participant