@taiga-ai/mcp-server 0.45.0-dev.1251 → 0.48.0-dev.1253

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 +10 -10
  2. package/dist/index.js +54 -10
  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.45.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.48.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,29 +23,29 @@ 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.45.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.48.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.45.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.48.0
31
31
  ```
32
32
 
33
33
  ```sh
34
- printf 'Taiga access key: ' && read -rs TAIGA_API_KEY && echo && copilot mcp add taiga --env TAIGA_API_KEY="$TAIGA_API_KEY" -- npx -y @taiga-ai/mcp-server@0.45.0
34
+ printf 'Taiga access key: ' && read -rs TAIGA_API_KEY && echo && copilot mcp add taiga --env TAIGA_API_KEY="$TAIGA_API_KEY" -- npx -y @taiga-ai/mcp-server@0.48.0
35
35
  ```
36
36
 
37
37
  On Windows, in PowerShell (Claude Code and Copilot start `npx` through `cmd /c`; the quoted `'--'` survives npm's PowerShell shims):
38
38
 
39
39
  ```powershell
40
- $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.45.0
40
+ $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.48.0
41
41
  ```
42
42
 
43
43
  ```powershell
44
- $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.45.0
44
+ $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.48.0
45
45
  ```
46
46
 
47
47
  ```powershell
