@taiga-ai/mcp-server 0.32.0-rc.672 → 0.33.0-dev.677
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 +52 -37
- 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.33.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.33.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.33.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.33.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.33.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.33.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.33.0"],
|
|
82
82
|
"env": { "TAIGA_API_KEY": "${input:taiga-api-key}" }
|
|
83
83
|
}
|
|
84
84
|
}
|
package/dist/index.js
CHANGED
|
@@ -25861,12 +25861,24 @@ const PACKAGE_ROW_FIELDS = [
|
|
|
25861
25861
|
"otherPlatformsOnly",
|
|
25862
25862
|
"licenseSource",
|
|
25863
25863
|
"licenseGap",
|
|
25864
|
+
"licenseNotes",
|
|
25864
25865
|
"scopeReason",
|
|
25865
25866
|
"parentReason",
|
|
25866
25867
|
"sourcePath",
|
|
25867
25868
|
"productRepositoryId",
|
|
25868
25869
|
"detectedAt"
|
|
25869
25870
|
];
|
|
25871
|
+
/**
|
|
25872
|
+
* The organization's own package (milestone 2j) reads as its own code: no
|
|
25873
|
+
* licence to decide, so not the licence a public package of that name has.
|
|
25874
|
+
*/
|
|
25875
|
+
function ownCode(row) {
|
|
25876
|
+
return row["firstParty"] === true ? {
|
|
25877
|
+
...row,
|
|
25878
|
+
licenses: [],
|
|
25879
|
+
ownCode: true
|
|
25880
|
+
} : row;
|
|
25881
|
+
}
|
|
25870
25882
|
const FINDING_ROW_FIELDS = [
|
|
25871
25883
|
"id",
|
|
25872
25884
|
"kind",
|
|
@@ -26225,7 +26237,7 @@ function registerMaintenanceTools(server, client) {
|
|
|
26225
26237
|
}));
|
|
26226
26238
|
server.registerTool("taiga_list_packages", {
|
|
26227
26239
|
title: "List the package inventory",
|
|
26228
|
-
description: "List every package a product's code uses, with version, license, whether it is direct or dev only, and what pulls a transitive one in. The first page summarizes licenses against the allowed list. Filter by license, name or repository. NOT_FOUND where the licenses feature is off.",
|
|
26240
|
+
description: "List every package a product's code uses, with version, license, whether it is direct or dev only, and what pulls a transitive one in; ownCode marks the organization's own packages, approved as its own code. The first page summarizes licenses against the allowed list. Filter by license, name or repository. NOT_FOUND where the licenses feature is off.",
|
|
26229
26241
|
inputSchema: object({
|
|
26230
26242
|
productId,
|
|
26231
26243
|
license: string$2().min(1).max(MAINTENANCE_LICENSE_FILTER_MAX).optional().describe("Only packages carrying exactly this SPDX string"),
|
|
@@ -26242,7 +26254,7 @@ function registerMaintenanceTools(server, client) {
|
|
|
26242
26254
|
}), params.cursor === void 0 ? client.getLicenseSummary(id) : Promise.resolve(null)]);
|
|
26243
26255
|
return toolResult({
|
|
26244
26256
|
...summary ? { licenses: summary.data } : {},
|
|
26245
|
-
...page(pickFields(result.data, PACKAGE_ROW_FIELDS), result.nextCursor),
|
|
26257
|
+
...page(pickFields(result.data, PACKAGE_ROW_FIELDS).map(ownCode), result.nextCursor),
|
|
26246
26258
|
...typeof result.totalCount === "number" ? { totalCount: result.totalCount } : {}
|
|
26247
26259
|
});
|
|
26248
26260
|
}));
|
|
@@ -27955,6 +27967,37 @@ async function activityRows(client, opts) {
|
|
|
27955
27967
|
...note ? { note } : {}
|
|
27956
27968
|
};
|
|
27957
27969
|
}
|
|
27970
|
+
/**
|
|
27971
|
+
* What a request for changes did to this plan (PRO-3161), when one revised it:
|
|
27972
|
+
* the steps the re-plan added, edited and dropped, and the committed steps it
|
|
27973
|
+
* reverts, from the `run_replanned` event that made this version. Null for a
|
|
27974
|
+
* plan no request revised, or when the history cannot be read.
|
|
27975
|
+
*/
|
|
27976
|
+
async function planRevisionOf(client, initiativeId, planId) {
|
|
27977
|
+
let events;
|
|
27978
|
+
try {
|
|
27979
|
+
events = (await client.listBacklogItemActivity(initiativeId)).data;
|
|
27980
|
+
} catch (error) {
|
|
27981
|
+
if (error instanceof TaigaApiError || isNetworkFailure(error)) return null;
|
|
27982
|
+
throw error;
|
|
27983
|
+
}
|
|
27984
|
+
for (const event of [...events].reverse()) {
|
|
27985
|
+
if (event.kind !== "turn" || event.trigger !== "run_replanned") continue;
|
|
27986
|
+
const data = event.data ?? {};
|
|
27987
|
+
if (data["planId"] !== planId) continue;
|
|
27988
|
+
return {
|
|
27989
|
+
revisedFor: "a request for changes",
|
|
27990
|
+
previousPlanId: data["previousPlanId"] ?? null,
|
|
27991
|
+
added: data["added"] ?? [],
|
|
27992
|
+
edited: data["edited"] ?? [],
|
|
27993
|
+
dropped: data["dropped"] ?? [],
|
|
27994
|
+
reverted: data["reverted"] ?? [],
|
|
27995
|
+
waitsForReview: data["reviewPlan"] === true,
|
|
27996
|
+
at: event.occurredAt ?? null
|
|
27997
|
+
};
|
|
27998
|
+
}
|
|
27999
|
+
return null;
|
|
28000
|
+
}
|
|
27958
28001
|
function registerBuildTools(server, client) {
|
|
27959
28002
|
if (!client.hasCapability("products:read")) return;
|
|
27960
28003
|
server.registerTool("taiga_list_runs", {
|
|
@@ -27987,7 +28030,7 @@ function registerBuildTools(server, client) {
|
|
|
27987
28030
|
}));
|
|
27988
28031
|
server.registerTool("taiga_get_run", {
|
|
27989
28032
|
title: "Get run",
|
|
27990
|
-
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. Carry it on from its initiative (taiga_resume_initiative).",
|
|
28033
|
+
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. Carry it on from its initiative (taiga_resume_initiative).",
|
|
27991
28034
|
inputSchema: object({
|
|
27992
28035
|
runId,
|
|
27993
28036
|
full: boolean().optional().describe("Carry each step's complete instructions and report (default false: a summary)")
|
|
@@ -28003,8 +28046,11 @@ function registerBuildTools(server, client) {
|
|
|
28003
28046
|
...where ? { stoppedIn: where } : {},
|
|
28004
28047
|
...cause ? { cause } : {}
|
|
28005
28048
|
};
|
|
28006
|
-
const states = await initiativeStates(client, [runRow]);
|
|
28007
|
-
const readable =
|
|
28049
|
+
const [states, lastReplan] = await Promise.all([initiativeStates(client, [runRow]), runRow.backlogItemId && runRow.planId ? planRevisionOf(client, runRow.backlogItemId, runRow.planId) : Promise.resolve(null)]);
|
|
28050
|
+
const readable = {
|
|
28051
|
+
...withInitiativeState(readableRun(runRow), states),
|
|
28052
|
+
...lastReplan ? { lastReplan } : {}
|
|
28053
|
+
};
|
|
28008
28054
|
const note = verificationNote(rows);
|
|
28009
28055
|
const verification = note ? { verificationNote: note } : {};
|
|
28010
28056
|
if (params.full) return toolResult({
|
|
@@ -28026,7 +28072,7 @@ function registerBuildTools(server, client) {
|
|
|
28026
28072
|
if (!client.hasCapability("products:write")) return;
|
|
28027
28073
|
server.registerTool("taiga_request_changes", {
|
|
28028
28074
|
title: "Request changes on a run",
|
|
28029
|
-
description: "Tell Taiga what should change in a run, while it builds or once its pull request waits for review, a draft included, such as one Taiga handed back with CI failing or its tests red. The run stops after the step it is building (at once when it is not building one), the planner revises the steps still to build on top of the committed work (adding, editing, dropping, or reverting committed steps exactly), and the run continues with the revised steps; never a new initiative. A request while the run hardens, checks CI or is already being re-planned waits and joins the next re-plan. reviewPlan holds the run until a person has looked at the revised plan (taiga_review_plan approves it or comments to revise it again). A request the planner will not plan, a policy conflict, hands the run back with the reason, still on its original plan. The answer says what happened to it (steer). For a plan that waits for its build to be approved, comment on the plan with taiga_review_plan instead.",
|
|
28075
|
+
description: "Tell Taiga what should change in a run, while it builds or once its pull request waits for review, a draft included, such as one Taiga handed back with CI failing or its tests red. The run stops after the step it is building (at once when it is not building one), the planner revises the steps still to build on top of the committed work (adding, editing, dropping, or reverting committed steps exactly), and the run continues with the revised steps; never a new initiative. A request while the run hardens, checks CI or is already being re-planned waits and joins the next re-plan. reviewPlan holds the run until a person has looked at the revised plan (taiga_review_plan approves it or comments to revise it again). A request the planner will not plan, a policy conflict, hands the run back with the reason, still on its original plan. The answer says what happened to it (steer). A run that fixes a finding, or one over several repositories, is not re-planned: it takes a request only once its pull request waits for review, as a review of that pull request. For a plan that waits for its build to be approved, comment on the plan with taiga_review_plan instead.",
|
|
28030
28076
|
inputSchema: object({
|
|
28031
28077
|
runId,
|
|
28032
28078
|
notes: string$2().trim().min(1).max(CHANGE_REQUEST_MAX_CHARS).describe("What should change, in markdown: a list of changes, questions, or both"),
|
|
@@ -28477,37 +28523,6 @@ async function planFailureOf(client, initiativeId, itemCause) {
|
|
|
28477
28523
|
by: typeof actor.name === "string" ? actor.name : actor.type ?? null
|
|
28478
28524
|
};
|
|
28479
28525
|
}
|
|
28480
|
-
/**
|
|
28481
|
-
* What a request for changes did to this plan (PRO-3161), when one revised it:
|
|
28482
|
-
* the steps the re-plan added, edited and dropped, and the committed steps it
|
|
28483
|
-
* reverts, from the `run_replanned` event that made this version. Null for a
|
|
28484
|
-
* plan no request revised, or when the history cannot be read.
|
|
28485
|
-
*/
|
|
28486
|
-
async function planRevisionOf(client, initiativeId, planId) {
|
|
28487
|
-
let events;
|
|
28488
|
-
try {
|
|
28489
|
-
events = (await client.listBacklogItemActivity(initiativeId)).data;
|
|
28490
|
-
} catch (error) {
|
|
28491
|
-
if (error instanceof TaigaApiError || isNetworkFailure(error)) return null;
|
|
28492
|
-
throw error;
|
|
28493
|
-
}
|
|
28494
|
-
for (const event of [...events].reverse()) {
|
|
28495
|
-
if (event.kind !== "turn" || event.trigger !== "run_replanned") continue;
|
|
28496
|
-
const data = event.data ?? {};
|
|
28497
|
-
if (data["planId"] !== planId) continue;
|
|
28498
|
-
return {
|
|
28499
|
-
revisedFor: "a request for changes",
|
|
28500
|
-
previousPlanId: data["previousPlanId"] ?? null,
|
|
28501
|
-
added: data["added"] ?? [],
|
|
28502
|
-
edited: data["edited"] ?? [],
|
|
28503
|
-
dropped: data["dropped"] ?? [],
|
|
28504
|
-
reverted: data["reverted"] ?? [],
|
|
28505
|
-
waitsForReview: data["reviewPlan"] === true,
|
|
28506
|
-
at: event.occurredAt ?? null
|
|
28507
|
-
};
|
|
28508
|
-
}
|
|
28509
|
-
return null;
|
|
28510
|
-
}
|
|
28511
28526
|
const planId = idInput("plan", "taiga_get_plan gives the initiative's active plan and its ID");
|
|
28512
28527
|
const initiativeId = idInput("initiative", "taiga_list_initiatives (query finds one by title) gives it");
|
|
28513
28528
|
/** The plan without its steps' prose: enough to approve it or say what a run will do. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ai/mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0-dev.677",
|
|
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",
|