@taiga-ai/mcp-server 0.29.0-dev.638 → 0.30.0-dev.639
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 +7 -7
- package/dist/index.js +47 -1
- 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.
|
|
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.30.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.
|
|
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.30.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.
|
|
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.30.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.
|
|
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.30.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.
|
|
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.30.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.
|
|
52
|
+
"args": ["-y", "@taiga-ai/mcp-server@0.30.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.
|
|
81
|
+
"args": ["-y", "@taiga-ai/mcp-server@0.30.0"],
|
|
82
82
|
"env": { "TAIGA_API_KEY": "${input:taiga-api-key}" }
|
|
83
83
|
}
|
|
84
84
|
}
|
package/dist/index.js
CHANGED
|
@@ -22559,6 +22559,15 @@ var TaigaClient = class {
|
|
|
22559
22559
|
const path = productId ? `/products/${seg(productId)}/inbox` : "/inbox";
|
|
22560
22560
|
return this.request("GET", `${path}${query$1({ ...rest })}`);
|
|
22561
22561
|
}
|
|
22562
|
+
/**
|
|
22563
|
+
* The requests waiting on the caller (GET /users/me/requests), the read the
|
|
22564
|
+
* web's Action required page merges with the inbox: a licence nobody
|
|
22565
|
+
* approved (license_review, PRO-3313) is one, listed only for a caller who
|
|
22566
|
+
* can change the list.
|
|
22567
|
+
*/
|
|
22568
|
+
async listMyRequests() {
|
|
22569
|
+
return this.request("GET", "/users/me/requests");
|
|
22570
|
+
}
|
|
22562
22571
|
async updateInboxItem(id, body) {
|
|
22563
22572
|
return this.request("PATCH", `/inbox/${seg(id)}`, body);
|
|
22564
22573
|
}
|
|
@@ -28756,6 +28765,40 @@ function setupTaskRow(row) {
|
|
|
28756
28765
|
...Array.isArray(alsoFiledAs) ? { alsoFiledAs: alsoFiledAs.map(setupTaskRow) } : {}
|
|
28757
28766
|
};
|
|
28758
28767
|
}
|
|
28768
|
+
/**
|
|
28769
|
+
* The licences nobody approved, in use in a product (PRO-3313, PRO-3396): requests rather than inbox items, so
|
|
28770
|
+
* the inbox read never listed them, though the web's Action required page does. Read for a key that can change
|
|
28771
|
+
* the list (the API lists them to nobody else), on the first page, and best effort: a failed read leaves them
|
|
28772
|
+
* out, not the page.
|
|
28773
|
+
*/
|
|
28774
|
+
async function licenseReviews(client, productId, now) {
|
|
28775
|
+
if (!client.hasCapability("tenant:settings")) return null;
|
|
28776
|
+
try {
|
|
28777
|
+
const result = await client.listMyRequests();
|
|
28778
|
+
return {
|
|
28779
|
+
rows: result.data.filter((r) => r["kind"] === "license_review").map((r) => {
|
|
28780
|
+
const product = r["product"] ?? {};
|
|
28781
|
+
const data = r["data"] ?? {};
|
|
28782
|
+
const created = typeof r["createdAt"] === "string" ? Date.parse(r["createdAt"]) : NaN;
|
|
28783
|
+
return {
|
|
28784
|
+
id: r["id"],
|
|
28785
|
+
productId: product["id"],
|
|
28786
|
+
productName: product["name"],
|
|
28787
|
+
kind: "review_license",
|
|
28788
|
+
license: data["license"],
|
|
28789
|
+
packages: data["packages"],
|
|
28790
|
+
...Number.isNaN(created) ? {} : { waitingDays: Math.floor((now - created) / DAY_MS) },
|
|
28791
|
+
readWith: "taiga_list_licenses (license)",
|
|
28792
|
+
decideWith: "taiga_change_license (license, action: 'approve'); dismissing it is only in the web"
|
|
28793
|
+
};
|
|
28794
|
+
}).filter((r) => productId === void 0 || r.productId === productId),
|
|
28795
|
+
truncated: result.truncated === true
|
|
28796
|
+
};
|
|
28797
|
+
} catch (err) {
|
|
28798
|
+
if (err instanceof TaigaApiError || isNetworkFailure(err)) return null;
|
|
28799
|
+
throw err;
|
|
28800
|
+
}
|
|
28801
|
+
}
|
|
28759
28802
|
/** A summary past its first sentence: review_doc rows quoted two documents, 800 to 1,200 characters each. */
|
|
28760
28803
|
const SUMMARY_LIMIT = 200;
|
|
28761
28804
|
function firstSentence(text) {
|
|
@@ -29010,7 +29053,7 @@ function registerInboxTools(server, client) {
|
|
|
29010
29053
|
if (!client.hasCapability("products:read")) return;
|
|
29011
29054
|
server.registerTool("taiga_list_action_required", {
|
|
29012
29055
|
title: "List what needs a person",
|
|
29013
|
-
description: "List what waits on a person (Action Required): reviews to make and setup only a person can do. The first page opens with a summary by product and kind; rows say how long each has waited and which read opens it (readWith). Across every product (10 rows by default) or one; kind and category narrow it, resolved: true reads what was done.",
|
|
29056
|
+
description: "List what waits on a person (Action Required): reviews to make and setup only a person can do. The first page opens with a summary by product and kind; rows say how long each has waited and which read opens it (readWith). Across every product (10 rows by default) or one; kind and category narrow it, resolved: true reads what was done. For a key that can change the approved license list, the first page also lists licenseReviews: licenses in use in a product that nobody approved.",
|
|
29014
29057
|
inputSchema: object({
|
|
29015
29058
|
productId: productId.optional(),
|
|
29016
29059
|
category: _enum(["gate", "setup"]).optional().describe("gate: things to review; setup: things to set up"),
|
|
@@ -29047,6 +29090,7 @@ function registerInboxTools(server, client) {
|
|
|
29047
29090
|
uncheckedIds: /* @__PURE__ */ new Set()
|
|
29048
29091
|
} : await staleReviews(client, [...due, ...overviewDue]);
|
|
29049
29092
|
const stale = checked.stale;
|
|
29093
|
+
const licences = first && !resolved && !kind && !params.category ? await licenseReviews(client, params.productId, now) : null;
|
|
29050
29094
|
return toolResult({
|
|
29051
29095
|
...overview ? {
|
|
29052
29096
|
summary: summaryOf(overviewDue, stale),
|
|
@@ -29067,6 +29111,8 @@ function registerInboxTools(server, client) {
|
|
|
29067
29111
|
...totalOf(result),
|
|
29068
29112
|
...overview && typeof result.totalCount === "number" && (stale.size > 0 || overview.data.length > overviewDue.length || overview.nextCursor) ? { totalNote: "totalCount counts every item, stale and snoozed ones too; summary.open does not" + (overview.nextCursor ? `, and counts only the first 1000.` : ".") } : {},
|
|
29069
29113
|
...hidden > 0 ? { snoozedHidden: hidden } : {},
|
|
29114
|
+
...licences && licences.rows.length > 0 ? { licenseReviews: licences.rows } : {},
|
|
29115
|
+
...licences?.truncated ? { licenseReviewsNote: "The requests read stopped at its cap, so some licence reviews may be missing here; the web's Action required lists them all." } : {},
|
|
29070
29116
|
...checked.unchecked > 0 ? (() => {
|
|
29071
29117
|
const onPage = due.filter((row) => checked.uncheckedIds.has(String(row["id"]))).length;
|
|
29072
29118
|
const beyond = checked.unchecked - onPage;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ai/mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0-dev.639",
|
|
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",
|