fix(build): map the figma-mcp site to the figma package and folder
Why
The platform builds a monorepo MCP by running the root build with DECO_SITE_NAME=<site>. scripts/build-mcp.ts then uses that name both as the package filter (bun run --filter=<site> build) and as the folder whose dist it moves to the root.
Since #559 the site is figma-mcp, because figma is taken by an unrelated storefront. The MCP's package and folder are both figma, so the build would find no package and no figma-mcp/dist.
What
"figma-mcp": "figma" is added to FOLDER_OVERRIDES and PKG_NAME_OVERRIDES. It is the same mapping github-mcp โ github already uses.
Verified
bun run --filter=figma buildproducesfigma/dist/server/main.js(2.68 MB).- Moving that to
./distgives the./dist/server/main.jsentrypoint fromdeploy.json. - Pre-commit format and lint checks pass.
๐ค Generated with Claude Code
Summary by cubic
Fixes the MCP build so the figma-mcp site resolves to the figma package and folder, which previously caused the build to fail since the site name didn't match the package or directory. Adds the same override mapping that github-mcp โ github already uses.