@taiga-ai/mcp-server 0.45.0-dev.1251 → 0.46.0-dev.1252

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 +41 -3
  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.46.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.46.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.46.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.46.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.46.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.46.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.46.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.46.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.46.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.46.0"],
105
105
  "env": { "TAIGA_API_KEY": "${input:taiga-api-key}" }
106
106
  }
107
107
  }
package/dist/index.js CHANGED
@@ -40530,6 +40530,18 @@ function controlCoveragePart(controls) {
40530
40530
  }
40531
40531
  const findingId = idInput("finding", "taiga_list_findings gives it");
40532
40532
  /** Open findings by severity and kind, and the latest sweeps, as the first page of findings carries them. */
40533
+ /**
40534
+ * The opened and resolved totals without the daily series behind them (PRO-5098): thirty rows, mostly zeros, on
40535
+ * every first page, where the totals answer the question. overDays says the window the totals cover.
40536
+ */
40537
+ function activityTotals(activity) {
40538
+ if (!activity || typeof activity !== "object") return {};
40539
+ const { days, ...totals } = activity;
40540
+ return { activity: Array.isArray(days) ? {
40541
+ ...totals,
40542
+ overDays: days.length
40543
+ } : totals };
40544
+ }
40533
40545
  async function sweepOverview(client, productId) {
40534
40546
  const [summary, sweeps] = await Promise.all([client.getMaintenanceSummary(productId), client.listMaintenanceSweeps(productId, { limit: 3 })]);
40535
40547
  const latest = sweeps.data.map((sweep) => ({
@@ -40540,6 +40552,7 @@ async function sweepOverview(client, productId) {
40540
40552
  const { lastRun: _lastRun, lastRuns: _lastRuns, topFindings: _top, violatedControls: _controls, ...counts } = summary.data;
40541
40553
  return {
40542
40554
  ...counts,
40555
+ ...activityTotals(counts["activity"]),
40543
40556
  latestSweeps: latest,
40544
40557
  ...latest.length === 0 ? { note: "This product has never been swept: no findings is not an all-clear." } : {}
40545
40558
  };
@@ -42768,13 +42781,38 @@ function readableRun(run, opts = {}) {
42768
42781
  */
42769
42782
  function withoutPlumbing(run) {
42770
42783
  const { createdBy: _createdBy, autoMergeSha: _autoMergeSha, metrics, ...rest } = run;
42771
- if (!metrics || typeof metrics !== "object") return rest;
42784
+ const said = withoutUnset(rest);
42785
+ if (!metrics || typeof metrics !== "object") return said;
42772
42786
  const { containerImageTag: _image, ...kept } = metrics;
42773
42787
  return {
42774
- ...rest,
42788
+ ...said,
42775
42789
  metrics: kept
42776
42790
  };
42777
42791
  }
42792
+ /**
42793
+ * A null that says something: initiativeClosed null is an initiative still live (PRO-2808), and mergeReadiness null
42794
+ * is a forge read that did not answer, which mergeReadinessNote explains.
42795
+ */
42796
+ const NULL_SAYS = /* @__PURE__ */ new Set(["initiativeClosed", "mergeReadiness"]);
42797
+ /** Flags whose false is the ordinary case, which only true tells anything about. */
42798
+ const FALSE_IS_ORDINARY = /* @__PURE__ */ new Set([
42799
+ "autoRemediated",
42800
+ "hasRetryableFailedStep",
42801
+ "reviewEscalated",
42802
+ "prDraft"
42803
+ ]);
42804
+ /**
42805
+ * The default read without what is not set (PRO-5098): a merged run carried about fifteen null timestamps,
42806
+ * counters and failure fields, 6.7k characters that said nothing about it. full: true keeps every field.
42807
+ */
42808
+ function withoutUnset(run) {
42809
+ const unfixed = run["ciFixAttempts"] === 0;
42810
+ return Object.fromEntries(Object.entries(run).filter(([key, value]) => {
42811
+ if (value === null) return NULL_SAYS.has(key);
42812
+ if (value === false) return !FALSE_IS_ORDINARY.has(key);
42813
+ return !(key === "ciFixMaxAttempts" && unfixed);
42814
+ }));
42815
+ }
42778
42816
  /** Distinct initiatives a run list reads to say which moved on; past this a waiting row says it was not checked. */
42779
42817
  const INITIATIVE_CHECKS = 10;
42780
42818
  /**
@@ -43096,7 +43134,7 @@ function registerBuildTools(server, client) {
43096
43134
  }));
43097
43135
  server.registerTool("taiga_get_run", {
43098
43136
  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.",
43137
+ 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
43138
  inputSchema: object({
43101
43139
  runId,
43102
43140
  full: boolean().optional().describe("Carry each step's complete instructions and report (default false: a summary)")
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.46.0-dev.1252",
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",