@loopops/mcp-server 3.38.0 → 3.39.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 +18 -0
- package/package.json +1 -1
package/dist/tools/deploy.js
CHANGED
|
@@ -540,6 +540,24 @@ export function registerDeployTools(server, allowed) {
|
|
|
540
540
|
branch: z.string().optional(),
|
|
541
541
|
}, safeTool(async (input) => trpcMutation("mcp.editAccountAssignment", input)));
|
|
542
542
|
}
|
|
543
|
+
if (allowed.has("create_account_assignment_proposal")) {
|
|
544
|
+
server.tool("create_account_assignment_proposal", [
|
|
545
|
+
"Manager+. Manually place an in-scope account that has no",
|
|
546
|
+
"proposal row yet (the placement model couldn't match a",
|
|
547
|
+
"territory via rule walk). Inserts at state edited with",
|
|
548
|
+
"proposer manual:<email>. Use this for unmatched accounts",
|
|
549
|
+
"surfaced on /command/account-deployment. Refuses if a",
|
|
550
|
+
"non-superseded proposal already exists for the account —",
|
|
551
|
+
"use edit_account_assignment instead. Target territory must",
|
|
552
|
+
"be a patch in hierarchy.yaml.",
|
|
553
|
+
].join(" "), {
|
|
554
|
+
accountId: z.string().uuid().describe("Account Master account.id to place."),
|
|
555
|
+
newTerritorySlug: z.string().describe("Target patch slug. Must exist in deploy/hierarchy.yaml."),
|
|
556
|
+
notes: z.string().min(5).describe("Required, min 5 chars. Captured in audit log."),
|
|
557
|
+
planningCycleId: z.string().uuid().optional(),
|
|
558
|
+
branch: z.string().optional(),
|
|
559
|
+
}, safeTool(async (input) => trpcMutation("mcp.createAccountAssignmentProposal", input)));
|
|
560
|
+
}
|
|
543
561
|
if (allowed.has("revise_account_proposal")) {
|
|
544
562
|
server.tool("revise_account_proposal", [
|
|
545
563
|
"Ops only. Demote an approved account proposal back to edited",
|