Skip to content

fix(deploy): drop managementMode + legacyProject gates from MCP source deploy and build - #116

Merged
teckedd-code2save merged 1 commit into
mainfrom
fix/drop-managed-gate
Oct 25, 2026
Merged

teckedd-code2save merged 1 commit into
mainfrom
fix/drop-managed-gate

Conversation

@teckedd-code2save

Copy link
Copy Markdown
Owner

What

Source deployment (deployment.source.deploy) and build_publish required managementMode=managed and a linked legacy Project, which blocked any deployment enrolled as a bare folder or container (track mode) from being driven through the MCP.

Why

The actual deploy runs off the linked GitHub repository (githubRepositoryDeployment → GitHub App token), sourcePath (git sync target), and composePath (docker compose build/up). Neither the legacy Project nor managementMode is read by the deploy worker, so both gates were redundant blockers. New deployments should be MCP-drivable immediately — no manual "manage" step, no DB edit.

Changes

  • src/lib/mcp-agent.ts — removed the managementMode !== "managed" and !deployment.legacyProject gates from deployment.source.deploy.
  • src/app/api/projects/compose/route.ts — removed the !project and managementMode !== "managed" gates from the source-deploy action; enrollment matches on sourcePath/slug only.
  • src/app/api/projects/compose/build-publish/route.ts — removed the same two gates from build_publish.

managementMode is retained as a display label; it no longer gates anything.

Validation

  • npx tsc --noEmit — clean
  • npx vitest run — 502/502 passing (78 files)

…e deploy and build

Source deployment and build_publish required managementMode=managed and a
linked legacy Project, blocking any deployment enrolled as a bare folder or
container (track mode). The deploy itself runs off the linked GitHub
repository + sourcePath + composePath, so both gates were redundant.

Removed the gates in mcp-agent.ts (deployment.source.deploy),
projects/compose/route.ts (source-deploy action), and
projects/compose/build-publish/route.ts (build action). Any enrolled
deployment with a linked GitHub repository and a compose path is now
MCP-drivable with no manual 'manage' step.
@teckedd-code2save
teckedd-code2save merged commit 1dc74ab into main Oct 25, 2026
3 checks passed
@teckedd-code2save
teckedd-code2save deleted the fix/drop-managed-gate branch October 25, 2026 03:30
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