@taiga-ai/mcp-server 0.26.2-rc.556 → 0.26.2-rc.558
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 +28 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22289,6 +22289,10 @@ var TaigaClient = class {
|
|
|
22289
22289
|
getIntrospection() {
|
|
22290
22290
|
return this.introspection;
|
|
22291
22291
|
}
|
|
22292
|
+
/** Whether a release toggle an MCP tool depends on is on where the key's API runs (PRO-3037). */
|
|
22293
|
+
hasFeature(feature) {
|
|
22294
|
+
return this.introspection?.mcpFeatures?.includes(feature) ?? false;
|
|
22295
|
+
}
|
|
22292
22296
|
hasCapability(capability) {
|
|
22293
22297
|
if (!this.introspection) return false;
|
|
22294
22298
|
return this.introspection.capabilities.includes(capability);
|
|
@@ -22463,6 +22467,10 @@ var TaigaClient = class {
|
|
|
22463
22467
|
async stopBuildRun(id) {
|
|
22464
22468
|
return this.request("POST", `/builds/${seg(id)}/stop`);
|
|
22465
22469
|
}
|
|
22470
|
+
/** Ask the coding agent for changes to the run's pull request (PRO-3035). */
|
|
22471
|
+
async requestBuildRunChanges(id, notes) {
|
|
22472
|
+
return this.request("POST", `/builds/${seg(id)}/request-changes`, { notes });
|
|
22473
|
+
}
|
|
22466
22474
|
async listBuildRunSteps(id) {
|
|
22467
22475
|
return this.request("GET", `/builds/${seg(id)}/steps`);
|
|
22468
22476
|
}
|
|
@@ -24107,6 +24115,8 @@ const MCP_TOOLSETS = [
|
|
|
24107
24115
|
"documents"
|
|
24108
24116
|
];
|
|
24109
24117
|
[...TURN_EVENT_TRIGGERS];
|
|
24118
|
+
/** Longest request for changes from Taiga (PRO-3035): about four pages of prose. */
|
|
24119
|
+
const CHANGE_REQUEST_MAX_CHARS = 1e4;
|
|
24110
24120
|
//#endregion
|
|
24111
24121
|
//#region ../../packages/types/dist/maintenance.js
|
|
24112
24122
|
/**
|
|
@@ -24730,6 +24740,7 @@ const TOOLSET_OF = {
|
|
|
24730
24740
|
taiga_plan_again: "operate",
|
|
24731
24741
|
taiga_resume_initiative: "operate",
|
|
24732
24742
|
taiga_stop_run: "operate",
|
|
24743
|
+
taiga_request_changes: "operate",
|
|
24733
24744
|
taiga_request_initiatives: "operate",
|
|
24734
24745
|
taiga_fix_finding: "operate",
|
|
24735
24746
|
taiga_fix_policy_violation: "operate",
|
|
@@ -27592,6 +27603,22 @@ function registerBuildTools(server, client) {
|
|
|
27592
27603
|
});
|
|
27593
27604
|
}));
|
|
27594
27605
|
if (!client.hasCapability("products:write")) return;
|
|
27606
|
+
if (client.hasFeature("requestChanges")) server.registerTool("taiga_request_changes", {
|
|
27607
|
+
title: "Request changes on a pull request",
|
|
27608
|
+
description: "Tell the coding agent what should change on a run's open pull request, as a person's review would: it splits the request into separate asks, makes the changes on the same pull request, and answers each one there (done, answered, or not done and why). Only for a run whose pull request is waiting for review (the initiative is in review with its pull request open); refused otherwise, and where the organization does not have it yet. taiga_wait follows the run until it is back in review.",
|
|
27609
|
+
inputSchema: object({
|
|
27610
|
+
runId,
|
|
27611
|
+
notes: string$2().trim().min(1).max(CHANGE_REQUEST_MAX_CHARS).describe("What should change, in markdown: a list of changes, questions, or both")
|
|
27612
|
+
}),
|
|
27613
|
+
annotations: OPERATE
|
|
27614
|
+
}, (params) => runTool(async () => {
|
|
27615
|
+
const result = await client.requestBuildRunChanges(params.runId, params.notes);
|
|
27616
|
+
const row = pickFields([result.data], RUN_OUTCOME_FIELDS)[0];
|
|
27617
|
+
return toolResult({
|
|
27618
|
+
...readableRow(row),
|
|
27619
|
+
requestId: result.data.requestId
|
|
27620
|
+
});
|
|
27621
|
+
}));
|
|
27595
27622
|
server.registerTool("taiga_stop_run", {
|
|
27596
27623
|
title: "Stop a run",
|
|
27597
27624
|
description: "Stop a run in an emergency, when its initiative cannot be moved out of Build. Normally stop work by moving the initiative out of Build. The branch and any draft pull request stay. Refused for a run that cannot be stopped this way.",
|
|
@@ -45696,6 +45723,7 @@ const PAID_WORK = /* @__PURE__ */ new Set([
|
|
|
45696
45723
|
"taiga_refresh_reality_documents",
|
|
45697
45724
|
"taiga_regenerate_product_document",
|
|
45698
45725
|
"taiga_reject_plan",
|
|
45726
|
+
"taiga_request_changes",
|
|
45699
45727
|
"taiga_request_initiatives",
|
|
45700
45728
|
"taiga_resume_initiative",
|
|
45701
45729
|
"taiga_retry_knowledge",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ai/mcp-server",
|
|
3
|
-
"version": "0.26.2-rc.
|
|
3
|
+
"version": "0.26.2-rc.558",
|
|
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",
|