@taiga-ai/mcp-server 0.39.1-dev.1241 → 0.40.0-dev.1242
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 +10 -10
- package/dist/index.js +58 -4
- 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.40.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.
|
|
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.40.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.40.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.
|
|
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.40.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.
|
|
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.40.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.
|
|
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.40.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.
|
|
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.40.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.
|
|
59
|
+
"args": ["-y", "@taiga-ai/mcp-server@0.40.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.
|
|
76
|
+
"args": ["-y", "@taiga-ai/mcp-server@0.40.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.
|
|
104
|
+
"args": ["-y", "@taiga-ai/mcp-server@0.40.0"],
|
|
105
105
|
"env": { "TAIGA_API_KEY": "${input:taiga-api-key}" }
|
|
106
106
|
}
|
|
107
107
|
}
|
package/dist/index.js
CHANGED
|
@@ -23720,6 +23720,13 @@ var TaigaClient = class {
|
|
|
23720
23720
|
return this.request("PUT", `/tenants/current/documents/${seg(type)}/draft`, body);
|
|
23721
23721
|
}
|
|
23722
23722
|
/**
|
|
23723
|
+
* One section of an organization document's draft (PRO-5087); 409 `draft_changed` when it changed since
|
|
23724
|
+
* `expectedContent`. Not the design standards, which are saved whole.
|
|
23725
|
+
*/
|
|
23726
|
+
async saveTenantDocumentSection(type, sectionId, body) {
|
|
23727
|
+
return this.request("PUT", `/tenants/current/documents/${seg(type)}/draft/sections/${seg(sectionId)}`, body);
|
|
23728
|
+
}
|
|
23729
|
+
/**
|
|
23723
23730
|
* Publish the draft. With `requireTokensAligned` the API checks, in the same transaction as the publish, that a
|
|
23724
23731
|
* design standards draft's text and tokens agree, and answers 409 `tokens_out_of_line` without publishing when
|
|
23725
23732
|
* they do not. The POST stays bodiless.
|
|
@@ -23749,6 +23756,10 @@ var TaigaClient = class {
|
|
|
23749
23756
|
async saveFactoryDocumentDraft(factoryId, type, body) {
|
|
23750
23757
|
return this.request("PUT", `/factories/${seg(factoryId)}/documents/${seg(type)}/draft`, body);
|
|
23751
23758
|
}
|
|
23759
|
+
/** One section of a factory document's draft (PRO-5087); 409 `draft_changed` when it changed since `expectedContent`. */
|
|
23760
|
+
async saveFactoryDocumentSection(factoryId, type, sectionId, body) {
|
|
23761
|
+
return this.request("PUT", `/factories/${seg(factoryId)}/documents/${seg(type)}/draft/sections/${seg(sectionId)}`, body);
|
|
23762
|
+
}
|
|
23752
23763
|
async publishFactoryDocument(factoryId, type) {
|
|
23753
23764
|
return this.request("POST", `/factories/${seg(factoryId)}/documents/${seg(type)}/publish`);
|
|
23754
23765
|
}
|
|
@@ -23781,6 +23792,10 @@ var TaigaClient = class {
|
|
|
23781
23792
|
async saveProductDocumentDraft(productId, type, body) {
|
|
23782
23793
|
return this.request("PUT", `/products/${seg(productId)}/documents/${seg(type)}/draft`, body);
|
|
23783
23794
|
}
|
|
23795
|
+
/** One section of a product document's draft (PRO-5087); 409 `draft_changed` when it changed since `expectedContent`. */
|
|
23796
|
+
async saveProductDocumentSection(productId, type, sectionId, body) {
|
|
23797
|
+
return this.request("PUT", `/products/${seg(productId)}/documents/${seg(type)}/draft/sections/${seg(sectionId)}`, body);
|
|
23798
|
+
}
|
|
23784
23799
|
async publishProductDocument(productId, type) {
|
|
23785
23800
|
return this.request("POST", `/products/${seg(productId)}/documents/${seg(type)}/publish`);
|
|
23786
23801
|
}
|
|
@@ -37367,7 +37382,7 @@ function outsideAllowlist(expression, allowlist) {
|
|
|
37367
37382
|
* reads as deleted) and fields they explain would simply be missing. So it
|
|
37368
37383
|
* refuses to start, and says what to do.
|
|
37369
37384
|
*/
|
|
37370
|
-
function apiLevelProblem(introspection, apiUrl, required =
|
|
37385
|
+
function apiLevelProblem(introspection, apiUrl, required = 11, version = SERVER_VERSION) {
|
|
37371
37386
|
const offered = introspection.mcpApiLevel ?? 0;
|
|
37372
37387
|
if (offered >= required) return null;
|
|
37373
37388
|
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.`;
|
|
@@ -40276,6 +40291,15 @@ async function editBase(scope) {
|
|
|
40276
40291
|
throw error;
|
|
40277
40292
|
}
|
|
40278
40293
|
}
|
|
40294
|
+
/** The section of that id, an own property only: `__proto__` is a section name like any other. */
|
|
40295
|
+
function ownSection(sections, id) {
|
|
40296
|
+
return Object.hasOwn(sections, id) ? sections[id] : void 0;
|
|
40297
|
+
}
|
|
40298
|
+
/** A section's markdown as the API reads it (`sectionText`): its string content, a bare string, else none. */
|
|
40299
|
+
function storedText(section) {
|
|
40300
|
+
if (typeof section === "string") return section;
|
|
40301
|
+
return isRecord$1(section) && typeof section["content"] === "string" ? section["content"] : null;
|
|
40302
|
+
}
|
|
40279
40303
|
/**
|
|
40280
40304
|
* Edit one section of a document's draft; the edit keeps every other section
|
|
40281
40305
|
* and the section's own metadata, see sections.ts.
|
|
@@ -40284,6 +40308,30 @@ async function updateSection(scope, type, id, content, options = {}) {
|
|
|
40284
40308
|
const { base, revision, publishedVersion } = await editBase(scope);
|
|
40285
40309
|
const sections = sectionsOf(base);
|
|
40286
40310
|
if (!sections) return toolError("UNSUPPORTED_DOCUMENT", `Document ${type} is not made of sections and cannot be edited section by section. Edit it in the Taiga app.`);
|
|
40311
|
+
if (scope.saveSection && !options.sendRevision) {
|
|
40312
|
+
let saved;
|
|
40313
|
+
try {
|
|
40314
|
+
saved = await scope.saveSection(id, {
|
|
40315
|
+
content,
|
|
40316
|
+
expectedContent: storedText(ownSection(sections, id))
|
|
40317
|
+
});
|
|
40318
|
+
} catch (error) {
|
|
40319
|
+
if (conflictReason(error)?.reason !== "draft_changed") throw error;
|
|
40320
|
+
const now = (await scope.getDraft()).data;
|
|
40321
|
+
const current = now ? storedText(ownSection(sectionsOf(now.data) ?? {}, id)) : null;
|
|
40322
|
+
return toolError("CONFLICT", `Section ${id} changed in the draft after this edit read it (someone edited it since), so nothing was saved and their change was kept. details.current is its text now: make the edit to that, then save it again.`, {
|
|
40323
|
+
reason: "draft_changed",
|
|
40324
|
+
current
|
|
40325
|
+
});
|
|
40326
|
+
}
|
|
40327
|
+
return toolResult({
|
|
40328
|
+
...documentSummary(saved.data),
|
|
40329
|
+
section: {
|
|
40330
|
+
id,
|
|
40331
|
+
content: sectionContent(sectionsOf(saved.data.data) ?? {}, id)
|
|
40332
|
+
}
|
|
40333
|
+
});
|
|
40334
|
+
}
|
|
40287
40335
|
const edited = {
|
|
40288
40336
|
...base,
|
|
40289
40337
|
sections: applySectionEdit(sections, id, content)
|
|
@@ -40484,6 +40532,7 @@ function registerDocumentTools(server, client) {
|
|
|
40484
40532
|
}));
|
|
40485
40533
|
if (client.hasCapability("tenant:documents:read") && client.hasCapability("tenant:documents:write")) {
|
|
40486
40534
|
const tenantScope = (type) => ({
|
|
40535
|
+
readTool: "taiga_get_organization_document",
|
|
40487
40536
|
getDraft: () => client.getTenantDocumentDraft(type),
|
|
40488
40537
|
getPublished: () => client.getTenantDocument(type),
|
|
40489
40538
|
saveDraft: (data, options) => client.saveTenantDocumentDraft(type, {
|
|
@@ -40491,7 +40540,8 @@ function registerDocumentTools(server, client) {
|
|
|
40491
40540
|
...options?.expectedRevision !== void 0 ? { expectedRevision: options.expectedRevision } : {},
|
|
40492
40541
|
...options?.expectedPublishedVersion !== void 0 ? { expectedPublishedVersion: options.expectedPublishedVersion } : {}
|
|
40493
40542
|
}),
|
|
40494
|
-
publish: (options) => client.publishTenantDocument(type, options)
|
|
40543
|
+
publish: (options) => client.publishTenantDocument(type, options),
|
|
40544
|
+
...type === DESIGN_STANDARDS ? {} : { saveSection: (sectionId, body) => client.saveTenantDocumentSection(type, sectionId, body) }
|
|
40495
40545
|
});
|
|
40496
40546
|
server.registerTool("taiga_update_organization_document", {
|
|
40497
40547
|
title: "Update a section of an organization document draft",
|
|
@@ -40536,10 +40586,12 @@ function registerDocumentTools(server, client) {
|
|
|
40536
40586
|
}));
|
|
40537
40587
|
if (client.hasCapability("factories:read") && client.hasCapability("factories:documents:write")) {
|
|
40538
40588
|
const factoryScope = (factoryId, type) => ({
|
|
40589
|
+
readTool: "taiga_get_factory_document",
|
|
40539
40590
|
getDraft: () => client.getFactoryDocumentDraft(factoryId, type),
|
|
40540
40591
|
getPublished: () => client.getFactoryDocument(factoryId, type),
|
|
40541
40592
|
saveDraft: (data) => client.saveFactoryDocumentDraft(factoryId, type, { data }),
|
|
40542
|
-
publish: () => client.publishFactoryDocument(factoryId, type)
|
|
40593
|
+
publish: () => client.publishFactoryDocument(factoryId, type),
|
|
40594
|
+
saveSection: (sectionId, body) => client.saveFactoryDocumentSection(factoryId, type, sectionId, body)
|
|
40543
40595
|
});
|
|
40544
40596
|
const factoryId = idInput("factory", "taiga_list_factories (query finds one by name) gives it");
|
|
40545
40597
|
const factoryDocumentType = _enum(FACTORY_DOCUMENT_TYPES).default("factory_instructions").describe("Document type");
|
|
@@ -44474,10 +44526,12 @@ function registerProductDocumentWrites(server, client) {
|
|
|
44474
44526
|
if (!client.hasCapability("products:write")) return;
|
|
44475
44527
|
const canRead = client.hasCapability("products:read");
|
|
44476
44528
|
const productScope = (product, type) => ({
|
|
44529
|
+
readTool: "taiga_get_product_document",
|
|
44477
44530
|
getDraft: () => client.getProductDocumentDraft(product, type),
|
|
44478
44531
|
getPublished: () => client.getProductDocument(product, type, "plan"),
|
|
44479
44532
|
saveDraft: (data) => client.saveProductDocumentDraft(product, type, { data }),
|
|
44480
|
-
publish: () => client.publishProductDocument(product, type)
|
|
44533
|
+
publish: () => client.publishProductDocument(product, type),
|
|
44534
|
+
saveSection: (sectionId, body) => client.saveProductDocumentSection(product, type, sectionId, body)
|
|
44481
44535
|
});
|
|
44482
44536
|
if (canRead) server.registerTool("taiga_update_product_document", {
|
|
44483
44537
|
title: "Update a section of a product document draft",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ai/mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.0-dev.1242",
|
|
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",
|