Problem
Five feature flags are hard-coded false and gate an unfinished personal-Vercel integration. About 360 of the 409 lines in one route are unreachable, and two MCP tools always answer "integration required". A five-line /api/migrate route returns 404 and nothing else.
Where
app/api/vercel/targets/route.ts:25 (flag), guards at :196 and :324.
app/api/profile/vercel-billing/route.ts:15,157.
lib/mogplex-api/env-vars.ts:47,242,272,347 (this is what mogplex_set_env_var and mogplex_list_env_vars call).
lib/repo-settings.ts:18,170.
lib/sandbox/billing.ts:7,69.
app/api/migrate/route.ts.
Fix
Ask the maintainer first whether the Vercel integration is being finished or abandoned. Then either:
- Abandoned: delete the flags and every branch behind them, delete the route if it becomes empty, update the two MCP tools to return a clear "not supported" error, and delete
/api/migrate.
- Being finished: replace the hard-coded
false with one environment-driven flag in lib/flags.ts (or wherever flags live) so the code can be turned on in preview.
Exit criteria
https://claude.ai/code/session_01SQ4nS96XYRztd5w9QkubPf
Problem
Five feature flags are hard-coded
falseand gate an unfinished personal-Vercel integration. About 360 of the 409 lines in one route are unreachable, and two MCP tools always answer "integration required". A five-line/api/migrateroute returns 404 and nothing else.Where
app/api/vercel/targets/route.ts:25(flag), guards at:196and:324.app/api/profile/vercel-billing/route.ts:15,157.lib/mogplex-api/env-vars.ts:47,242,272,347(this is whatmogplex_set_env_varandmogplex_list_env_varscall).lib/repo-settings.ts:18,170.lib/sandbox/billing.ts:7,69.app/api/migrate/route.ts.Fix
Ask the maintainer first whether the Vercel integration is being finished or abandoned. Then either:
/api/migrate.falsewith one environment-driven flag inlib/flags.ts(or wherever flags live) so the code can be turned on in preview.Exit criteria
rg -n 'const .*= false' app/api/vercel app/api/profile lib/mogplex-api lib/repo-settings.ts lib/sandbox/billing.tsreturns no flag declarations.app/api/migrateno longer exists, or has a documented purpose.mogplex_list_env_varsreturns either data or a single clear error message (test via the CLI or the MCP inspector and paste the result).app/api/vercel/targets/route.tsis posted before and after.pnpm lint,pnpm typecheck,pnpm test:unitpass.https://claude.ai/code/session_01SQ4nS96XYRztd5w9QkubPf