@taiga-ai/mcp-server 0.28.0-dev.572 → 0.28.0-dev.574
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 +55 -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
|
}
|
|
@@ -23642,6 +23661,22 @@ const INBOX_TASK_PHASES = [
|
|
|
23642
23661
|
"wiring",
|
|
23643
23662
|
"followup"
|
|
23644
23663
|
];
|
|
23664
|
+
//#endregion
|
|
23665
|
+
//#region ../../packages/types/dist/build-narrative.js
|
|
23666
|
+
/**
|
|
23667
|
+
* The build narrative: the project-owner-facing timeline a coding agent posts
|
|
23668
|
+
* while it builds (decisions, tradeoffs, setup it needs, quality findings).
|
|
23669
|
+
*
|
|
23670
|
+
* The agent posts each entry to `POST /v1/builds/:id/progress` as a
|
|
23671
|
+
* `narrative` callback; the API validates it with {@link buildNarrativeBody},
|
|
23672
|
+
* stores it as a `stream_events` row and publishes it over SSE. The run page
|
|
23673
|
+
* reads the timeline either live (SSE) or on page load
|
|
23674
|
+
* (`GET /v1/builds/:id/narrative`, which queries the same rows), so this one
|
|
23675
|
+
* schema is the source of the callback contract, the stored payload type and
|
|
23676
|
+
* the list of kinds every reader accepts.
|
|
23677
|
+
*/
|
|
23678
|
+
/** How long one answer of a `run_summary` may be. */
|
|
23679
|
+
const RUN_SUMMARY_ANSWER_MAX = 1e3;
|
|
23645
23680
|
/** A moment as factory-vm records it: ISO 8601, with its offset. */
|
|
23646
23681
|
const moment = datetime({ offset: true });
|
|
23647
23682
|
const optionalMoment = moment.optional();
|
|
@@ -23707,6 +23742,15 @@ discriminatedUnion("kind", [
|
|
|
23707
23742
|
observedAt: optionalMoment,
|
|
23708
23743
|
stepId: optionalUuid
|
|
23709
23744
|
}),
|
|
23745
|
+
object({
|
|
23746
|
+
type: literal("narrative"),
|
|
23747
|
+
kind: literal("run_summary"),
|
|
23748
|
+
changed: string$2().max(RUN_SUMMARY_ANSWER_MAX),
|
|
23749
|
+
checked: string$2().max(RUN_SUMMARY_ANSWER_MAX),
|
|
23750
|
+
decided: string$2().max(RUN_SUMMARY_ANSWER_MAX),
|
|
23751
|
+
unsure: string$2().max(RUN_SUMMARY_ANSWER_MAX),
|
|
23752
|
+
stepId: optionalUuid
|
|
23753
|
+
}),
|
|
23710
23754
|
object({
|
|
23711
23755
|
type: literal("narrative"),
|
|
23712
23756
|
kind: literal("agent_update"),
|
|
@@ -24773,6 +24817,7 @@ const TOOLSET_OF = {
|
|
|
24773
24817
|
taiga_get_delivery_metrics: "observe",
|
|
24774
24818
|
taiga_list_packages: "observe",
|
|
24775
24819
|
taiga_get_sbom: "observe",
|
|
24820
|
+
taiga_get_notices: "observe",
|
|
24776
24821
|
taiga_get_factory_document: "documents",
|
|
24777
24822
|
taiga_update_organization_document: "documents",
|
|
24778
24823
|
taiga_publish_organization_document: "documents",
|
|
@@ -25066,6 +25111,7 @@ const BY_ARGUMENT = {
|
|
|
25066
25111
|
const BY_TOOL = {
|
|
25067
25112
|
taiga_resolve_action: () => "taiga_list_action_required lists the items with their IDs.",
|
|
25068
25113
|
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.",
|
|
25114
|
+
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
25115
|
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
25116
|
};
|
|
25071
25117
|
/**
|
|
@@ -25883,6 +25929,15 @@ function registerMaintenanceTools(server, client) {
|
|
|
25883
25929
|
}),
|
|
25884
25930
|
annotations: READ_ONLY
|
|
25885
25931
|
}, (params) => runTool(async () => toolResult(await client.getSbom(params.productId, params.linkId))));
|
|
25932
|
+
server.registerTool("taiga_get_notices", {
|
|
25933
|
+
title: "Download a repository's third-party notices",
|
|
25934
|
+
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.",
|
|
25935
|
+
inputSchema: object({
|
|
25936
|
+
productId,
|
|
25937
|
+
linkId: idInput("repository link", "taiga_list_product_repositories gives it")
|
|
25938
|
+
}),
|
|
25939
|
+
annotations: READ_ONLY
|
|
25940
|
+
}, (params) => runTool(async () => toolResult({ notices: await client.getNotices(params.productId, params.linkId) })));
|
|
25886
25941
|
server.registerTool("taiga_get_finding", {
|
|
25887
25942
|
title: "Get a maintenance finding",
|
|
25888
25943
|
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.574",
|
|
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",
|