@burdenoff/mcp-libs 2026.719.1 → 2026.720.1
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/modules/movethewheels/index.cjs +2 -28
- package/dist/modules/movethewheels/index.cjs.map +1 -1
- package/dist/modules/movethewheels/index.js +2 -28
- package/dist/modules/movethewheels/index.js.map +1 -1
- package/dist/modules/mybodyshield/index.cjs +19 -3
- package/dist/modules/mybodyshield/index.cjs.map +1 -1
- package/dist/modules/mybodyshield/index.js +19 -3
- package/dist/modules/mybodyshield/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -593,11 +593,6 @@ var GET_FINANCE_METRICS = `
|
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
595
|
`;
|
|
596
|
-
var GET_ASSISTANT_INSIGHTS = `
|
|
597
|
-
query MovethewheelsAssistantInsights($question: String!) {
|
|
598
|
-
assistantInsights(question: $question) { question answer generatedAt }
|
|
599
|
-
}
|
|
600
|
-
`;
|
|
601
596
|
var DriverStatusEnum = z.enum(["AVAILABLE", "INACTIVE", "OFF_DUTY", "ON_BREAK", "ON_DELIVERY"]).describe("Availability/duty status of a driver");
|
|
602
597
|
var InventoryTransactionTypeEnum = z.enum(["ADJUSTMENT", "ISSUE", "RECEIPT", "RETURN", "TRANSFER"]).describe("Type of inventory ledger movement");
|
|
603
598
|
var OrderPriorityEnum = z.enum(["CRITICAL", "HIGH", "LOW", "MEDIUM", "URGENT"]).describe("Fulfilment priority of an order");
|
|
@@ -3442,6 +3437,8 @@ function registerReportTools(server, ctx, track) {
|
|
|
3442
3437
|
}
|
|
3443
3438
|
);
|
|
3444
3439
|
}
|
|
3440
|
+
|
|
3441
|
+
// src/modules/movethewheels/tools/analytics.ts
|
|
3445
3442
|
function registerAnalyticsTools(server, ctx, track) {
|
|
3446
3443
|
server.registerTool(
|
|
3447
3444
|
track(mcpToolName(ctx.productName, "analytics_series")),
|
|
@@ -3538,29 +3535,6 @@ function registerAnalyticsTools(server, ctx, track) {
|
|
|
3538
3535
|
}
|
|
3539
3536
|
}
|
|
3540
3537
|
);
|
|
3541
|
-
server.registerTool(
|
|
3542
|
-
track(mcpToolName(ctx.productName, "analytics_insights")),
|
|
3543
|
-
{
|
|
3544
|
-
title: "Assistant Insights",
|
|
3545
|
-
description: "Ask the Movethewheels operations assistant a natural-language question and get a generated insight answer.",
|
|
3546
|
-
inputSchema: {
|
|
3547
|
-
question: z.string().min(1).describe("Natural-language operations question")
|
|
3548
|
-
}
|
|
3549
|
-
},
|
|
3550
|
-
async ({ question }) => {
|
|
3551
|
-
try {
|
|
3552
|
-
const data = await ctx.gql.workspace.request(GET_ASSISTANT_INSIGHTS, { question });
|
|
3553
|
-
return jsonResult(data.assistantInsights);
|
|
3554
|
-
} catch (error) {
|
|
3555
|
-
ctx.logger.error("movethewheels analytics_insights failed", {
|
|
3556
|
-
error: String(error)
|
|
3557
|
-
});
|
|
3558
|
-
return errorResult(
|
|
3559
|
-
`Failed to get assistant insights: ${error instanceof Error ? error.message : String(error)}`
|
|
3560
|
-
);
|
|
3561
|
-
}
|
|
3562
|
-
}
|
|
3563
|
-
);
|
|
3564
3538
|
}
|
|
3565
3539
|
|
|
3566
3540
|
// src/modules/movethewheels/resources.ts
|