@taiga-ai/mcp-server 0.36.0-dev.830 → 0.36.0-dev.831

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.
Files changed (2) hide show
  1. package/dist/index.js +32 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -28559,6 +28559,34 @@ function standingSummary(standing) {
28559
28559
  resolvedViolations: resolved
28560
28560
  };
28561
28561
  }
28562
+ /**
28563
+ * How the backlog covers the controls that need a feature (PRO-3860), one row
28564
+ * each: the live initiatives that build it, or why it is deferred, and whether
28565
+ * nothing covers it. Empty before a backlog answered for any. It says what is
28566
+ * planned, never that a control is met.
28567
+ */
28568
+ function controlCoverageList(controls) {
28569
+ return (Array.isArray(controls) ? controls : []).flatMap((control) => {
28570
+ const coverage = control["coverage"];
28571
+ if (!coverage || typeof coverage !== "object") return [];
28572
+ const initiatives = Array.isArray(coverage["initiatives"]) ? coverage["initiatives"] : [];
28573
+ return [{
28574
+ controlId: control["controlId"],
28575
+ state: control["state"],
28576
+ uncovered: coverage["uncovered"] === true,
28577
+ ...initiatives.length > 0 ? { initiatives: initiatives.map((item) => ({
28578
+ id: item["id"],
28579
+ title: item["title"]
28580
+ })) } : {},
28581
+ ...coverage["deferredReason"] ? { deferredReason: coverage["deferredReason"] } : {}
28582
+ }];
28583
+ });
28584
+ }
28585
+ /** The coverage, when the backlog answered for any control, for the default and full answers. */
28586
+ function controlCoveragePart(controls) {
28587
+ const coverage = controlCoverageList(controls);
28588
+ return coverage.length > 0 ? { controlCoverage: coverage } : {};
28589
+ }
28562
28590
  const findingId = idInput("finding", "taiga_list_findings gives it");
28563
28591
  /** Open findings by severity and kind, and the latest sweeps, as the first page of findings carries them. */
28564
28592
  async function sweepOverview(client, productId) {
@@ -28751,6 +28779,7 @@ function registerMaintenanceTools(server, client) {
28751
28779
  return toolResult({
28752
28780
  ...control,
28753
28781
  ...control.state === "no_evidence" ? { meaning: "Not assessed: no finding or violation is recorded against it, and the documents were not found to show it met. That is no evidence either way, not a pass." } : {},
28782
+ ...control.coverage ? { coverageNote: "coverage is how the backlog plans for it: the live initiatives that build it, or why it is deferred. It says what is planned, not that the control is met." } : {},
28754
28783
  ...control.assessment == null && (control.state === "breached" || control.state === "diverged") ? { assessmentNote: "No met or not-applicable verdict is shown: an open finding or violation against the control outranks one." } : {},
28755
28784
  ...Number(control.findingCount ?? 0) > 0 ? { findingsNote: `${String(control.findingCount)} open scanner finding${control.findingCount === 1 ? "" : "s"} breach it; taiga_list_findings (productId) lists them with the controls each breaches. violations below are the documents' only.` } : {},
28756
28785
  violations: pickFields(own, VIOLATION_FIELDS),
@@ -28773,6 +28802,7 @@ function registerMaintenanceTools(server, client) {
28773
28802
  ...wording,
28774
28803
  ...standing,
28775
28804
  controls: listed,
28805
+ ...controlCoveragePart(controls),
28776
28806
  divergences: cutLongText(violations),
28777
28807
  resolvedDivergences: cutLongText(resolvedAll.slice(0, FULL_RESOLVED)),
28778
28808
  ...resolvedAll.length > FULL_RESOLVED ? { resolvedNote: `The first ${FULL_RESOLVED} of ${resolvedAll.length} resolved violations.` } : {}
@@ -28796,7 +28826,8 @@ function registerMaintenanceTools(server, client) {
28796
28826
  "findingsByTier",
28797
28827
  "plannedCount"
28798
28828
  ]),
28799
- violations: pickFields(violations, VIOLATION_FIELDS)
28829
+ violations: pickFields(violations, VIOLATION_FIELDS),
28830
+ ...controlCoveragePart(controls)
28800
28831
  });
28801
28832
  }));
28802
28833
  if (!client.hasCapability("products:write")) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.36.0-dev.830",
3
+ "version": "0.36.0-dev.831",
4
4
  "description": "Taiga for AI coding assistants: read products, policies, initiatives and runs, and operate the line, over MCP",
5
5
  "mcpName": "ga.tai/mcp-server",
6
6
  "license": "UNLICENSED",