@burdenoff/mcp-libs 2026.1101.4 → 2026.1101.5
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.
|
@@ -488,7 +488,12 @@ function registerProductionTools(server, ctx, track) {
|
|
|
488
488
|
{
|
|
489
489
|
title: "Archive Work Center",
|
|
490
490
|
description: "Archive (soft-delete) a work center so it is no longer schedulable.",
|
|
491
|
-
inputSchema: { id: z.string().describe("Work center ID") }
|
|
491
|
+
inputSchema: { id: z.string().describe("Work center ID") },
|
|
492
|
+
// BOFF-5764: archiving removes a work center from scheduling for the
|
|
493
|
+
// whole plant, and `archive` is not in the name-inference verb set
|
|
494
|
+
// (tool-name.ts) — annotate explicitly so the confirmation gate that
|
|
495
|
+
// manufacturedops-mcp/src/index.ts enables covers it.
|
|
496
|
+
annotations: { destructiveHint: true }
|
|
492
497
|
},
|
|
493
498
|
async ({ id }) => {
|
|
494
499
|
try {
|
|
@@ -676,7 +681,12 @@ function registerProductionTools(server, ctx, track) {
|
|
|
676
681
|
inputSchema: {
|
|
677
682
|
id: z.string().describe("Production order ID"),
|
|
678
683
|
status: ProductionOrderStatusEnum.describe("Target status")
|
|
679
|
-
}
|
|
684
|
+
},
|
|
685
|
+
// BOFF-5764: a lifecycle transition moves real shop-floor execution
|
|
686
|
+
// state (RELEASED/CLOSED/CANCELLED are consequential and some are not
|
|
687
|
+
// reversible), and `transition` is not in the name-inference verb set —
|
|
688
|
+
// gate it via explicit annotation.
|
|
689
|
+
annotations: { destructiveHint: true }
|
|
680
690
|
},
|
|
681
691
|
async ({ id, status }) => {
|
|
682
692
|
try {
|
|
@@ -843,7 +853,11 @@ function registerProductionTools(server, ctx, track) {
|
|
|
843
853
|
inputSchema: {
|
|
844
854
|
id: z.string().describe("Material lot ID"),
|
|
845
855
|
status: MaterialLotStatusEnum.describe("Target lot status")
|
|
846
|
-
}
|
|
856
|
+
},
|
|
857
|
+
// BOFF-5764: lot status drives what physical material can be used —
|
|
858
|
+
// CONSUMED/SCRAPPED/QUARANTINED are consequential inventory decisions,
|
|
859
|
+
// so gate this transition behind the confirmation gate as well.
|
|
860
|
+
annotations: { destructiveHint: true }
|
|
847
861
|
},
|
|
848
862
|
async ({ id, status }) => {
|
|
849
863
|
try {
|
|
@@ -1184,7 +1198,11 @@ function registerQualityTools(server, ctx, track) {
|
|
|
1184
1198
|
inputSchema: {
|
|
1185
1199
|
id: z.string().describe("Non-conformance ID"),
|
|
1186
1200
|
status: NonConformanceStatusEnum.describe("Target status")
|
|
1187
|
-
}
|
|
1201
|
+
},
|
|
1202
|
+
// BOFF-5764: closing an NCR/CAPA is a quality-record decision with
|
|
1203
|
+
// audit consequences, and `transition` is not in the name-inference
|
|
1204
|
+
// verb set — gate it via explicit annotation.
|
|
1205
|
+
annotations: { destructiveHint: true }
|
|
1188
1206
|
},
|
|
1189
1207
|
async ({ id, status }) => {
|
|
1190
1208
|
try {
|
|
@@ -1420,7 +1438,11 @@ function registerMaintenanceTools(server, ctx, track) {
|
|
|
1420
1438
|
inputSchema: {
|
|
1421
1439
|
id: z.string().describe("Maintenance work order ID"),
|
|
1422
1440
|
status: MaintenanceStatusEnum.describe("Target status")
|
|
1423
|
-
}
|
|
1441
|
+
},
|
|
1442
|
+
// BOFF-5764: a lifecycle transition drives real maintenance execution
|
|
1443
|
+
// (COMPLETED/CANCELLED are consequential), and `transition` is not in
|
|
1444
|
+
// the name-inference verb set — gate it via explicit annotation.
|
|
1445
|
+
annotations: { destructiveHint: true }
|
|
1424
1446
|
},
|
|
1425
1447
|
async ({ id, status }) => {
|
|
1426
1448
|
try {
|
|
@@ -1741,6 +1763,8 @@ function registerManufacturedopsPrompts(server, ctx, track) {
|
|
|
1741
1763
|
6. **Inspect**: Use ${p}_inspections_record at the relevant stage; if it FAILs, raise an NCR with ${p}_non_conformances_raise.
|
|
1742
1764
|
7. **Close**: Use ${p}_production_orders_transition (COMPLETED \u2192 CLOSED) when quantityDone meets target.
|
|
1743
1765
|
|
|
1766
|
+
Gated tools (${p}_production_orders_transition, ${p}_material_lots_set_status, ${p}_work_centers_archive, ${p}_maintenance_transition, ${p}_non_conformances_transition) are confirmation-gated: before each call, show the human exactly what will change and get their explicit approval, then pass confirm: true. Never pass confirm: true on your own initiative \u2014 an unconfirmed call is refused without changes.
|
|
1767
|
+
|
|
1744
1768
|
Show results at each step and confirm before releasing and before closing.`
|
|
1745
1769
|
}
|
|
1746
1770
|
}
|
|
@@ -1775,6 +1799,8 @@ Show results at each step and confirm before releasing and before closing.`
|
|
|
1775
1799
|
5. **Downtime / OEE**: Use ${p}_downtime_record for any stoppages and ${p}_downtime_list to review losses by reason.
|
|
1776
1800
|
6. **Inspections**: Use ${p}_inspections_list filtered by result=FAIL to catch recurring quality escapes.
|
|
1777
1801
|
|
|
1802
|
+
${p}_non_conformances_transition, ${p}_maintenance_transition and the other gated tools are confirmation-gated: before each call, show the human the record and the target state, get their explicit approval, then pass confirm: true. Never pass confirm: true on your own initiative \u2014 an unconfirmed call is refused without changes.
|
|
1803
|
+
|
|
1778
1804
|
Summarize what needs attention after each step.`
|
|
1779
1805
|
}
|
|
1780
1806
|
}
|