@loopops/mcp-server 3.29.0 → 3.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tools/deploy.js +20 -0
- package/package.json +1 -1
package/dist/tools/deploy.js
CHANGED
|
@@ -560,6 +560,26 @@ export function registerDeployTools(server, allowed) {
|
|
|
560
560
|
.describe("Why you're rolling back — required, min 20 chars. Captured in every per-proposal audit row."),
|
|
561
561
|
}, safeTool(async (input) => trpcMutation("mcp.rollbackAccountCommit", input)));
|
|
562
562
|
}
|
|
563
|
+
if (allowed.has("commit_cycle")) {
|
|
564
|
+
server.tool("commit_cycle", [
|
|
565
|
+
"Ops only. Phase 4.3 atomic cutover for directory-shape",
|
|
566
|
+
"scenarios. Reads all approved rows across user / quota /",
|
|
567
|
+
"account placement tables, promotes scenario inputs (territories,",
|
|
568
|
+
"hierarchy, composition, account_placement) to canonical",
|
|
569
|
+
"config/deploy/, writes assignments.yaml + quotas.yaml outputs,",
|
|
570
|
+
"updates account.territory_slug for committed account placements,",
|
|
571
|
+
"transitions all rows to 'committed', closes the cycle. ONE",
|
|
572
|
+
"GitHub commit + ONE DB transaction — either everything lands",
|
|
573
|
+
"or nothing does. Force two-step (default dryRun:true). Refuses",
|
|
574
|
+
"on legacy single-file scenarios; per-phase commits still work",
|
|
575
|
+
"for those.",
|
|
576
|
+
].join(" "), {
|
|
577
|
+
planningCycleId: z.string().uuid().optional().describe("Planning cycle. Defaults to the org's currently-open cycle."),
|
|
578
|
+
dryRun: z.boolean().optional().describe("Default true. Pass false to perform the atomic commit."),
|
|
579
|
+
message: z.string().optional().describe("Override the auto-generated commit message."),
|
|
580
|
+
branch: z.string().optional().describe("Branch to write to. Default: main."),
|
|
581
|
+
}, safeTool(async (input) => trpcMutation("mcp.commitCycle", input)));
|
|
582
|
+
}
|
|
563
583
|
if (allowed.has("close_cycle")) {
|
|
564
584
|
server.tool("close_cycle", [
|
|
565
585
|
"Ops only. Mark a planning cycle done. State `open → closed`.",
|