@burdenoff/mcp-libs 2026.1101.4 → 2026.1101.6

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.
@@ -550,7 +550,12 @@ function registerProductionTools(server, ctx, track) {
550
550
  {
551
551
  title: "Archive Work Center",
552
552
  description: "Archive (soft-delete) a work center so it is no longer schedulable.",
553
- inputSchema: { id: zod.z.string().describe("Work center ID") }
553
+ inputSchema: { id: zod.z.string().describe("Work center ID") },
554
+ // BOFF-5764: archiving removes a work center from scheduling for the
555
+ // whole plant, and `archive` is not in the name-inference verb set
556
+ // (tool-name.ts) — annotate explicitly so the confirmation gate that
557
+ // manufacturedops-mcp/src/index.ts enables covers it.
558
+ annotations: { destructiveHint: true }
554
559
  },
555
560
  async ({ id }) => {
556
561
  try {
@@ -738,7 +743,12 @@ function registerProductionTools(server, ctx, track) {
738
743
  inputSchema: {
739
744
  id: zod.z.string().describe("Production order ID"),
740
745
  status: ProductionOrderStatusEnum.describe("Target status")
741
- }
746
+ },
747
+ // BOFF-5764: a lifecycle transition moves real shop-floor execution
748
+ // state (RELEASED/CLOSED/CANCELLED are consequential and some are not
749
+ // reversible), and `transition` is not in the name-inference verb set —
750
+ // gate it via explicit annotation.
751
+ annotations: { destructiveHint: true }
742
752
  },
743
753
  async ({ id, status }) => {
744
754
  try {
@@ -905,7 +915,11 @@ function registerProductionTools(server, ctx, track) {
905
915
  inputSchema: {
906
916
  id: zod.z.string().describe("Material lot ID"),
907
917
  status: MaterialLotStatusEnum.describe("Target lot status")
908
- }
918
+ },
919
+ // BOFF-5764: lot status drives what physical material can be used —
920
+ // CONSUMED/SCRAPPED/QUARANTINED are consequential inventory decisions,
921
+ // so gate this transition behind the confirmation gate as well.
922
+ annotations: { destructiveHint: true }
909
923
  },
910
924
  async ({ id, status }) => {
911
925
  try {
@@ -1246,7 +1260,11 @@ function registerQualityTools(server, ctx, track) {
1246
1260
  inputSchema: {
1247
1261
  id: zod.z.string().describe("Non-conformance ID"),
1248
1262
  status: NonConformanceStatusEnum.describe("Target status")
1249
- }
1263
+ },
1264
+ // BOFF-5764: closing an NCR/CAPA is a quality-record decision with
1265
+ // audit consequences, and `transition` is not in the name-inference
1266
+ // verb set — gate it via explicit annotation.
1267
+ annotations: { destructiveHint: true }
1250
1268
  },
1251
1269
  async ({ id, status }) => {
1252
1270
  try {
@@ -1482,7 +1500,11 @@ function registerMaintenanceTools(server, ctx, track) {
1482
1500
  inputSchema: {
1483
1501
  id: zod.z.string().describe("Maintenance work order ID"),
1484
1502
  status: MaintenanceStatusEnum.describe("Target status")
1485
- }
1503
+ },
1504
+ // BOFF-5764: a lifecycle transition drives real maintenance execution
1505
+ // (COMPLETED/CANCELLED are consequential), and `transition` is not in
1506
+ // the name-inference verb set — gate it via explicit annotation.
1507
+ annotations: { destructiveHint: true }
1486
1508
  },
1487
1509
  async ({ id, status }) => {
1488
1510
  try {
@@ -1803,6 +1825,8 @@ function registerManufacturedopsPrompts(server, ctx, track) {
1803
1825
  6. **Inspect**: Use ${p}_inspections_record at the relevant stage; if it FAILs, raise an NCR with ${p}_non_conformances_raise.
1804
1826
  7. **Close**: Use ${p}_production_orders_transition (COMPLETED \u2192 CLOSED) when quantityDone meets target.
1805
1827
 
1828
+ 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.
1829
+
1806
1830
  Show results at each step and confirm before releasing and before closing.`
1807
1831
  }
1808
1832
  }
@@ -1837,6 +1861,8 @@ Show results at each step and confirm before releasing and before closing.`
1837
1861
  5. **Downtime / OEE**: Use ${p}_downtime_record for any stoppages and ${p}_downtime_list to review losses by reason.
1838
1862
  6. **Inspections**: Use ${p}_inspections_list filtered by result=FAIL to catch recurring quality escapes.
1839
1863
 
1864
+ ${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.
1865
+
1840
1866
  Summarize what needs attention after each step.`
1841
1867
  }
1842
1868
  }