diff --git a/internal/agent/deploy.go b/internal/agent/deploy.go index f6b074d..a2faafe 100644 --- a/internal/agent/deploy.go +++ b/internal/agent/deploy.go @@ -134,7 +134,8 @@ func (a *Agent) deployComponent(ctx context.Context, serviceName string, cs *mcp Error: fmt.Sprintf("allocate route ports: %v", err), } } - runSpec.Ports = ports + // Merge explicit ports from the spec with route-allocated ports. + runSpec.Ports = append(cs.GetPorts(), ports...) runSpec.Env = append(runSpec.Env, env...) } else { // Legacy: use ports directly from the spec.