@taiga-ai/mcp-server 0.36.0-dev.829 → 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 +38 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -26870,6 +26870,7 @@ const uploadGrant = object({
26870
26870
  expiresAt: string$2()
26871
26871
  });
26872
26872
  object({ version: number$1().int().min(1) });
26873
+ object({ documentId: string$2().uuid() });
26873
26874
  /** The uploads a product's move could not re-file, named while they fit the answer (PRO-3497). */
26874
26875
  const failedDocuments = array(object({
26875
26876
  id: string$2(),
@@ -27019,7 +27020,7 @@ strictObject({ type: productDocumentType }), object({
27019
27020
  shown: array(string$2()),
27020
27021
  count: number$1().int().min(0)
27021
27022
  })
27022
- }), strictObject({ type: productDocumentType }), strictObject({ type: productDocumentType }), object({ documentId: string$2().uuid() }), strictObject({
27023
+ }), strictObject({ type: productDocumentType }), strictObject({ type: productDocumentType }), strictObject({
27023
27024
  githubRepositoryId: uuid.optional(),
27024
27025
  /** A GitLab project, by the connection whose bot reaches it and GitLab's numeric id (P-PRO-150). */
27025
27026
  gitlabConnectionId: uuid.optional(),
@@ -27116,8 +27117,10 @@ object({
27116
27117
  /** The retry itself threw; absent when it went through. */
27117
27118
  error: string$2().optional()
27118
27119
  });
27119
- strictObject({ type: _enum([...FACTORY_DOCUMENT_TYPES, LEGACY_FACTORY_INSTRUCTIONS_TYPE]).transform((type) => type === "team_instructions" ? FACTORY_INSTRUCTIONS_TYPE : type) });
27120
- strictObject({ type: _enum(TENANT_DOCUMENT_TYPES) }), strictObject({
27120
+ /** A factory document type, its legacy name read as the current one. */
27121
+ const factoryDocumentType = _enum([...FACTORY_DOCUMENT_TYPES, LEGACY_FACTORY_INSTRUCTIONS_TYPE]).transform((type) => type === "team_instructions" ? FACTORY_INSTRUCTIONS_TYPE : type);
27122
+ strictObject({ type: factoryDocumentType }), strictObject({ type: factoryDocumentType });
27123
+ strictObject({ type: _enum(TENANT_DOCUMENT_TYPES) }), strictObject({ type: _enum(TENANT_DOCUMENT_TYPES).refine((type) => type !== "design_standards", { message: "The design standards draft is not made through sync" }) }), strictObject({
27121
27124
  name: string$2().min(1).max(50),
27122
27125
  action: _enum(["accept", "decline"])
27123
27126
  }), object({
@@ -28556,6 +28559,34 @@ function standingSummary(standing) {
28556
28559
  resolvedViolations: resolved
28557
28560
  };
28558
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
+ }
28559
28590
  const findingId = idInput("finding", "taiga_list_findings gives it");
28560
28591
  /** Open findings by severity and kind, and the latest sweeps, as the first page of findings carries them. */
28561
28592
  async function sweepOverview(client, productId) {
@@ -28748,6 +28779,7 @@ function registerMaintenanceTools(server, client) {
28748
28779
  return toolResult({
28749
28780
  ...control,
28750
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." } : {},
28751
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." } : {},
28752
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.` } : {},
28753
28785
  violations: pickFields(own, VIOLATION_FIELDS),
@@ -28770,6 +28802,7 @@ function registerMaintenanceTools(server, client) {
28770
28802
  ...wording,
28771
28803
  ...standing,
28772
28804
  controls: listed,
28805
+ ...controlCoveragePart(controls),
28773
28806
  divergences: cutLongText(violations),
28774
28807
  resolvedDivergences: cutLongText(resolvedAll.slice(0, FULL_RESOLVED)),
28775
28808
  ...resolvedAll.length > FULL_RESOLVED ? { resolvedNote: `The first ${FULL_RESOLVED} of ${resolvedAll.length} resolved violations.` } : {}
@@ -28793,7 +28826,8 @@ function registerMaintenanceTools(server, client) {
28793
28826
  "findingsByTier",
28794
28827
  "plannedCount"
28795
28828
  ]),
28796
- violations: pickFields(violations, VIOLATION_FIELDS)
28829
+ violations: pickFields(violations, VIOLATION_FIELDS),
28830
+ ...controlCoveragePart(controls)
28797
28831
  });
28798
28832
  }));
28799
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.829",
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",