@taiga-ai/mcp-server 0.37.0-dev.982 → 0.37.0-dev.985
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 +23 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -23961,6 +23961,10 @@ var TaigaClient = class {
|
|
|
23961
23961
|
async shipNotices(productId) {
|
|
23962
23962
|
return this.request("POST", `/products/${seg(productId)}/maintenance/notices`, {});
|
|
23963
23963
|
}
|
|
23964
|
+
/** Sweep one of a product's repositories (PRO-4276): its primary when none is named. */
|
|
23965
|
+
async startSweep(productId, productRepositoryId) {
|
|
23966
|
+
return this.request("POST", `/products/${seg(productId)}/maintenance/sweeps`, productRepositoryId ? { productRepositoryId } : {});
|
|
23967
|
+
}
|
|
23964
23968
|
async remediateFinding(productId, findingId) {
|
|
23965
23969
|
return this.request("POST", `/products/${seg(productId)}/maintenance/findings/${seg(findingId)}/remediate`, {});
|
|
23966
23970
|
}
|
|
@@ -28011,7 +28015,7 @@ const TOOLSET_PURPOSE = {
|
|
|
28011
28015
|
core: "where products, initiatives, runs, policies and findings stand",
|
|
28012
28016
|
operate: "moving work: queue, plans, runs, fixes, Action Required",
|
|
28013
28017
|
setup: "creating and configuring factories, products, repositories, environments and autonomy",
|
|
28014
|
-
observe: "deployments, monitoring, delivery metrics and the
|
|
28018
|
+
observe: "deployments, monitoring, delivery metrics, the package inventory and the sweeps that read it",
|
|
28015
28019
|
documents: "writing documents and knowledge, and regenerating product documents"
|
|
28016
28020
|
};
|
|
28017
28021
|
/** Every tool's toolset. A tool missing here fails at registration, so none can be added without a home. */
|
|
@@ -28078,6 +28082,7 @@ const TOOLSET_OF = {
|
|
|
28078
28082
|
taiga_get_monitoring: "observe",
|
|
28079
28083
|
taiga_get_delivery_metrics: "observe",
|
|
28080
28084
|
taiga_list_packages: "observe",
|
|
28085
|
+
taiga_start_sweep: "observe",
|
|
28081
28086
|
taiga_list_licenses: "observe",
|
|
28082
28087
|
taiga_change_license: "setup",
|
|
28083
28088
|
taiga_get_sbom: "observe",
|
|
@@ -35159,7 +35164,7 @@ function registerMaintenanceTools(server, client) {
|
|
|
35159
35164
|
}, (params) => runTool(async () => toolResult({ notices: await client.getNotices(params.productId, params.linkId) })));
|
|
35160
35165
|
server.registerTool("taiga_get_finding", {
|
|
35161
35166
|
title: "Get a maintenance finding",
|
|
35162
|
-
description: "Read one finding: how likely it is to be exploited, the advisory and its fixed version, where it is, which policy controls it breaches,
|
|
35167
|
+
description: "Read one finding: how likely it is to be exploited, the advisory and its fixed version, where it is, which policy controls it breaches, any fix under way, and triage: whether the code reaches it, as its factory judged it at a commit (advice; it never changes the status). fixable: false says taiga_fix_finding would refuse it. A secret's value is never stored.",
|
|
35163
35168
|
inputSchema: object({
|
|
35164
35169
|
findingId,
|
|
35165
35170
|
full: boolean().optional().describe("Carry the advisory's whole record: every affected range and reference (default false)")
|
|
@@ -35302,6 +35307,21 @@ function registerMaintenanceTools(server, client) {
|
|
|
35302
35307
|
...params.expiresAt !== void 0 ? { ignoreExpiresAt: params.expiresAt } : {}
|
|
35303
35308
|
})).data);
|
|
35304
35309
|
}));
|
|
35310
|
+
server.registerTool("taiga_start_sweep", {
|
|
35311
|
+
title: "Sweep a repository",
|
|
35312
|
+
description: "Scan one of a product's repositories now: its dependencies, secrets, code and infrastructure, the findings triaged and its code judged against the policies. Its primary repository when none is named. Returns the sweep; taiga_list_findings and taiga_get_policy_standing read what it found once it completes.",
|
|
35313
|
+
inputSchema: object({
|
|
35314
|
+
productId,
|
|
35315
|
+
linkId: idInput("repository link", "taiga_list_product_repositories gives it (its id); a linkable repository id is not one").optional()
|
|
35316
|
+
}),
|
|
35317
|
+
annotations: OPERATE
|
|
35318
|
+
}, (params) => runTool(async () => {
|
|
35319
|
+
const { id, ...run } = (await client.startSweep(params.productId, params.linkId)).data;
|
|
35320
|
+
return toolResult({
|
|
35321
|
+
sweepId: id,
|
|
35322
|
+
...run
|
|
35323
|
+
});
|
|
35324
|
+
}));
|
|
35305
35325
|
server.registerTool("taiga_fix_finding", {
|
|
35306
35326
|
title: "Fix a finding",
|
|
35307
35327
|
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 license finding the row marks fixable has its packages replaced by ones on the approved list. 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).",
|
|
@@ -55811,6 +55831,7 @@ const PAID_WORK = /* @__PURE__ */ new Set([
|
|
|
55811
55831
|
"taiga_review_plan",
|
|
55812
55832
|
"taiga_set_auto_build",
|
|
55813
55833
|
"taiga_start_import",
|
|
55834
|
+
"taiga_start_sweep",
|
|
55814
55835
|
"taiga_stop_generating_documents",
|
|
55815
55836
|
"taiga_stop_run",
|
|
55816
55837
|
"taiga_sync_design_tokens"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ai/mcp-server",
|
|
3
|
-
"version": "0.37.0-dev.
|
|
3
|
+
"version": "0.37.0-dev.985",
|
|
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",
|