@taiga-ai/mcp-server 0.32.0-dev.674 → 0.32.0-dev.675
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 +14 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -25861,12 +25861,24 @@ const PACKAGE_ROW_FIELDS = [
|
|
|
25861
25861
|
"otherPlatformsOnly",
|
|
25862
25862
|
"licenseSource",
|
|
25863
25863
|
"licenseGap",
|
|
25864
|
+
"licenseNotes",
|
|
25864
25865
|
"scopeReason",
|
|
25865
25866
|
"parentReason",
|
|
25866
25867
|
"sourcePath",
|
|
25867
25868
|
"productRepositoryId",
|
|
25868
25869
|
"detectedAt"
|
|
25869
25870
|
];
|
|
25871
|
+
/**
|
|
25872
|
+
* The organization's own package (milestone 2j) reads as its own code: no
|
|
25873
|
+
* licence to decide, so not the licence a public package of that name has.
|
|
25874
|
+
*/
|
|
25875
|
+
function ownCode(row) {
|
|
25876
|
+
return row["firstParty"] === true ? {
|
|
25877
|
+
...row,
|
|
25878
|
+
licenses: [],
|
|
25879
|
+
ownCode: true
|
|
25880
|
+
} : row;
|
|
25881
|
+
}
|
|
25870
25882
|
const FINDING_ROW_FIELDS = [
|
|
25871
25883
|
"id",
|
|
25872
25884
|
"kind",
|
|
@@ -26225,7 +26237,7 @@ function registerMaintenanceTools(server, client) {
|
|
|
26225
26237
|
}));
|
|
26226
26238
|
server.registerTool("taiga_list_packages", {
|
|
26227
26239
|
title: "List the package inventory",
|
|
26228
|
-
description: "List every package a product's code uses, with version, license, whether it is direct or dev only, and what pulls a transitive one in. The first page summarizes licenses against the allowed list. Filter by license, name or repository. NOT_FOUND where the licenses feature is off.",
|
|
26240
|
+
description: "List every package a product's code uses, with version, license, whether it is direct or dev only, and what pulls a transitive one in; ownCode marks the organization's own packages, approved as its own code. The first page summarizes licenses against the allowed list. Filter by license, name or repository. NOT_FOUND where the licenses feature is off.",
|
|
26229
26241
|
inputSchema: object({
|
|
26230
26242
|
productId,
|
|
26231
26243
|
license: string$2().min(1).max(MAINTENANCE_LICENSE_FILTER_MAX).optional().describe("Only packages carrying exactly this SPDX string"),
|
|
@@ -26242,7 +26254,7 @@ function registerMaintenanceTools(server, client) {
|
|
|
26242
26254
|
}), params.cursor === void 0 ? client.getLicenseSummary(id) : Promise.resolve(null)]);
|
|
26243
26255
|
return toolResult({
|
|
26244
26256
|
...summary ? { licenses: summary.data } : {},
|
|
26245
|
-
...page(pickFields(result.data, PACKAGE_ROW_FIELDS), result.nextCursor),
|
|
26257
|
+
...page(pickFields(result.data, PACKAGE_ROW_FIELDS).map(ownCode), result.nextCursor),
|
|
26246
26258
|
...typeof result.totalCount === "number" ? { totalCount: result.totalCount } : {}
|
|
26247
26259
|
});
|
|
26248
26260
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ai/mcp-server",
|
|
3
|
-
"version": "0.32.0-dev.
|
|
3
|
+
"version": "0.32.0-dev.675",
|
|
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",
|