@taiga-ai/mcp-server 0.26.2-rc.558 → 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 +29 -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
|
@@ -24735,8 +24735,7 @@ const TOOLSET_OF = {
|
|
|
24735
24735
|
taiga_wait: "core",
|
|
24736
24736
|
taiga_queue_initiative: "operate",
|
|
24737
24737
|
taiga_move_initiative: "operate",
|
|
24738
|
-
|
|
24739
|
-
taiga_reject_plan: "operate",
|
|
24738
|
+
taiga_review_plan: "operate",
|
|
24740
24739
|
taiga_plan_again: "operate",
|
|
24741
24740
|
taiga_resume_initiative: "operate",
|
|
24742
24741
|
taiga_stop_run: "operate",
|
|
@@ -25119,7 +25118,7 @@ function idSource(argument) {
|
|
|
25119
25118
|
return BY_ARGUMENT[argument];
|
|
25120
25119
|
}
|
|
25121
25120
|
/** The verbs and joining words of tool names: what a tool does, not what it is about. */
|
|
25122
|
-
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(" "));
|
|
25123
25122
|
/** What a tool name is about, singular: taiga_list_initiatives is about an initiative. */
|
|
25124
25123
|
const nouns = (tool) => new Set(tool.replace(/^taiga_/, "").split("_").filter((word) => !VERBS.has(word)).map((word) => word.replace(/s$/, "")));
|
|
25125
25124
|
/**
|
|
@@ -27641,7 +27640,7 @@ const MOVE_ASIDE = "or move it down (taiga_queue_initiative with afterId) or off
|
|
|
27641
27640
|
* cause a tool answers directly.
|
|
27642
27641
|
*/
|
|
27643
27642
|
function haltNextStep(cause) {
|
|
27644
|
-
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).";
|
|
27645
27644
|
const spec = cause ? HALT_CAUSES[cause] : void 0;
|
|
27646
27645
|
if (!cause || !spec) return `Read the initiative with taiga_get_initiative to see why, ${MOVE_ASIDE}`;
|
|
27647
27646
|
const known = cause;
|
|
@@ -27889,7 +27888,7 @@ function standing(item) {
|
|
|
27889
27888
|
const CTA_MOVE = {
|
|
27890
27889
|
start_plan: "taiga_queue_initiative puts it on the line to be planned and built (paid work: ask first)",
|
|
27891
27890
|
retry_plan: "taiga_plan_again asks for a new plan (paid work: ask first)",
|
|
27892
|
-
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",
|
|
27893
27892
|
resume_build: "taiga_resume_initiative carries the run on (paid work: ask first)",
|
|
27894
27893
|
retry_build: "a new run starts over from the web; taiga_move_initiative takes it off the line",
|
|
27895
27894
|
review_pr: "a person reviews and merges the pull request",
|
|
@@ -28097,7 +28096,7 @@ function registerBacklogTools(server, client) {
|
|
|
28097
28096
|
if (may("backlog:write") && may("products:write")) registerQueue(server, client);
|
|
28098
28097
|
if (may("products:write")) registerResume(server, client);
|
|
28099
28098
|
if (may("products:write")) registerReviewGate(server, client);
|
|
28100
|
-
if (may("backlog:read") && may("products:write"))
|
|
28099
|
+
if (may("backlog:read") && may("products:write")) registerPlanReview(server, client);
|
|
28101
28100
|
if (may("backlog:read") && may("backlog:write") && may("products:write")) registerPlanAgain(server, client);
|
|
28102
28101
|
}
|
|
28103
28102
|
function registerBacklogReads(server, client) {
|
|
@@ -28276,7 +28275,7 @@ async function reviewGate(client, item) {
|
|
|
28276
28275
|
return {
|
|
28277
28276
|
buildsWithoutReview: builds,
|
|
28278
28277
|
decidedBy: own === null ? "product" : "initiative",
|
|
28279
|
-
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)."
|
|
28280
28279
|
};
|
|
28281
28280
|
} catch (error) {
|
|
28282
28281
|
if (!isApiFailure$2(error)) throw error;
|
|
@@ -28351,22 +28350,32 @@ function registerResume(server, client) {
|
|
|
28351
28350
|
annotations: OPERATE
|
|
28352
28351
|
}, (params) => runTool(async () => outcome((await client.resumeInitiative(params.initiativeId)).data)));
|
|
28353
28352
|
}
|
|
28354
|
-
|
|
28355
|
-
|
|
28356
|
-
|
|
28357
|
-
|
|
28358
|
-
|
|
28359
|
-
|
|
28360
|
-
|
|
28361
|
-
|
|
28362
|
-
title: "Reject a plan",
|
|
28363
|
-
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.",
|
|
28364
28361
|
inputSchema: object({
|
|
28365
28362
|
planId,
|
|
28366
|
-
|
|
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
|
+
});
|
|
28367
28376
|
}),
|
|
28368
28377
|
annotations: OPERATE
|
|
28369
|
-
}, (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)));
|
|
28370
28379
|
}
|
|
28371
28380
|
//#endregion
|
|
28372
28381
|
//#region src/tools/inbox.ts
|
|
@@ -45711,7 +45720,6 @@ function writeNotice(name, annotations) {
|
|
|
45711
45720
|
*/
|
|
45712
45721
|
const PAID_WORK = /* @__PURE__ */ new Set([
|
|
45713
45722
|
"taiga_add_knowledge",
|
|
45714
|
-
"taiga_approve_plan",
|
|
45715
45723
|
"taiga_finish_discovery",
|
|
45716
45724
|
"taiga_fix_finding",
|
|
45717
45725
|
"taiga_fix_policy_violation",
|
|
@@ -45722,11 +45730,11 @@ const PAID_WORK = /* @__PURE__ */ new Set([
|
|
|
45722
45730
|
"taiga_queue_initiative",
|
|
45723
45731
|
"taiga_refresh_reality_documents",
|
|
45724
45732
|
"taiga_regenerate_product_document",
|
|
45725
|
-
"taiga_reject_plan",
|
|
45726
45733
|
"taiga_request_changes",
|
|
45727
45734
|
"taiga_request_initiatives",
|
|
45728
45735
|
"taiga_resume_initiative",
|
|
45729
45736
|
"taiga_retry_knowledge",
|
|
45737
|
+
"taiga_review_plan",
|
|
45730
45738
|
"taiga_set_auto_build",
|
|
45731
45739
|
"taiga_start_import",
|
|
45732
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",
|