@taiga-ai/mcp-server 0.26.2-rc.558 → 0.27.0-dev.560

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.
Files changed (3) hide show
  1. package/README.md +7 -7
  2. package/dist/index.js +30 -21
  3. 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.26.2`), so an install runs the version you chose rather than whatever `latest` is at the next start.
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.2
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.26.2
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.26.2
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.26.2
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.26.2"],
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.26.2"],
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
- taiga_approve_plan: "operate",
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
  /**
@@ -25551,6 +25550,7 @@ const FINDING_ROW_FIELDS = [
25551
25550
  "remediableBy",
25552
25551
  "controls",
25553
25552
  "backlogItemId",
25553
+ "createdAt",
25554
25554
  "detectedAt",
25555
25555
  "ignoreReason",
25556
25556
  "ignoreExpiresAt"
@@ -27641,7 +27641,7 @@ const MOVE_ASIDE = "or move it down (taiga_queue_initiative with afterId) or off
27641
27641
  * cause a tool answers directly.
27642
27642
  */
27643
27643
  function haltNextStep(cause) {
27644
- if (cause === "awaiting_plan_review") return "Read the plan with taiga_get_plan, then approve it (taiga_approve_plan) or send it back (taiga_reject_plan).";
27644
+ if (cause === "awaiting_plan_review") return "Read the plan with taiga_get_plan, then approve it or send it back (taiga_review_plan).";
27645
27645
  const spec = cause ? HALT_CAUSES[cause] : void 0;
27646
27646
  if (!cause || !spec) return `Read the initiative with taiga_get_initiative to see why, ${MOVE_ASIDE}`;
27647
27647
  const known = cause;
@@ -27889,7 +27889,7 @@ function standing(item) {
27889
27889
  const CTA_MOVE = {
27890
27890
  start_plan: "taiga_queue_initiative puts it on the line to be planned and built (paid work: ask first)",
27891
27891
  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 taiga_approve_plan builds it or taiga_reject_plan sends it back",
27892
+ 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
27893
  resume_build: "taiga_resume_initiative carries the run on (paid work: ask first)",
27894
27894
  retry_build: "a new run starts over from the web; taiga_move_initiative takes it off the line",
27895
27895
  review_pr: "a person reviews and merges the pull request",
@@ -28097,7 +28097,7 @@ function registerBacklogTools(server, client) {
28097
28097
  if (may("backlog:write") && may("products:write")) registerQueue(server, client);
28098
28098
  if (may("products:write")) registerResume(server, client);
28099
28099
  if (may("products:write")) registerReviewGate(server, client);
28100
- if (may("backlog:read") && may("products:write")) registerPlanVerdicts(server, client);
28100
+ if (may("backlog:read") && may("products:write")) registerPlanReview(server, client);
28101
28101
  if (may("backlog:read") && may("backlog:write") && may("products:write")) registerPlanAgain(server, client);
28102
28102
  }
28103
28103
  function registerBacklogReads(server, client) {
@@ -28276,7 +28276,7 @@ async function reviewGate(client, item) {
28276
28276
  return {
28277
28277
  buildsWithoutReview: builds,
28278
28278
  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, taiga_approve_plan)."
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, taiga_review_plan)."
28280
28280
  };
28281
28281
  } catch (error) {
28282
28282
  if (!isApiFailure$2(error)) throw error;
@@ -28351,22 +28351,32 @@ function registerResume(server, client) {
28351
28351
  annotations: OPERATE
28352
28352
  }, (params) => runTool(async () => outcome((await client.resumeInitiative(params.initiativeId)).data)));
28353
28353
  }
28354
- function registerPlanVerdicts(server, client) {
28355
- server.registerTool("taiga_approve_plan", {
28356
- title: "Approve a plan",
28357
- description: "Approve an initiative's plan and start the run that builds 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.",
28358
- inputSchema: object({ planId }),
28359
- annotations: OPERATE
28360
- }, (params) => runTool(async () => outcome((await client.approvePlan(params.planId)).data)));
28361
- server.registerTool("taiga_reject_plan", {
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.",
28354
+ /**
28355
+ * One tool for both verdicts on a plan (PRO-3044): approving and sending back are the same review, and two tools for
28356
+ * it pushed core + operate past its 30-tool budget once taiga_request_changes joined operate.
28357
+ */
28358
+ function registerPlanReview(server, client) {
28359
+ server.registerTool("taiga_review_plan", {
28360
+ title: "Approve or reject a plan",
28361
+ 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
28362
  inputSchema: object({
28365
28363
  planId,
28366
- comment: string$2().trim().min(1).max(PLAN_REJECTION_COMMENT_MAX_CHARS).describe("What the next plan should do differently: a paragraph of direction")
28364
+ verdict: _enum(["approve", "reject"]).describe("approve builds the plan; reject sends it back"),
28365
+ 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")
28366
+ }).superRefine((input, ctx) => {
28367
+ if (input.verdict === "reject" && !input.comment) ctx.addIssue({
28368
+ code: "custom",
28369
+ path: ["comment"],
28370
+ message: "A rejection needs a comment: what the next plan should do differently."
28371
+ });
28372
+ if (input.verdict === "approve" && input.comment) ctx.addIssue({
28373
+ code: "custom",
28374
+ path: ["comment"],
28375
+ message: "An approval takes no comment: leave it out, or reject with it."
28376
+ });
28367
28377
  }),
28368
28378
  annotations: OPERATE
28369
- }, (params) => runTool(async () => outcome((await client.rejectPlan(params.planId, { comment: params.comment })).data)));
28379
+ }, (params) => runTool(async () => params.verdict === "approve" ? outcome((await client.approvePlan(params.planId)).data) : outcome((await client.rejectPlan(params.planId, { comment: params.comment ?? "" })).data)));
28370
28380
  }
28371
28381
  //#endregion
28372
28382
  //#region src/tools/inbox.ts
@@ -45711,7 +45721,6 @@ function writeNotice(name, annotations) {
45711
45721
  */
45712
45722
  const PAID_WORK = /* @__PURE__ */ new Set([
45713
45723
  "taiga_add_knowledge",
45714
- "taiga_approve_plan",
45715
45724
  "taiga_finish_discovery",
45716
45725
  "taiga_fix_finding",
45717
45726
  "taiga_fix_policy_violation",
@@ -45722,11 +45731,11 @@ const PAID_WORK = /* @__PURE__ */ new Set([
45722
45731
  "taiga_queue_initiative",
45723
45732
  "taiga_refresh_reality_documents",
45724
45733
  "taiga_regenerate_product_document",
45725
- "taiga_reject_plan",
45726
45734
  "taiga_request_changes",
45727
45735
  "taiga_request_initiatives",
45728
45736
  "taiga_resume_initiative",
45729
45737
  "taiga_retry_knowledge",
45738
+ "taiga_review_plan",
45730
45739
  "taiga_set_auto_build",
45731
45740
  "taiga_start_import",
45732
45741
  "taiga_stop_generating_documents",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.26.2-rc.558",
3
+ "version": "0.27.0-dev.560",
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",