@taiga-ai/mcp-server 0.26.2-dev.554 → 0.26.2-dev.557

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.
package/README.md CHANGED
@@ -10,8 +10,9 @@ It runs locally over stdio and calls the Taiga API with your access key.
10
10
 
11
11
  ## Before you install
12
12
 
13
- 1. Create an access key in Taiga under **Settings > Account > AI tools**, and choose its permissions.
14
- 2. The key acts as you. It can do what your role can do, and no more.
13
+ You need an access key, made in Taiga under **Settings > Account > AI tools**, where you also choose its permissions. The key acts as you: it can do what your role can do, and no more.
14
+
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.
15
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
18
 
@@ -19,14 +20,14 @@ The same page shows the setup for your tool and environment. The examples here p
19
20
 
20
21
  ### Claude Code and Codex
21
22
 
22
- Paste your key when the command waits for it; it is read without echo and stays out of your shell history:
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:
23
24
 
24
25
  ```sh
25
- read -rs TAIGA_API_KEY && 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.26.2
26
27
  ```
27
28
 
28
29
  ```sh
29
- read -rs TAIGA_API_KEY && 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.26.2
30
31
  ```
31
32
 
32
33
  On Windows, in PowerShell (Claude Code needs `cmd /c` to start `npx`; the quoted `'--'` survives npm's PowerShell shims):
@@ -41,7 +42,7 @@ $k = Read-Host 'Taiga access key' -AsSecureString; codex mcp add taiga --env "TA
41
42
 
42
43
  ### Cursor, Windsurf, Claude Desktop and others
43
44
 
44
- Most tools read the same `mcpServers` block:
45
+ Most tools read the same `mcpServers` block. Add it first, then create a key and paste it over `YOUR_ACCESS_KEY`. If the file already lists other servers, add the `taiga` entry beside them:
45
46
 
46
47
  ```json
47
48
  {
package/dist/index.js CHANGED
@@ -22289,6 +22289,10 @@ var TaigaClient = class {
22289
22289
  getIntrospection() {
22290
22290
  return this.introspection;
22291
22291
  }
22292
+ /** Whether a release toggle an MCP tool depends on is on where the key's API runs (PRO-3037). */
22293
+ hasFeature(feature) {
22294
+ return this.introspection?.mcpFeatures?.includes(feature) ?? false;
22295
+ }
22292
22296
  hasCapability(capability) {
22293
22297
  if (!this.introspection) return false;
22294
22298
  return this.introspection.capabilities.includes(capability);
@@ -22463,6 +22467,10 @@ var TaigaClient = class {
22463
22467
  async stopBuildRun(id) {
22464
22468
  return this.request("POST", `/builds/${seg(id)}/stop`);
22465
22469
  }
22470
+ /** Ask the coding agent for changes to the run's pull request (PRO-3035). */
22471
+ async requestBuildRunChanges(id, notes) {
22472
+ return this.request("POST", `/builds/${seg(id)}/request-changes`, { notes });
22473
+ }
22466
22474
  async listBuildRunSteps(id) {
22467
22475
  return this.request("GET", `/builds/${seg(id)}/steps`);
22468
22476
  }
@@ -24107,6 +24115,8 @@ const MCP_TOOLSETS = [
24107
24115
  "documents"
24108
24116
  ];
24109
24117
  [...TURN_EVENT_TRIGGERS];
24118
+ /** Longest request for changes from Taiga (PRO-3035): about four pages of prose. */
24119
+ const CHANGE_REQUEST_MAX_CHARS = 1e4;
24110
24120
  //#endregion
24111
24121
  //#region ../../packages/types/dist/maintenance.js
24112
24122
  /**
@@ -24730,6 +24740,7 @@ const TOOLSET_OF = {
24730
24740
  taiga_plan_again: "operate",
24731
24741
  taiga_resume_initiative: "operate",
24732
24742
  taiga_stop_run: "operate",
24743
+ taiga_request_changes: "operate",
24733
24744
  taiga_request_initiatives: "operate",
24734
24745
  taiga_fix_finding: "operate",
24735
24746
  taiga_fix_policy_violation: "operate",
@@ -27592,6 +27603,22 @@ function registerBuildTools(server, client) {
27592
27603
  });
27593
27604
  }));
27594
27605
  if (!client.hasCapability("products:write")) return;
27606
+ if (client.hasFeature("requestChanges")) server.registerTool("taiga_request_changes", {
27607
+ title: "Request changes on a pull request",
27608
+ description: "Tell the coding agent what should change on a run's open pull request, as a person's review would: it splits the request into separate asks, makes the changes on the same pull request, and answers each one there (done, answered, or not done and why). Only for a run whose pull request is waiting for review (the initiative is in review with its pull request open); refused otherwise, and where the organization does not have it yet. taiga_wait follows the run until it is back in review.",
27609
+ inputSchema: object({
27610
+ runId,
27611
+ notes: string$2().trim().min(1).max(CHANGE_REQUEST_MAX_CHARS).describe("What should change, in markdown: a list of changes, questions, or both")
27612
+ }),
27613
+ annotations: OPERATE
27614
+ }, (params) => runTool(async () => {
27615
+ const result = await client.requestBuildRunChanges(params.runId, params.notes);
27616
+ const row = pickFields([result.data], RUN_OUTCOME_FIELDS)[0];
27617
+ return toolResult({
27618
+ ...readableRow(row),
27619
+ requestId: result.data.requestId
27620
+ });
27621
+ }));
27595
27622
  server.registerTool("taiga_stop_run", {
27596
27623
  title: "Stop a run",
27597
27624
  description: "Stop a run in an emergency, when its initiative cannot be moved out of Build. Normally stop work by moving the initiative out of Build. The branch and any draft pull request stay. Refused for a run that cannot be stopped this way.",
@@ -45696,6 +45723,7 @@ const PAID_WORK = /* @__PURE__ */ new Set([
45696
45723
  "taiga_refresh_reality_documents",
45697
45724
  "taiga_regenerate_product_document",
45698
45725
  "taiga_reject_plan",
45726
+ "taiga_request_changes",
45699
45727
  "taiga_request_initiatives",
45700
45728
  "taiga_resume_initiative",
45701
45729
  "taiga_retry_knowledge",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.26.2-dev.554",
3
+ "version": "0.26.2-dev.557",
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",