@taiga-ai/mcp-server 0.28.0-dev.572 → 0.28.0-dev.573
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 +30 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22281,6 +22281,22 @@ var TaigaClient = class {
|
|
|
22281
22281
|
const parsed = await response.json();
|
|
22282
22282
|
return options.keepTenant ? parsed : withoutTenant(parsed);
|
|
22283
22283
|
}
|
|
22284
|
+
/** A GET whose answer is plain text, not JSON (the third-party notices, PRO-3054). */
|
|
22285
|
+
async requestText(path) {
|
|
22286
|
+
const response = await fetch(`${this.baseUrl}/v1${path}`, {
|
|
22287
|
+
method: "GET",
|
|
22288
|
+
headers: {
|
|
22289
|
+
Authorization: `Bearer ${this.apiKey}`,
|
|
22290
|
+
"User-Agent": `taiga-ai-mcp-server/${SERVER_VERSION}`
|
|
22291
|
+
},
|
|
22292
|
+
redirect: "error"
|
|
22293
|
+
});
|
|
22294
|
+
if (!response.ok) {
|
|
22295
|
+
const text = await response.text().catch(() => "");
|
|
22296
|
+
throw new TaigaApiError("GET", path, response.status, text);
|
|
22297
|
+
}
|
|
22298
|
+
return response.text();
|
|
22299
|
+
}
|
|
22284
22300
|
async introspect() {
|
|
22285
22301
|
const result = await this.request("GET", "/auth/introspect", void 0, { keepTenant: true });
|
|
22286
22302
|
this.introspection = result.data;
|
|
@@ -22497,6 +22513,9 @@ var TaigaClient = class {
|
|
|
22497
22513
|
async getSbom(productId, repositoryId) {
|
|
22498
22514
|
return this.request("GET", `/products/${seg(productId)}/maintenance/repositories/${seg(repositoryId)}/sbom`);
|
|
22499
22515
|
}
|
|
22516
|
+
async getNotices(productId, repositoryId) {
|
|
22517
|
+
return this.requestText(`/products/${seg(productId)}/maintenance/repositories/${seg(repositoryId)}/notices`);
|
|
22518
|
+
}
|
|
22500
22519
|
async updateFinding(id, body) {
|
|
22501
22520
|
return this.request("PATCH", `/maintenance/findings/${seg(id)}`, body);
|
|
22502
22521
|
}
|
|
@@ -24773,6 +24792,7 @@ const TOOLSET_OF = {
|
|
|
24773
24792
|
taiga_get_delivery_metrics: "observe",
|
|
24774
24793
|
taiga_list_packages: "observe",
|
|
24775
24794
|
taiga_get_sbom: "observe",
|
|
24795
|
+
taiga_get_notices: "observe",
|
|
24776
24796
|
taiga_get_factory_document: "documents",
|
|
24777
24797
|
taiga_update_organization_document: "documents",
|
|
24778
24798
|
taiga_publish_organization_document: "documents",
|
|
@@ -25066,6 +25086,7 @@ const BY_ARGUMENT = {
|
|
|
25066
25086
|
const BY_TOOL = {
|
|
25067
25087
|
taiga_resolve_action: () => "taiga_list_action_required lists the items with their IDs.",
|
|
25068
25088
|
taiga_get_sbom: () => "An SBOM exists once a sweep has inventoried that repository, where the licenses feature is enabled; taiga_list_packages (linkId) says whether it has packages, and taiga_list_product_repositories lists the links.",
|
|
25089
|
+
taiga_get_notices: () => "Notices exist once a sweep has inventoried that repository, where the licenses feature is enabled; taiga_list_product_repositories lists the links.",
|
|
25069
25090
|
taiga_get_plan: (said) => /\bplan\b/i.test(said) ? "taiga_get_initiative's situation says whether one is being planned or failed, and names the call that asks for one (taiga_queue_initiative off the line, taiga_plan_again for a failed plan)." : ITEM_ID_HINT
|
|
25070
25091
|
};
|
|
25071
25092
|
/**
|
|
@@ -25883,6 +25904,15 @@ function registerMaintenanceTools(server, client) {
|
|
|
25883
25904
|
}),
|
|
25884
25905
|
annotations: READ_ONLY
|
|
25885
25906
|
}, (params) => runTool(async () => toolResult(await client.getSbom(params.productId, params.linkId))));
|
|
25907
|
+
server.registerTool("taiga_get_notices", {
|
|
25908
|
+
title: "Download a repository's third-party notices",
|
|
25909
|
+
description: "One repository's third-party notices: every package it ships, with its licence and copyright holders, as the text a product carries for attribution. NOT_FOUND where the licenses feature is off, or before a sweep has read the repository.",
|
|
25910
|
+
inputSchema: object({
|
|
25911
|
+
productId,
|
|
25912
|
+
linkId: idInput("repository link", "taiga_list_product_repositories gives it")
|
|
25913
|
+
}),
|
|
25914
|
+
annotations: READ_ONLY
|
|
25915
|
+
}, (params) => runTool(async () => toolResult({ notices: await client.getNotices(params.productId, params.linkId) })));
|
|
25886
25916
|
server.registerTool("taiga_get_finding", {
|
|
25887
25917
|
title: "Get a maintenance finding",
|
|
25888
25918
|
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, and any fix under way. fixable: false says taiga_fix_finding would refuse it. A secret's value is never stored.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ai/mcp-server",
|
|
3
|
-
"version": "0.28.0-dev.
|
|
3
|
+
"version": "0.28.0-dev.573",
|
|
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",
|