Skip to content

Figma card: use my own Figma app - #337

Merged
nambok merged 2 commits into
mainfrom
figma-own-app
Nov 8, 2026
Merged

nambok merged 2 commits into
mainfrom
figma-own-app

Conversation

@nambok

@nambok nambok commented Nov 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

The Figma card on Integrations now offers "Use my own Figma app". It lists the steps to create the app: where to create it, the exact redirect URL to add (from the API, so it is the install's own callback), the scopes to tick, and publishing it as a private app. Then it takes the client id and secret, saves them, and starts the sign-in. A personal access token still works under "Use a key instead". This needs CoderHelm/coderhelm-platform#518.

Changes

  • api.ts:
    • PluginDef.own_app (where to create the app and its scopes).
    • OwnAppState (client id, status, who signed in and the redirect URL; never the secret).
    • api.saveOwnApp, which calls PUT /api/mcp-servers/apps/:catalog_id.
    • own_app on the sign-in callback response.
  • mcp-server-panel.tsx:
    • A catalog server with own_app shows OwnAppPanel: the steps, a copyable redirect URL, Client ID and Client secret fields, and buttons for "Save and connect with Figma", "Connect with Figma" or "Sign in again", and "Remove my app".
    • The key form sits under "Use a key instead".
    • A blank secret keeps the saved one for the same client id.
  • mcp-callback/page.tsx: an own-app sign-in goes back to the Figma row. If Figma refuses the token, the page says so in plain words instead of mentioning tools.
  • openapi-fields.ts is regenerated at the platform branch. The only change is the ref.

Verification

  • npx tsc --noEmit -p .: no errors.
  • npm run lint: no UI lint errors and no hardcoded hosted addresses.
  • eslint on the changed files: no issues.
  • npm run check:openapi: matches CoderHelm/coderhelm-platform@657a2816.
  • npx playwright test e2e/integrations-page.spec.ts e2e/mcp-servers.spec.ts --project=chromium: 34 passed. That includes a new test for the Figma own-app panel: the redirect URL, the scopes, the console link, Save and connect sending the client id and secret, the connect call, and the callback returning to the Figma row.

@nambok
nambok merged commit b30e9d6 into main Nov 8, 2026
10 checks passed
@nambok
nambok deleted the figma-own-app branch November 8, 2026 14:53
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.

1 participant