@taiga-ai/mcp-server 0.33.0-rc.710 → 0.34.0-dev.715

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 -24
  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.33.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.34.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.33.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.34.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.33.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.34.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.33.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.34.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.33.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.34.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.33.0"],
52
+ "args": ["-y", "@taiga-ai/mcp-server@0.34.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.33.0"],
81
+ "args": ["-y", "@taiga-ai/mcp-server@0.34.0"],
82
82
  "env": { "TAIGA_API_KEY": "${input:taiga-api-key}" }
83
83
  }
84
84
  }
package/dist/index.js CHANGED
@@ -23259,18 +23259,22 @@ const LINE_STATES = [
23259
23259
  * The columns a person can drop an initiative into by hand.
23260
23260
  *
23261
23261
  * `plan` is NOT one of them any more. Planning is the first thing the Build
23262
- * station does, not a place you put work, so the only way to start an
23263
- * initiative is to queue it and let its turn come -- which is also what makes
23264
- * "one at a time" true of planning as well as building, since the line holds
23265
- * one active entry per project and nothing else starts work. `build` is not
23266
- * droppable either: you cannot drop work INTO the station, only take it out.
23267
- * `done` and `canceled` ARE (PRO-1325): finishing work by hand, and reopening
23268
- * it, are moves on the board like any other.
23262
+ * station does, not a place you put work. `build` IS one: a drop into Build
23263
+ * from Queue, Todo or Backlog (`START_NOW_DROP_FROM_STATES`) is Start now --
23264
+ * the work is planned against main as it is now and built alongside the
23265
+ * current work. A Queue item starts its existing entry; a Todo or Backlog
23266
+ * item is queued and started in one transaction, so a refusal leaves nothing
23267
+ * queued. Done, Canceled, archived, Plan and Build items are not offered it.
23268
+ * It is not a state-machine edge (`INITIATIVE_TRANSITIONS`), and no path
23269
+ * writes it as a plain state change.
23270
+ * `done` and `canceled` ARE droppable (PRO-1325): finishing work by hand, and
23271
+ * reopening it, are moves on the board like any other.
23269
23272
  */
23270
23273
  const USER_DROP_STATES = [
23271
23274
  "backlog",
23272
23275
  "todo",
23273
23276
  "queue",
23277
+ "build",
23274
23278
  "done",
23275
23279
  "canceled"
23276
23280
  ];
@@ -27872,9 +27876,9 @@ const INITIATIVE_CHECKS = 10;
27872
27876
  * The run says it itself since PRO-2808 (initiativeClosed: done, canceled,
27873
27877
  * archived, deleted, or null while live), for every key that can read it.
27874
27878
  * Against an API from before that, each initiative is read: a 404 is
27875
- * 'deleted', and an initiative past the cap, one whose read failed, and every
27876
- * one without backlog:read is 'unchecked', which withInitiativeState adds to
27877
- * the row's outcome.
27879
+ * 'deleted', and an initiative past the cap or one whose read failed is
27880
+ * 'unchecked', which withInitiativeState adds to the row's outcome. Every
27881
+ * caller reads runs, so holds backlog:read (PRO-3460).
27878
27882
  */
27879
27883
  async function initiativeStates(client, rows) {
27880
27884
  const states = /* @__PURE__ */ new Map();
@@ -27882,7 +27886,7 @@ async function initiativeStates(client, rows) {
27882
27886
  const told = waiting.filter((row) => "initiativeClosed" in row);
27883
27887
  for (const row of told) if (typeof row["backlogItemId"] === "string") states.set(row["backlogItemId"], typeof row["initiativeClosed"] === "string" ? row["initiativeClosed"] : "live");
27884
27888
  const all = [...new Set(waiting.filter((row) => !("initiativeClosed" in row)).map((row) => row["backlogItemId"]).filter((id) => typeof id === "string" && !states.has(id)))];
27885
- const ids = client.hasCapability("backlog:read") ? all.slice(0, INITIATIVE_CHECKS) : [];
27889
+ const ids = all.slice(0, INITIATIVE_CHECKS);
27886
27890
  for (const id of all) if (!ids.includes(id)) states.set(id, "unchecked");
27887
27891
  await Promise.all(ids.map(async (id) => {
27888
27892
  try {
@@ -28003,10 +28007,11 @@ function summaryHeadline(summary) {
28003
28007
  * failure of that read leaves the rows unnamed rather than failing the list.
28004
28008
  */
28005
28009
  async function activityRows(client, opts) {
28006
- const [runs, products] = await Promise.all([client.listBuildRunActivity(opts), client.listProducts({ limit: NAMED_PRODUCTS }).catch((error) => {
28010
+ const mayListProducts = client.hasCapability("products:read");
28011
+ const [runs, products] = await Promise.all([client.listBuildRunActivity(opts), mayListProducts ? client.listProducts({ limit: NAMED_PRODUCTS }).catch((error) => {
28007
28012
  if (error instanceof TaigaApiError || isNetworkFailure(error)) return null;
28008
28013
  throw error;
28009
- })]);
28014
+ }) : null]);
28010
28015
  const nameById = /* @__PURE__ */ new Map();
28011
28016
  for (const product of products?.data ?? []) nameById.set(product.id, {
28012
28017
  name: product.name,
@@ -28020,7 +28025,7 @@ async function activityRows(client, opts) {
28020
28025
  product
28021
28026
  } : row;
28022
28027
  });
28023
- const note = !rows.some((row) => !("product" in row)) ? null : !products ? "The products could not be read, so rows carry productId only; taiga_get_product names one." : products.nextCursor !== null ? `Only the first ${NAMED_PRODUCTS} products could be named; a row without product carries productId only.` : "A row without product belongs to a product the key cannot list (deleted since, or not visible to it); it carries productId only.";
28028
+ const note = !rows.some((row) => !("product" in row)) ? null : !mayListProducts ? "This key cannot read products, so rows carry productId only." : !products ? "The products could not be read, so rows carry productId only; taiga_get_product names one." : products.nextCursor !== null ? `Only the first ${NAMED_PRODUCTS} products could be named; a row without product carries productId only.` : "A row without product belongs to a product the key cannot list (deleted since, or not visible to it); it carries productId only.";
28024
28029
  return {
28025
28030
  ...page(rows, runs.nextCursor),
28026
28031
  ...note ? { note } : {}
@@ -28058,7 +28063,7 @@ async function planRevisionOf(client, initiativeId, planId) {
28058
28063
  return null;
28059
28064
  }
28060
28065
  function registerBuildTools(server, client) {
28061
- if (!client.hasCapability("products:read")) return;
28066
+ if (!client.hasCapability("backlog:read")) return;
28062
28067
  server.registerTool("taiga_list_runs", {
28063
28068
  title: "List runs",
28064
28069
  description: "List coding agent runs, newest first, each with one sentence on how it stands: running, waiting for a person to merge, merged, failed, stopped, or its pull request closed. One product, one initiative, or every product. status narrows to some statuses ([\"failed\"] for what failed); active: true keeps the ones running now.",
@@ -28072,7 +28077,6 @@ function registerBuildTools(server, client) {
28072
28077
  annotations: READ_ONLY
28073
28078
  }, (params) => runTool(async () => {
28074
28079
  if (params.active && (params.productId || params.initiativeId)) return toolError("VALIDATION_ERROR", "active narrows the org-wide list only: omit productId and initiativeId, or read the product's runs and judge each by its status.");
28075
- if (!params.productId && params.initiativeId && !client.hasCapability("backlog:read")) return toolError("VALIDATION_ERROR", "This key cannot read initiatives, so it cannot find the initiative's product: pass productId as well.");
28076
28080
  const productIdOf = params.productId ?? (params.initiativeId ? (await client.getBacklogItem(params.initiativeId)).data.productId : void 0);
28077
28081
  if (productIdOf) {
28078
28082
  const result = await client.listBuildRuns(productIdOf, {
@@ -28772,7 +28776,7 @@ function registerRequest(server, client) {
28772
28776
  function registerMove(server, client) {
28773
28777
  server.registerTool("taiga_move_initiative", {
28774
28778
  title: "Move initiative on the board",
28775
- description: "Move an initiative to another board column, take it off the line, or reorder it. Moving it out of Build stops its plan or run; moving it to backlog, todo or canceled closes the pull request it waits on. Nothing moves into Build by hand (queue it instead). archived: true archives it in place (never from Build): pass its current column as state, or it moves too.",
28779
+ description: "Move an initiative to another board column, take it off the line, or reorder it. Moving it out of Build stops its plan or run; moving it to backlog, todo or canceled closes the pull request it waits on. state build is Start now, from queue, todo or backlog: the initiative is planned at once against main as it is now and built alongside the current work; parallel builds in one repository can conflict, so say that when you ask. It is refused, with the API's message, for done, canceled, archived, plan and build initiatives, and when the line is stopped or there is no buildable repository. archived: true archives it in place (never from Build): pass its current column as state, or it moves too.",
28776
28780
  inputSchema: object({
28777
28781
  initiativeId,
28778
28782
  state: _enum(USER_DROP_STATES).describe("The column to move into"),
@@ -28783,6 +28787,7 @@ function registerMove(server, client) {
28783
28787
  }, (params) => runTool(async () => {
28784
28788
  const { initiativeId: id, ...body } = params;
28785
28789
  if (body.state === "queue" && !client.hasCapability("products:write")) return toolError("FORBIDDEN", "A move into queue starts agent work and needs products:write, which this key lacks.");
28790
+ if (body.state === "build" && !client.hasCapability("products:write")) return toolError("FORBIDDEN", "A move into build starts agent work now (Start now) and needs products:write, which this key lacks.");
28786
28791
  return outcome((await client.transitionInitiative(id, body)).data);
28787
28792
  }));
28788
28793
  }
@@ -29055,7 +29060,7 @@ function waitedUntil(resolvedAt, now) {
29055
29060
  */
29056
29061
  function readWith(row, backlogRead) {
29057
29062
  switch (row["subjectType"]) {
29058
- case "build_run": return "taiga_get_run (runId: subjectId)";
29063
+ case "build_run": return backlogRead ? "taiga_get_run (runId: subjectId)" : void 0;
29059
29064
  case "backlog_item": return backlogRead ? "taiga_get_plan (initiativeId: subjectId)" : void 0;
29060
29065
  case "product_document": {
29061
29066
  const type = /^[^:]+:([a-z_]+):decision:/.exec(String(row["subjectId"]))?.[1];
@@ -29207,12 +29212,12 @@ async function staleReviews(client, rows) {
29207
29212
  const uncheckedIds = new Set([...byId.keys()].slice(STALE_CHECKS));
29208
29213
  const out = /* @__PURE__ */ new Map();
29209
29214
  await Promise.all(candidates.map(async (row) => {
29215
+ if (!client.hasCapability("backlog:read")) return void uncheckedIds.add(String(row["id"]));
29210
29216
  try {
29211
29217
  const run = (await client.getBuildRun(String(row["subjectId"]))).data;
29212
29218
  if (run["prMerged"] === true) return void out.set(String(row["id"]), "its pull request has merged");
29213
29219
  if (run["prState"] === "closed") return void out.set(String(row["id"]), "its pull request was closed");
29214
29220
  if (typeof run["backlogItemId"] !== "string") return;
29215
- if (!client.hasCapability("backlog:read")) return void uncheckedIds.add(String(row["id"]));
29216
29221
  const item = (await client.getBacklogItem(run["backlogItemId"])).data;
29217
29222
  if (item["state"] === "canceled" || item["status"] === "canceled") out.set(String(row["id"]), "its initiative was canceled; the pull request is still open on the forge");
29218
29223
  else if (item["state"] === "done" || item["status"] === "done") out.set(String(row["id"]), "its initiative is done; this run is not the one that landed it");
@@ -29602,7 +29607,7 @@ const PARTS = {
29602
29607
  policies: "tenant:documents:read",
29603
29608
  initiatives: "backlog:read",
29604
29609
  repositories: "products:read",
29605
- runs: "products:read",
29610
+ runs: "backlog:read",
29606
29611
  actionRequired: "products:read",
29607
29612
  maintenance: "products:read",
29608
29613
  policyStanding: "products:read"
@@ -46241,8 +46246,9 @@ const ALL_CONDITIONS = [.../* @__PURE__ */ new Set([...ITEM_CONDITIONS, ...BUILD
46241
46246
  */
46242
46247
  function registerWaitTools(server, client, options) {
46243
46248
  const items = client.hasCapability("backlog:read");
46244
- const runs = client.hasCapability("products:read");
46245
- if (!items && !runs) return;
46249
+ const runs = items;
46250
+ const jobs = client.hasCapability("products:read");
46251
+ if (!items && !jobs) return;
46246
46252
  const waitInitiative = async (target, until, params, ctx) => {
46247
46253
  const gate = { product: void 0 };
46248
46254
  const read = async (signal) => {
@@ -46309,7 +46315,7 @@ function registerWaitTools(server, client, options) {
46309
46315
  ].filter((key) => params[key] !== void 0).length !== 1) return toolError("VALIDATION_ERROR", "Name exactly one of initiativeId, runId or jobId: the thing to wait on.");
46310
46316
  if (params.jobId !== void 0) {
46311
46317
  if (params.until !== void 0) return toolError("VALIDATION_ERROR", "A job is waited on until it finishes: leave until out.");
46312
- if (!runs) return toolError("FORBIDDEN", "Waiting on a job needs products:read, which this key lacks.");
46318
+ if (!jobs) return toolError("FORBIDDEN", "Waiting on a job needs products:read, which this key lacks.");
46313
46319
  return waitJob(params.jobId, params, ctx);
46314
46320
  }
46315
46321
  const kind = params.initiativeId !== void 0 ? "initiative" : "run";
@@ -46319,7 +46325,7 @@ function registerWaitTools(server, client, options) {
46319
46325
  if (!items) return toolError("FORBIDDEN", "Waiting on an initiative needs backlog:read, which this key lacks.");
46320
46326
  return waitInitiative(params.initiativeId, params.until, params, ctx);
46321
46327
  }
46322
- if (!runs) return toolError("FORBIDDEN", "Waiting on a run needs products:read, which this key lacks.");
46328
+ if (!runs) return toolError("FORBIDDEN", "Waiting on a run needs backlog:read, which this key lacks.");
46323
46329
  return waitRun(params.runId, params.until, params, ctx);
46324
46330
  }));
46325
46331
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.33.0-rc.710",
3
+ "version": "0.34.0-dev.715",
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",