@taiga-ai/mcp-server 0.36.0-dev.783 → 0.36.0-dev.784
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/index.js +38 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -505,6 +505,7 @@ function hide(inst, key, value) {
|
|
|
505
505
|
return own$5(inst, key, value, false);
|
|
506
506
|
}
|
|
507
507
|
/** Adds members a table derives from the instance: each builds on first read and shadows as own data, and assignment shadows the same way, as when these were own properties. */
|
|
508
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
508
509
|
function derived(computes, table) {
|
|
509
510
|
for (const key in computes) {
|
|
510
511
|
const compute = computes[key];
|
|
@@ -658,6 +659,7 @@ function newError(Definition) {
|
|
|
658
659
|
}
|
|
659
660
|
return new Definition();
|
|
660
661
|
}
|
|
662
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
661
663
|
function $constructor(name, initializer, proto, params) {
|
|
662
664
|
const zodProto = {};
|
|
663
665
|
function Internals(def) {
|
|
@@ -788,8 +790,7 @@ const initializer$1 = (inst, def) => {
|
|
|
788
790
|
});
|
|
789
791
|
}
|
|
790
792
|
};
|
|
791
|
-
const $ZodError = $constructor("$ZodError", initializer$1);
|
|
792
|
-
$constructor("$ZodError", initializer$1, void 0, { Parent: Error });
|
|
793
|
+
const $ZodError = /* @__PURE__ */ $constructor("$ZodError", initializer$1);
|
|
793
794
|
/** Get-or-create `obj[key]` as an own data property. A path segment naming an inherited member
|
|
794
795
|
* ("toString", "constructor") would otherwise read through to the prototype, and assigning
|
|
795
796
|
* "__proto__" would hit the setter instead of creating a key. */
|
|
@@ -7941,7 +7942,23 @@ var SdkError = class extends Error {
|
|
|
7941
7942
|
stampErrorBrands(this, new.target);
|
|
7942
7943
|
}
|
|
7943
7944
|
};
|
|
7944
|
-
|
|
7945
|
+
/**
|
|
7946
|
+
* An {@linkcode SdkError} subclass for HTTP transport failures.
|
|
7947
|
+
*
|
|
7948
|
+
* Thrown by the streamable HTTP transport when the server responds with a
|
|
7949
|
+
* non-OK status code. Narrows {@linkcode SdkError.data | data} to
|
|
7950
|
+
* {@linkcode SdkHttpErrorData} so consumers can inspect the HTTP status
|
|
7951
|
+
* without unsafe casting.
|
|
7952
|
+
*
|
|
7953
|
+
* @example
|
|
7954
|
+
* ```ts source="./sdkErrors.examples.ts#SdkHttpError_basicUsage"
|
|
7955
|
+
* if (error instanceof SdkHttpError) {
|
|
7956
|
+
* console.log(error.status); // number
|
|
7957
|
+
* console.log(error.statusText); // string | undefined
|
|
7958
|
+
* }
|
|
7959
|
+
* ```
|
|
7960
|
+
*/
|
|
7961
|
+
var SdkHttpError = class extends SdkError {
|
|
7945
7962
|
static {
|
|
7946
7963
|
Object.defineProperty(this, "mcpBrand", { value: "mcp.SdkHttpError" });
|
|
7947
7964
|
}
|
|
@@ -7958,7 +7975,7 @@ var SdkError = class extends Error {
|
|
|
7958
7975
|
get statusText() {
|
|
7959
7976
|
return this.data.statusText;
|
|
7960
7977
|
}
|
|
7961
|
-
}
|
|
7978
|
+
};
|
|
7962
7979
|
function isPlainObject$7(value) {
|
|
7963
7980
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
7964
7981
|
}
|
|
@@ -26894,7 +26911,7 @@ function setupNextStep(product) {
|
|
|
26894
26911
|
if (isImportedProduct(product)) switch (importStatusOf(product)) {
|
|
26895
26912
|
case "analyzing":
|
|
26896
26913
|
case "generating_docs": return `The import is running and derives the documents from the code (taiga_wait (jobId) follows its job). Then review them, and ${FINISH_DISCOVERY}`;
|
|
26897
|
-
case "complete": return "The import is done: review the reality documents (taiga_get_product_document without type), then
|
|
26914
|
+
case "complete": return "The import is done: review the reality documents (taiga_get_product_document without type), then " + FINISH_DISCOVERY;
|
|
26898
26915
|
case "failed":
|
|
26899
26916
|
case "cancelled": return "The last import did not finish: taiga_start_import runs it again.";
|
|
26900
26917
|
default: return "Link its repository if it has none (taiga_list_linkable_repositories, taiga_link_repository), then taiga_start_import: the import derives the documents from the code and runs by itself.";
|
|
@@ -27590,11 +27607,25 @@ function withFixability(row) {
|
|
|
27590
27607
|
if (dependency && !row["recommendedVersion"] && row["remediableBy"] === "coding_agent") return {
|
|
27591
27608
|
...row,
|
|
27592
27609
|
fixable: false,
|
|
27593
|
-
fixNote: "
|
|
27610
|
+
fixNote: noVersionNote(row["data"])
|
|
27594
27611
|
};
|
|
27595
27612
|
return row;
|
|
27596
27613
|
}
|
|
27597
27614
|
/**
|
|
27615
|
+
* Why a dependency has no version to move to. A language runtime declared as
|
|
27616
|
+
* a container image moves only to a release the image has published
|
|
27617
|
+
* (PRO-3729), so its vendor's fix can be out while Fix is refused: the
|
|
27618
|
+
* finding's runtime data says so where the row carries it (taiga_get_finding).
|
|
27619
|
+
*/
|
|
27620
|
+
function noVersionNote(data) {
|
|
27621
|
+
const runtime = data?.runtime;
|
|
27622
|
+
const fixedIn = typeof runtime?.["fixedIn"] === "string" ? runtime["fixedIn"] : null;
|
|
27623
|
+
if (fixedIn) return `Fixed in ${fixedIn}, but there is no release to move to yet: the image the repository declares has not published it, or, where the line has ended, a supported line (the summary says which). taiga_fix_finding refuses it until there is one.`;
|
|
27624
|
+
if (runtime && (typeof runtime["newest"] === "string" || "endOfLife" in runtime)) return "A newer release is out, but the image the repository declares has not published one to move to yet (the summary names the image): taiga_fix_finding refuses it until it does.";
|
|
27625
|
+
if (runtime) return "No fixed release is known yet, or, where the line has ended, the image the repository declares has not published a supported line (the summary says which): taiga_fix_finding refuses it until there is one.";
|
|
27626
|
+
return "No version to move to yet: no fixed version is known, or for a language runtime the image the repository declares has not published one (taiga_get_finding says which). taiga_fix_finding refuses it until there is one.";
|
|
27627
|
+
}
|
|
27628
|
+
/**
|
|
27598
27629
|
* Dev-only, runtime or unknown, said on a dependency row (PRO-2861) in place of the raw per-lockfile groups
|
|
27599
27630
|
* the API carries: the groups need the lockfile name to read, which `dependencyScope` does once here.
|
|
27600
27631
|
*/
|
|
@@ -27990,7 +28021,7 @@ function registerMaintenanceTools(server, client) {
|
|
|
27990
28021
|
}));
|
|
27991
28022
|
server.registerTool("taiga_fix_finding", {
|
|
27992
28023
|
title: "Fix a finding",
|
|
27993
|
-
description: "Raise an initiative that fixes a finding; it ends in a pull request, which merges on its own only where the product's auto-merge allows it. wholeGroup: true fixes, in that repository, every open advisory on that package version in one bump, or every place the rule flagged. A malicious package is removed, with every advisory on that version, whatever wholeGroup says. Refused when no
|
|
28024
|
+
description: "Raise an initiative that fixes a finding; it ends in a pull request, which merges on its own only where the product's auto-merge allows it. wholeGroup: true fixes, in that repository, every open advisory on that package version in one bump, or every place the rule flagged. A malicious package is removed, with every advisory on that version, whatever wholeGroup says. A language runtime moves every file declaring it together, in a container image only to a tag the image has published. Refused when there is no version to move to (fixable: false; for a runtime, also while its image has not published the fix), the code is in a submodule, or a secret is only in history (rotate it outside Taiga).",
|
|
27994
28025
|
inputSchema: object({
|
|
27995
28026
|
productId,
|
|
27996
28027
|
findingId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ai/mcp-server",
|
|
3
|
-
"version": "0.36.0-dev.
|
|
3
|
+
"version": "0.36.0-dev.784",
|
|
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",
|