@taiga-ai/mcp-server 0.26.2-rc.556 → 0.27.0-dev.559
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/README.md +7 -7
- package/dist/index.js +57 -21
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ You need an access key, made in Taiga under **Settings > Account > AI tools**, w
|
|
|
14
14
|
|
|
15
15
|
Set up your tool first and create the key when the setup asks for it. The key is shown once, so it should be the last thing you copy: copying the setup after it would replace it on your clipboard.
|
|
16
16
|
|
|
17
|
-
The same page shows the setup for your tool and environment. The examples here pin a release (`@taiga-ai/mcp-server@0.
|
|
17
|
+
The same page shows the setup for your tool and environment. The examples here pin a release (`@taiga-ai/mcp-server@0.27.0`), so an install runs the version you chose rather than whatever `latest` is at the next start.
|
|
18
18
|
|
|
19
19
|
## Install
|
|
20
20
|
|
|
@@ -23,21 +23,21 @@ The same page shows the setup for your tool and environment. The examples here p
|
|
|
23
23
|
Copy and run the command first. When it asks for your access key, create one in Taiga, copy it, paste it once and press Enter. Nothing appears as you paste; that keeps the key out of your shell history:
|
|
24
24
|
|
|
25
25
|
```sh
|
|
26
|
-
printf 'Taiga access key: ' && read -rs TAIGA_API_KEY && echo && claude mcp add taiga --scope user -e TAIGA_API_KEY="$TAIGA_API_KEY" -- npx -y @taiga-ai/mcp-server@0.
|
|
26
|
+
printf 'Taiga access key: ' && read -rs TAIGA_API_KEY && echo && claude mcp add taiga --scope user -e TAIGA_API_KEY="$TAIGA_API_KEY" -- npx -y @taiga-ai/mcp-server@0.27.0
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
```sh
|
|
30
|
-
printf 'Taiga access key: ' && read -rs TAIGA_API_KEY && echo && codex mcp add taiga --env TAIGA_API_KEY="$TAIGA_API_KEY" -- npx -y @taiga-ai/mcp-server@0.
|
|
30
|
+
printf 'Taiga access key: ' && read -rs TAIGA_API_KEY && echo && codex mcp add taiga --env TAIGA_API_KEY="$TAIGA_API_KEY" -- npx -y @taiga-ai/mcp-server@0.27.0
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
On Windows, in PowerShell (Claude Code needs `cmd /c` to start `npx`; the quoted `'--'` survives npm's PowerShell shims):
|
|
34
34
|
|
|
35
35
|
```powershell
|
|
36
|
-
$k = Read-Host 'Taiga access key' -AsSecureString; claude mcp add taiga --scope user -e "TAIGA_API_KEY=$([Net.NetworkCredential]::new('', $k).Password)" '--' cmd /c npx -y @taiga-ai/mcp-server@0.
|
|
36
|
+
$k = Read-Host 'Taiga access key' -AsSecureString; claude mcp add taiga --scope user -e "TAIGA_API_KEY=$([Net.NetworkCredential]::new('', $k).Password)" '--' cmd /c npx -y @taiga-ai/mcp-server@0.27.0
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
```powershell
|
|
40
|
-
$k = Read-Host 'Taiga access key' -AsSecureString; codex mcp add taiga --env "TAIGA_API_KEY=$([Net.NetworkCredential]::new('', $k).Password)" '--' npx -y @taiga-ai/mcp-server@0.
|
|
40
|
+
$k = Read-Host 'Taiga access key' -AsSecureString; codex mcp add taiga --env "TAIGA_API_KEY=$([Net.NetworkCredential]::new('', $k).Password)" '--' npx -y @taiga-ai/mcp-server@0.27.0
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
### Cursor, Windsurf, Claude Desktop and others
|
|
@@ -49,7 +49,7 @@ Most tools read the same `mcpServers` block. Add it first, then create a key and
|
|
|
49
49
|
"mcpServers": {
|
|
50
50
|
"taiga": {
|
|
51
51
|
"command": "npx",
|
|
52
|
-
"args": ["-y", "@taiga-ai/mcp-server@0.
|
|
52
|
+
"args": ["-y", "@taiga-ai/mcp-server@0.27.0"],
|
|
53
53
|
"env": { "TAIGA_API_KEY": "YOUR_ACCESS_KEY" }
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -78,7 +78,7 @@ In `.vscode/mcp.json`. VS Code reads `servers`, and can prompt for the key once
|
|
|
78
78
|
"taiga": {
|
|
79
79
|
"type": "stdio",
|
|
80
80
|
"command": "npx",
|
|
81
|
-
"args": ["-y", "@taiga-ai/mcp-server@0.
|
|
81
|
+
"args": ["-y", "@taiga-ai/mcp-server@0.27.0"],
|
|
82
82
|
"env": { "TAIGA_API_KEY": "${input:taiga-api-key}" }
|
|
83
83
|
}
|
|
84
84
|
}
|
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
|
/**
|
|
@@ -24725,11 +24735,11 @@ const TOOLSET_OF = {
|
|
|
24725
24735
|
taiga_wait: "core",
|
|
24726
24736
|
taiga_queue_initiative: "operate",
|
|
24727
24737
|
taiga_move_initiative: "operate",
|
|
24728
|
-
|
|
24729
|
-
taiga_reject_plan: "operate",
|
|
24738
|
+
taiga_review_plan: "operate",
|
|
24730
24739
|
taiga_plan_again: "operate",
|
|
24731
24740
|
taiga_resume_initiative: "operate",
|
|
24732
24741
|
taiga_stop_run: "operate",
|
|
24742
|
+
taiga_request_changes: "operate",
|
|
24733
24743
|
taiga_request_initiatives: "operate",
|
|
24734
24744
|
taiga_fix_finding: "operate",
|
|
24735
24745
|
taiga_fix_policy_violation: "operate",
|
|
@@ -25108,7 +25118,7 @@ function idSource(argument) {
|
|
|
25108
25118
|
return BY_ARGUMENT[argument];
|
|
25109
25119
|
}
|
|
25110
25120
|
/** The verbs and joining words of tool names: what a tool does, not what it is about. */
|
|
25111
|
-
const VERBS = new Set("get list update create set publish move queue approve reject resume stop wait for fix ignore mark add delete retry regenerate refresh link unlink rename request resolve start finish reopen pause preview define generate again whoami".split(" "));
|
|
25121
|
+
const VERBS = new Set("get list update create set publish move queue approve reject review resume stop wait for fix ignore mark add delete retry regenerate refresh link unlink rename request resolve start finish reopen pause preview define generate again whoami".split(" "));
|
|
25112
25122
|
/** What a tool name is about, singular: taiga_list_initiatives is about an initiative. */
|
|
25113
25123
|
const nouns = (tool) => new Set(tool.replace(/^taiga_/, "").split("_").filter((word) => !VERBS.has(word)).map((word) => word.replace(/s$/, "")));
|
|
25114
25124
|
/**
|
|
@@ -27592,6 +27602,22 @@ function registerBuildTools(server, client) {
|
|
|
27592
27602
|
});
|
|
27593
27603
|
}));
|
|
27594
27604
|
if (!client.hasCapability("products:write")) return;
|
|
27605
|
+
if (client.hasFeature("requestChanges")) server.registerTool("taiga_request_changes", {
|
|
27606
|
+
title: "Request changes on a pull request",
|
|
27607
|
+
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.",
|
|
27608
|
+
inputSchema: object({
|
|
27609
|
+
runId,
|
|
27610
|
+
notes: string$2().trim().min(1).max(CHANGE_REQUEST_MAX_CHARS).describe("What should change, in markdown: a list of changes, questions, or both")
|
|
27611
|
+
}),
|
|
27612
|
+
annotations: OPERATE
|
|
27613
|
+
}, (params) => runTool(async () => {
|
|
27614
|
+
const result = await client.requestBuildRunChanges(params.runId, params.notes);
|
|
27615
|
+
const row = pickFields([result.data], RUN_OUTCOME_FIELDS)[0];
|
|
27616
|
+
return toolResult({
|
|
27617
|
+
...readableRow(row),
|
|
27618
|
+
requestId: result.data.requestId
|
|
27619
|
+
});
|
|
27620
|
+
}));
|
|
27595
27621
|
server.registerTool("taiga_stop_run", {
|
|
27596
27622
|
title: "Stop a run",
|
|
27597
27623
|
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.",
|
|
@@ -27614,7 +27640,7 @@ const MOVE_ASIDE = "or move it down (taiga_queue_initiative with afterId) or off
|
|
|
27614
27640
|
* cause a tool answers directly.
|
|
27615
27641
|
*/
|
|
27616
27642
|
function haltNextStep(cause) {
|
|
27617
|
-
if (cause === "awaiting_plan_review") return "Read the plan with taiga_get_plan, then approve it
|
|
27643
|
+
if (cause === "awaiting_plan_review") return "Read the plan with taiga_get_plan, then approve it or send it back (taiga_review_plan).";
|
|
27618
27644
|
const spec = cause ? HALT_CAUSES[cause] : void 0;
|
|
27619
27645
|
if (!cause || !spec) return `Read the initiative with taiga_get_initiative to see why, ${MOVE_ASIDE}`;
|
|
27620
27646
|
const known = cause;
|
|
@@ -27862,7 +27888,7 @@ function standing(item) {
|
|
|
27862
27888
|
const CTA_MOVE = {
|
|
27863
27889
|
start_plan: "taiga_queue_initiative puts it on the line to be planned and built (paid work: ask first)",
|
|
27864
27890
|
retry_plan: "taiga_plan_again asks for a new plan (paid work: ask first)",
|
|
27865
|
-
start_build: "read the plan with taiga_get_plan, then
|
|
27891
|
+
start_build: "read the plan with taiga_get_plan, then taiga_review_plan approves it to build or rejects it to send it back",
|
|
27866
27892
|
resume_build: "taiga_resume_initiative carries the run on (paid work: ask first)",
|
|
27867
27893
|
retry_build: "a new run starts over from the web; taiga_move_initiative takes it off the line",
|
|
27868
27894
|
review_pr: "a person reviews and merges the pull request",
|
|
@@ -28070,7 +28096,7 @@ function registerBacklogTools(server, client) {
|
|
|
28070
28096
|
if (may("backlog:write") && may("products:write")) registerQueue(server, client);
|
|
28071
28097
|
if (may("products:write")) registerResume(server, client);
|
|
28072
28098
|
if (may("products:write")) registerReviewGate(server, client);
|
|
28073
|
-
if (may("backlog:read") && may("products:write"))
|
|
28099
|
+
if (may("backlog:read") && may("products:write")) registerPlanReview(server, client);
|
|
28074
28100
|
if (may("backlog:read") && may("backlog:write") && may("products:write")) registerPlanAgain(server, client);
|
|
28075
28101
|
}
|
|
28076
28102
|
function registerBacklogReads(server, client) {
|
|
@@ -28249,7 +28275,7 @@ async function reviewGate(client, item) {
|
|
|
28249
28275
|
return {
|
|
28250
28276
|
buildsWithoutReview: builds,
|
|
28251
28277
|
decidedBy: own === null ? "product" : "initiative",
|
|
28252
|
-
meaning: builds ? "The plan is built as soon as it lands; nobody reads it first." : "The line stops at the plan for a person to approve or reject it (taiga_get_plan,
|
|
28278
|
+
meaning: builds ? "The plan is built as soon as it lands; nobody reads it first." : "The line stops at the plan for a person to approve or reject it (taiga_get_plan, taiga_review_plan)."
|
|
28253
28279
|
};
|
|
28254
28280
|
} catch (error) {
|
|
28255
28281
|
if (!isApiFailure$2(error)) throw error;
|
|
@@ -28324,22 +28350,32 @@ function registerResume(server, client) {
|
|
|
28324
28350
|
annotations: OPERATE
|
|
28325
28351
|
}, (params) => runTool(async () => outcome((await client.resumeInitiative(params.initiativeId)).data)));
|
|
28326
28352
|
}
|
|
28327
|
-
|
|
28328
|
-
|
|
28329
|
-
|
|
28330
|
-
|
|
28331
|
-
|
|
28332
|
-
|
|
28333
|
-
|
|
28334
|
-
|
|
28335
|
-
title: "Reject a plan",
|
|
28336
|
-
description: "Send an initiative's plan back with a comment; the planner writes a new one from it. Pass the plan's ID.",
|
|
28353
|
+
/**
|
|
28354
|
+
* One tool for both verdicts on a plan (PRO-3044): approving and sending back are the same review, and two tools for
|
|
28355
|
+
* it pushed core + operate past its 30-tool budget once taiga_request_changes joined operate.
|
|
28356
|
+
*/
|
|
28357
|
+
function registerPlanReview(server, client) {
|
|
28358
|
+
server.registerTool("taiga_review_plan", {
|
|
28359
|
+
title: "Approve or reject a plan",
|
|
28360
|
+
description: "Give an initiative's plan its verdict. approve starts the run that builds it; reject sends it back with a comment and the planner writes a new one from it. Read the plan first (taiga_get_plan) and pass its ID; refused if the plan was replaced since, a new one is being written, or a run is already going.",
|
|
28337
28361
|
inputSchema: object({
|
|
28338
28362
|
planId,
|
|
28339
|
-
|
|
28363
|
+
verdict: _enum(["approve", "reject"]).describe("approve builds the plan; reject sends it back"),
|
|
28364
|
+
comment: string$2().trim().max(PLAN_REJECTION_COMMENT_MAX_CHARS).optional().describe("With reject, and only then: what the next plan should do differently, a paragraph of direction")
|
|
28365
|
+
}).superRefine((input, ctx) => {
|
|
28366
|
+
if (input.verdict === "reject" && !input.comment) ctx.addIssue({
|
|
28367
|
+
code: "custom",
|
|
28368
|
+
path: ["comment"],
|
|
28369
|
+
message: "A rejection needs a comment: what the next plan should do differently."
|
|
28370
|
+
});
|
|
28371
|
+
if (input.verdict === "approve" && input.comment) ctx.addIssue({
|
|
28372
|
+
code: "custom",
|
|
28373
|
+
path: ["comment"],
|
|
28374
|
+
message: "An approval takes no comment: leave it out, or reject with it."
|
|
28375
|
+
});
|
|
28340
28376
|
}),
|
|
28341
28377
|
annotations: OPERATE
|
|
28342
|
-
}, (params) => runTool(async () => outcome((await client.rejectPlan(params.planId, { comment: params.comment })).data)));
|
|
28378
|
+
}, (params) => runTool(async () => params.verdict === "approve" ? outcome((await client.approvePlan(params.planId)).data) : outcome((await client.rejectPlan(params.planId, { comment: params.comment ?? "" })).data)));
|
|
28343
28379
|
}
|
|
28344
28380
|
//#endregion
|
|
28345
28381
|
//#region src/tools/inbox.ts
|
|
@@ -45684,7 +45720,6 @@ function writeNotice(name, annotations) {
|
|
|
45684
45720
|
*/
|
|
45685
45721
|
const PAID_WORK = /* @__PURE__ */ new Set([
|
|
45686
45722
|
"taiga_add_knowledge",
|
|
45687
|
-
"taiga_approve_plan",
|
|
45688
45723
|
"taiga_finish_discovery",
|
|
45689
45724
|
"taiga_fix_finding",
|
|
45690
45725
|
"taiga_fix_policy_violation",
|
|
@@ -45695,10 +45730,11 @@ const PAID_WORK = /* @__PURE__ */ new Set([
|
|
|
45695
45730
|
"taiga_queue_initiative",
|
|
45696
45731
|
"taiga_refresh_reality_documents",
|
|
45697
45732
|
"taiga_regenerate_product_document",
|
|
45698
|
-
"
|
|
45733
|
+
"taiga_request_changes",
|
|
45699
45734
|
"taiga_request_initiatives",
|
|
45700
45735
|
"taiga_resume_initiative",
|
|
45701
45736
|
"taiga_retry_knowledge",
|
|
45737
|
+
"taiga_review_plan",
|
|
45702
45738
|
"taiga_set_auto_build",
|
|
45703
45739
|
"taiga_start_import",
|
|
45704
45740
|
"taiga_stop_generating_documents",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ai/mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0-dev.559",
|
|
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",
|