fix(figma): deploy to the figma-mcp site; figma belongs to another project

Merged
YU
6d ago
+10-10

Why

After #558 merged, https://sites-figma.deco.site/mcp answers 404 straight from Cloudflare, so the request never reaches the cluster. The site name figma was already taken: it is an unrelated deco storefront (deco-sites/figma, domain figma.deco.site, in another workspace). deploy.json pointed this MCP at that site, so the MCP never got a site of its own.

What

  • deploy.json: "site": "figma" โ†’ "site": "figma-mcp".
  • figma/app.json and registry.json: the connection URL becomes https://sites-figma-mcp.deco.site/mcp.
  • figma/README.md and .env.example: the new URL and the new OAuth callback, https://sites-figma-mcp.deco.site/oauth/callback.

I checked that figma-mcp is free: there is no sites-figma-mcp.deco.site or figma-mcp.deco.site, and no deco-sites/figma-mcp or decocms/figma-mcp repo.

After merge

  • The figma-mcp site needs FIGMA_CLIENT_ID, FIGMA_CLIENT_SECRET and OAUTH_STATE_SECRET. The env vars that were set on the storefront figma site are being removed from it.
  • The Figma OAuth app's redirect URL changes to the new callback.
  • The deco/figma registry entry needs the new URL.
  • @JonasJesus42: with the registry publish step failing since late September, how does a new kubernetes-bun site get created and built now? Is it the same way dynamic-yield went live?

๐Ÿค– Generated with Claude Code


Summary by cubic

Fixes the Figma MCP deployment so requests reach the cluster instead of 404ing at the edge. The site name figma was already taken by an unrelated deco storefront, so the MCP now deploys to the figma-mcp site at https://sites-figma-mcp.deco.site/mcp.

Migration

  • Points deploy.json at the figma-mcp site and updates the connection URL and OAuth callback in app.json, registry.json, README.md, and .env.example.
  • After merge, set FIGMA_CLIENT_ID, FIGMA_CLIENT_SECRET, and OAUTH_STATE_SECRET on the figma-mcp site and remove them from the figma storefront.
  • Update the Figma OAuth app's redirect URL to https://sites-figma-mcp.deco.site/oauth/callback.