@loopops/mcp-server 3.33.0 → 3.34.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/account-master.js +2 -2
- package/dist/tools/deploy.js +14 -0
- package/package.json +1 -1
|
@@ -158,7 +158,7 @@ export function registerAccountMasterTools(server, allowed) {
|
|
|
158
158
|
.min(1)
|
|
159
159
|
.max(64)
|
|
160
160
|
.regex(/^[a-z0-9_]+$/)
|
|
161
|
-
.describe("Attribute name in snake_case (e.g. '
|
|
161
|
+
.describe("Attribute name in snake_case (e.g. 'billing_state', 'industry_naics', 'employee_count'). Must match the `attribute_name` used in resolution rules."),
|
|
162
162
|
value: z
|
|
163
163
|
.string()
|
|
164
164
|
.min(1)
|
|
@@ -218,7 +218,7 @@ export function registerAccountMasterTools(server, allowed) {
|
|
|
218
218
|
.min(1)
|
|
219
219
|
.max(64)
|
|
220
220
|
.regex(/^[a-z0-9_]+$/)
|
|
221
|
-
.describe("Attribute name (e.g. '
|
|
221
|
+
.describe("Attribute name (e.g. 'billing_state'). Must match a prior manual override row."),
|
|
222
222
|
reason: z
|
|
223
223
|
.string()
|
|
224
224
|
.min(3)
|
package/dist/tools/deploy.js
CHANGED
|
@@ -472,9 +472,23 @@ export function registerDeployTools(server, allowed) {
|
|
|
472
472
|
preserveCurrentOwnershipOverride: z.boolean().optional().describe("Override config/deploy/account_placement.yaml's preserve_current_ownership policy."),
|
|
473
473
|
accountIds: z.array(z.string().uuid()).optional().describe("Optional restriction; only model these accounts."),
|
|
474
474
|
scenarioId: z.string().optional().describe("Override active scenario."),
|
|
475
|
+
async: z.boolean().optional().describe("Run the placement model as a Modal background job (bypasses Vercel's 5-min function ceiling). Returns immediately with a job_id; poll status via propose_account_assignments_status. Recommended for cycles with >500 accounts. Default: false."),
|
|
475
476
|
branch: z.string().optional(),
|
|
476
477
|
}, safeTool(async (input) => trpcMutation("mcp.proposeAccountAssignments", input)));
|
|
477
478
|
}
|
|
479
|
+
if (allowed.has("propose_account_assignments_status")) {
|
|
480
|
+
server.tool("propose_account_assignments_status", [
|
|
481
|
+
"Read the status of an async account-placement job kicked off by",
|
|
482
|
+
"`propose_account_assignments async:true`. Returns the job's current",
|
|
483
|
+
"status (queued / running / complete / failed), how many proposals",
|
|
484
|
+
"have been written so far, when it started/completed, and the",
|
|
485
|
+
"Modal call id for cross-referencing in the Modal UI. Once the",
|
|
486
|
+
"status is `complete`, run `review_account_assignments` to see the",
|
|
487
|
+
"proposals.",
|
|
488
|
+
].join(" "), {
|
|
489
|
+
jobId: z.string().uuid().describe("placement_job.id returned by `propose_account_assignments async:true`."),
|
|
490
|
+
}, safeTool(async (input) => trpcQuery("mcp.proposeAccountAssignmentsStatus", input)));
|
|
491
|
+
}
|
|
478
492
|
if (allowed.has("review_account_assignments")) {
|
|
479
493
|
server.tool("review_account_assignments", [
|
|
480
494
|
"List Phase 3 account placement proposals for a cycle. Subtree-",
|