48
- $k = Read-Host 'Taiga access key' -AsSecureString; copilot mcp add taiga --env "TAIGA_API_KEY=$([Net.NetworkCredential]::new('', $k).Password)" '--' cmd /c npx -y @taiga-ai/mcp-server@0.45.0
48
+ $k = Read-Host 'Taiga access key' -AsSecureString; copilot mcp add taiga --env "TAIGA_API_KEY=$([Net.NetworkCredential]::new('', $k).Password)" '--' cmd /c npx -y @taiga-ai/mcp-server@0.48.0
49
49
  ```
50
50
 
51
51
  The Copilot command also sets up the GitHub Copilot app. If you have the app but no `copilot` command, add the server to `~/.copilot/mcp-config.json` instead, beside any servers already there. It holds your key, so keep it out of repositories:
@@ -56,7 +56,7 @@ The Copilot command also sets up the GitHub Copilot app. If you have the app but
56
56
  "taiga": {
57
57
  "type": "local",
58
58
  "command": "npx",
59
- "args": ["-y", "@taiga-ai/mcp-server@0.45.0"],
59
+ "args": ["-y", "@taiga-ai/mcp-server@0.48.0"],
60
60
  "env": { "TAIGA_API_KEY": "YOUR_ACCESS_KEY" },
61
61
  "tools": ["*"]
62
62
  }
@@ -73,7 +73,7 @@ Most clients read the same `mcpServers` block. Add it with your key in place of
73
73
  "mcpServers": {
74
74
  "taiga": {
75
75
  "command": "npx",
76
- "args": ["-y", "@taiga-ai/mcp-server@0.45.0"],
76
+ "args": ["-y", "@taiga-ai/mcp-server@0.48.0"],
77
77
  "env": { "TAIGA_API_KEY": "YOUR_ACCESS_KEY" }
78
78
  }
79
79
  }
@@ -101,7 +101,7 @@ In `.vscode/mcp.json`. VS Code reads `servers`, and prompts for the key once and
101
101
  "taiga": {
102
102
  "type": "stdio",
103
103
  "command": "npx",
104
- "args": ["-y", "@taiga-ai/mcp-server@0.45.0"],
104
+ "args": ["-y", "@taiga-ai/mcp-server@0.48.0"],
105
105
  "env": { "TAIGA_API_KEY": "${input:taiga-api-key}" }
106
106
  }
107
107
  }
package/dist/index.js CHANGED
@@ -24066,12 +24066,18 @@ var TaigaClient = class {
24066
24066
  * What waits on a person (GET /users/me/requests), up to the API's cap, with
24067
24067
  * what is assigned to someone else: a key speaks for the team's work.
24068
24068
  */
24069
- async listRequests() {
24070
- return this.request("GET", `/users/me/requests${query$1({ everyone: "true" })}`);
24069
+ async listRequests(productId) {
24070
+ return this.request("GET", `/users/me/requests${query$1({
24071
+ everyone: "true",
24072
+ productId
24073
+ })}`);
24071
24074
  }
24072
24075
  /** What closed in the last two weeks (GET /users/me/requests/done), by the same rules. */
24073
- async listDoneRequests() {
24074
- return this.request("GET", `/users/me/requests/done${query$1({ everyone: "true" })}`);
24076
+ async listDoneRequests(productId) {
24077
+ return this.request("GET", `/users/me/requests/done${query$1({
24078
+ everyone: "true",
24079
+ productId
24080
+ })}`);
24075
24081
  }
24076
24082
  /** Answer a request with one of the answers it offers. */
24077
24083
  async answerRequest(id, exit) {
@@ -37509,7 +37515,7 @@ function outsideAllowlist(expression, allowlist) {
37509
37515
  * reads as deleted) and fields they explain would simply be missing. So it
37510
37516
  * refuses to start, and says what to do.
37511
37517
  */
37512
- function apiLevelProblem(introspection, apiUrl, required = 12, version = SERVER_VERSION) {
37518
+ function apiLevelProblem(introspection, apiUrl, required = 13, version = SERVER_VERSION) {
37513
37519
  const offered = introspection.mcpApiLevel ?? 0;
37514
37520
  if (offered >= required) return null;
37515
37521
  return `The Taiga API at ${apiUrl} is older than @taiga-ai/mcp-server ${version} needs (API level ${offered}, needs ${required}). Run the version published for it, or wait for that API to be updated; an earlier release of this package works against it.`;
@@ -40530,6 +40536,18 @@ function controlCoveragePart(controls) {
40530
40536
  }
40531
40537
  const findingId = idInput("finding", "taiga_list_findings gives it");
40532
40538
  /** Open findings by severity and kind, and the latest sweeps, as the first page of findings carries them. */
40539
+ /**
40540
+ * The opened and resolved totals without the daily series behind them (PRO-5098): thirty rows, mostly zeros, on
40541
+ * every first page, where the totals answer the question. overDays says the window the totals cover.
40542
+ */
40543
+ function activityTotals(activity) {
40544
+ if (!activity || typeof activity !== "object") return {};
40545
+ const { days, ...totals } = activity;
40546
+ return { activity: Array.isArray(days) ? {
40547
+ ...totals,
40548
+ overDays: days.length
40549
+ } : totals };
40550
+ }
40533
40551
  async function sweepOverview(client, productId) {
40534
40552
  const [summary, sweeps] = await Promise.all([client.getMaintenanceSummary(productId), client.listMaintenanceSweeps(productId, { limit: 3 })]);
40535
40553
  const latest = sweeps.data.map((sweep) => ({
@@ -40540,6 +40558,7 @@ async function sweepOverview(client, productId) {
40540
40558
  const { lastRun: _lastRun, lastRuns: _lastRuns, topFindings: _top, violatedControls: _controls, ...counts } = summary.data;
40541
40559
  return {
40542
40560
  ...counts,
40561
+ ...activityTotals(counts["activity"]),
40543
40562
  latestSweeps: latest,
40544
40563
  ...latest.length === 0 ? { note: "This product has never been swept: no findings is not an all-clear." } : {}
40545
40564
  };
@@ -42768,13 +42787,38 @@ function readableRun(run, opts = {}) {
42768
42787
  */
42769
42788
  function withoutPlumbing(run) {
42770
42789
  const { createdBy: _createdBy, autoMergeSha: _autoMergeSha, metrics, ...rest } = run;
42771
- if (!metrics || typeof metrics !== "object") return rest;
42790
+ const said = withoutUnset(rest);
42791
+ if (!metrics || typeof metrics !== "object") return said;
42772
42792
  const { containerImageTag: _image, ...kept } = metrics;
42773
42793
  return {
42774
- ...rest,
42794
+ ...said,
42775
42795
  metrics: kept
42776
42796
  };
42777
42797
  }
42798
+ /**
42799
+ * A null that says something: initiativeClosed null is an initiative still live (PRO-2808), and mergeReadiness null
42800
+ * is a forge read that did not answer, which mergeReadinessNote explains.
42801
+ */
42802
+ const NULL_SAYS = /* @__PURE__ */ new Set(["initiativeClosed", "mergeReadiness"]);
42803
+ /** Flags whose false is the ordinary case, which only true tells anything about. */
42804
+ const FALSE_IS_ORDINARY = /* @__PURE__ */ new Set([
42805
+ "autoRemediated",
42806
+ "hasRetryableFailedStep",
42807
+ "reviewEscalated",
42808
+ "prDraft"
42809
+ ]);
42810
+ /**
42811
+ * The default read without what is not set (PRO-5098): a merged run carried about fifteen null timestamps,
42812
+ * counters and failure fields, 6.7k characters that said nothing about it. full: true keeps every field.
42813
+ */
42814
+ function withoutUnset(run) {
42815
+ const unfixed = run["ciFixAttempts"] === 0;
42816
+ return Object.fromEntries(Object.entries(run).filter(([key, value]) => {
42817
+ if (value === null) return NULL_SAYS.has(key);
42818
+ if (value === false) return !FALSE_IS_ORDINARY.has(key);
42819
+ return !(key === "ciFixMaxAttempts" && unfixed);
42820
+ }));
42821
+ }
42778
42822
  /** Distinct initiatives a run list reads to say which moved on; past this a waiting row says it was not checked. */
42779
42823
  const INITIATIVE_CHECKS = 10;
42780
42824
  /**
@@ -43096,7 +43140,7 @@ function registerBuildTools(server, client) {
43096
43140
  }));
43097
43141
  server.registerTool("taiga_get_run", {
43098
43142
  title: "Get run",
43099
- 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. A failed or stopped run's nextStep says how to carry it on (taiga_resume_initiative on its initiative). hostsReached lists the public hosts the run reached through the egress gateway, first reached first, with the bytes it sent and received there. signals is what a person should know before merging, from the run's report as Taiga reads it now: each with its light (red is a failure Taiga sees, such as failing CI, amber needs a person, green is proven, unchecked is not known yet, with what settles it), the verdict they add up to, and the work the run would do next. No signal holds a merge. A run waiting for review carries mergeReadiness: whether its forge lets its pull request merge now (state ready, or the state and reason that keep it), its approvals and its size.",
43143
+ 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). A field not set is left out; full: true keeps every field and 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. A failed or stopped run's nextStep says how to carry it on (taiga_resume_initiative on its initiative). hostsReached lists the public hosts the run reached through the egress gateway, first reached first, with the bytes it sent and received there. signals is what a person should know before merging, from the run's report as Taiga reads it now: each with its light (red is a failure Taiga sees, such as failing CI, amber needs a person, green is proven, unchecked is not known yet, with what settles it), the verdict they add up to, and the work the run would do next. No signal holds a merge. A run waiting for review carries mergeReadiness: whether its forge lets its pull request merge now (state ready, or the state and reason that keep it), its approvals and its size.",
43100
43144
  inputSchema: object({
43101
43145
  runId,
43102
43146
  full: boolean().optional().describe("Carry each step's complete instructions and report (default false: a summary)")
@@ -45235,7 +45279,7 @@ function summaryOf(rows) {
45235
45279
  const inProduct = (productIdWanted) => (row) => productIdWanted === void 0 || (row["product"] ?? {})["id"] === productIdWanted;
45236
45280
  /** One product's Action Required as counts, as the list's summary counts them. */
45237
45281
  async function attentionCounts(client, productIdWanted) {
45238
- const result = await client.listRequests();
45282
+ const result = await client.listRequests(productIdWanted);
45239
45283
  const [entry] = summaryOf(result.data.filter(inProduct(productIdWanted)).filter((row) => row["kind"] !== "license_review"));
45240
45284
  return {
45241
45285
  open: entry ? Number(entry["open"]) : 0,
@@ -45341,7 +45385,7 @@ function registerInboxTools(server, client) {
45341
45385
  annotations: READ_ONLY
45342
45386
  }, (params) => runTool(async () => {
45343
45387
  const { resolved, full, kind, category, limit } = params;
45344
- const result = resolved ? await client.listDoneRequests() : await client.listRequests();
45388
+ const result = resolved ? await client.listDoneRequests(params.productId) : await client.listRequests(params.productId);
45345
45389
  const now = Date.now();
45346
45390
  const here = result.data.filter(inProduct(params.productId));
45347
45391
  const licences = here.filter((row) => row["kind"] === "license_review");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.45.0-dev.1251",
3
+ "version": "0.48.0-dev.1253",
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",