@taiga-ai/mcp-server 0.32.0-dev.676 → 0.33.0-dev.677

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 +37 -34
  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 > MCP**, where
14
14
 
15
15
  Create the key first, and choose when it expires: in 30 days, 90 days, a year, or never. Taiga copies it to your clipboard, shows it once, and keeps it on the page until you say you have saved it, so copying the setup next does not lose it.
16
16
 
17
- The same page shows the setup for your client and environment, with the key already filled in where a config file needs it, and a one-click install for Cursor. The examples here pin a release (`@taiga-ai/mcp-server@0.32.0`), 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 client and environment, with the key already filled in where a config file needs it, and a one-click install for Cursor. The examples here pin a release (`@taiga-ai/mcp-server@0.33.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 client and environment, with the key alre
23
23
  Run the command. When it asks for your access key, paste it once and press Enter. Nothing appears as you paste (PowerShell shows asterisks), and the key stays 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.32.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.33.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.32.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.33.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.32.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.33.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.32.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.33.0
41
41
  ```
42
42
 
43
43
  ### Cursor, Windsurf, Claude Desktop and other MCP clients
@@ -49,7 +49,7 @@ Most clients read the same `mcpServers` block. Add it with your key in place of
49
49
  "mcpServers": {
50
50
  "taiga": {
51
51
  "command": "npx",
52
- "args": ["-y", "@taiga-ai/mcp-server@0.32.0"],
52
+ "args": ["-y", "@taiga-ai/mcp-server@0.33.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 prompts for the key once and
78
78
  "taiga": {
79
79
  "type": "stdio",
80
80
  "command": "npx",
81
- "args": ["-y", "@taiga-ai/mcp-server@0.32.0"],
81
+ "args": ["-y", "@taiga-ai/mcp-server@0.33.0"],
82
82
  "env": { "TAIGA_API_KEY": "${input:taiga-api-key}" }
83
83
  }
84
84
  }
package/dist/index.js CHANGED
@@ -27967,6 +27967,37 @@ async function activityRows(client, opts) {
27967
27967
  ...note ? { note } : {}
27968
27968
  };
27969
27969
  }
27970
+ /**
27971
+ * What a request for changes did to this plan (PRO-3161), when one revised it:
27972
+ * the steps the re-plan added, edited and dropped, and the committed steps it
27973
+ * reverts, from the `run_replanned` event that made this version. Null for a
27974
+ * plan no request revised, or when the history cannot be read.
27975
+ */
27976
+ async function planRevisionOf(client, initiativeId, planId) {
27977
+ let events;
27978
+ try {
27979
+ events = (await client.listBacklogItemActivity(initiativeId)).data;
27980
+ } catch (error) {
27981
+ if (error instanceof TaigaApiError || isNetworkFailure(error)) return null;
27982
+ throw error;
27983
+ }
27984
+ for (const event of [...events].reverse()) {
27985
+ if (event.kind !== "turn" || event.trigger !== "run_replanned") continue;
27986
+ const data = event.data ?? {};
27987
+ if (data["planId"] !== planId) continue;
27988
+ return {
27989
+ revisedFor: "a request for changes",
27990
+ previousPlanId: data["previousPlanId"] ?? null,
27991
+ added: data["added"] ?? [],
27992
+ edited: data["edited"] ?? [],
27993
+ dropped: data["dropped"] ?? [],
27994
+ reverted: data["reverted"] ?? [],
27995
+ waitsForReview: data["reviewPlan"] === true,
27996
+ at: event.occurredAt ?? null
27997
+ };
27998
+ }
27999
+ return null;
28000
+ }
27970
28001
  function registerBuildTools(server, client) {
27971
28002
  if (!client.hasCapability("products:read")) return;
27972
28003
  server.registerTool("taiga_list_runs", {
@@ -27999,7 +28030,7 @@ function registerBuildTools(server, client) {
27999
28030
  }));
28000
28031
  server.registerTool("taiga_get_run", {
28001
28032
  title: "Get run",
28002
- description: "Read one coding agent run, and why it failed when it did: its outcome, pull request, security pass (scanCoverage names scanners that did not run) and each step with its commit, files and checks. A failed run says where it stopped (stoppedIn) and the line of the error that says why (cause). full: true adds every step's instructions and report. Carry it on from its initiative (taiga_resume_initiative).",
28033
+ description: "Read one coding agent run, and why it failed when it did: its outcome, pull request, security pass (scanCoverage names scanners that did not run) and each step with its commit, files and checks. A failed run says where it stopped (stoppedIn) and the line of the error that says why (cause). full: true adds every step's instructions and report. lastReplan says what a request for changes did to the plan the run builds now: the steps it added, edited and dropped. Carry it on from its initiative (taiga_resume_initiative).",
28003
28034
  inputSchema: object({
28004
28035
  runId,
28005
28036
  full: boolean().optional().describe("Carry each step's complete instructions and report (default false: a summary)")
@@ -28015,8 +28046,11 @@ function registerBuildTools(server, client) {
28015
28046
  ...where ? { stoppedIn: where } : {},
28016
28047
  ...cause ? { cause } : {}
28017
28048
  };
28018
- const states = await initiativeStates(client, [runRow]);
28019
- const readable = withInitiativeState(readableRun(runRow), states);
28049
+ const [states, lastReplan] = await Promise.all([initiativeStates(client, [runRow]), runRow.backlogItemId && runRow.planId ? planRevisionOf(client, runRow.backlogItemId, runRow.planId) : Promise.resolve(null)]);
28050
+ const readable = {
28051
+ ...withInitiativeState(readableRun(runRow), states),
28052
+ ...lastReplan ? { lastReplan } : {}
28053
+ };
28020
28054
  const note = verificationNote(rows);
28021
28055
  const verification = note ? { verificationNote: note } : {};
28022
28056
  if (params.full) return toolResult({
@@ -28489,37 +28523,6 @@ async function planFailureOf(client, initiativeId, itemCause) {
28489
28523
  by: typeof actor.name === "string" ? actor.name : actor.type ?? null
28490
28524
  };
28491
28525
  }
28492
- /**
28493
- * What a request for changes did to this plan (PRO-3161), when one revised it:
28494
- * the steps the re-plan added, edited and dropped, and the committed steps it
28495
- * reverts, from the `run_replanned` event that made this version. Null for a
28496
- * plan no request revised, or when the history cannot be read.
28497
- */
28498
- async function planRevisionOf(client, initiativeId, planId) {
28499
- let events;
28500
- try {
28501
- events = (await client.listBacklogItemActivity(initiativeId)).data;
28502
- } catch (error) {
28503
- if (error instanceof TaigaApiError || isNetworkFailure(error)) return null;
28504
- throw error;
28505
- }
28506
- for (const event of [...events].reverse()) {
28507
- if (event.kind !== "turn" || event.trigger !== "run_replanned") continue;
28508
- const data = event.data ?? {};
28509
- if (data["planId"] !== planId) continue;
28510
- return {
28511
- revisedFor: "a request for changes",
28512
- previousPlanId: data["previousPlanId"] ?? null,
28513
- added: data["added"] ?? [],
28514
- edited: data["edited"] ?? [],
28515
- dropped: data["dropped"] ?? [],
28516
- reverted: data["reverted"] ?? [],
28517
- waitsForReview: data["reviewPlan"] === true,
28518
- at: event.occurredAt ?? null
28519
- };
28520
- }
28521
- return null;
28522
- }
28523
28526
  const planId = idInput("plan", "taiga_get_plan gives the initiative's active plan and its ID");
28524
28527
  const initiativeId = idInput("initiative", "taiga_list_initiatives (query finds one by title) gives it");
28525
28528
  /** The plan without its steps' prose: enough to approve it or say what a run will do. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.32.0-dev.676",
3
+ "version": "0.33.0-dev.677",
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",