@taiga-ai/mcp-server 0.43.0-dev.1248 → 0.44.0-dev.1250

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 +59 -7
  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.43.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.44.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.43.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.44.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.43.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.44.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.43.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.44.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.43.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.44.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.43.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.44.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.43.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.44.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.43.0"],
59
+ "args": ["-y", "@taiga-ai/mcp-server@0.44.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.43.0"],
76
+ "args": ["-y", "@taiga-ai/mcp-server@0.44.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.43.0"],
104
+ "args": ["-y", "@taiga-ai/mcp-server@0.44.0"],
105
105
  "env": { "TAIGA_API_KEY": "${input:taiga-api-key}" }
106
106
  }
107
107
  }
package/dist/index.js CHANGED
@@ -39399,7 +39399,7 @@ const BY_ARGUMENT = {
39399
39399
  replacesLinkId: "taiga_list_product_repositories lists the product's repository links.",
39400
39400
  linkableRepositoryId: "taiga_list_linkable_repositories lists the repositories the GitHub, GitLab and Azure DevOps connections reach, with their ids.",
39401
39401
  installationId: "taiga_list_linkable_repositories lists the connected GitHub accounts, GitLab and Azure DevOps connections.",
39402
- jobId: "A job ID is what the tool that started the job returned (taiga_request_initiatives, taiga_start_import).",
39402
+ jobId: "A job ID is the job's ID that the tool that started it returned (as id or jobId); an initiative or run ID is not one.",
39403
39403
  factoryId: "taiga_list_factories lists the factories the key can see.",
39404
39404
  findingId: "taiga_list_findings lists a product's findings.",
39405
39405
  violationId: "taiga_get_policy_standing lists a product's policy violations.",
@@ -39414,8 +39414,31 @@ const BY_ARGUMENT = {
39414
39414
  * feature is off) blames neither.
39415
39415
  */
39416
39416
  const licenseMiss = (hint) => (said) => /\blicen[cs]e\b/i.test(said) ? hint : /\b(product|project) not found/i.test(said) ? BY_ARGUMENT["productId"] : void 0;
39417
+ /**
39418
+ * A document's miss (PRO-5099): "No draft found to publish" names neither the product nor the factory, and giving
39419
+ * every ID's hint told the model its correct product ID was the mistake. The read of that scope's documents says
39420
+ * which exist, drafts included; anything else is the scope's own miss.
39421
+ */
39422
+ const documentMiss = (read, scope) => (said) => {
39423
+ if (/\bdraft\b|\bno published\b|\bdocuments?\b/i.test(said) && !/\b(product|project|factory|team) not found/i.test(said)) return `${read} says which documents exist, drafts included.`;
39424
+ return scope && MISSING_THING[scope]?.test(said) ? BY_ARGUMENT[scope] : void 0;
39425
+ };
39426
+ const PRODUCT_DOCUMENTS = documentMiss("taiga_get_product_document (productId, without type)", "productId");
39427
+ const FACTORY_DOCUMENTS = documentMiss("taiga_get_factory_document (factoryId)", "factoryId");
39428
+ const ORGANIZATION_DOCUMENTS = documentMiss("taiga_get_organization_document (without type)", null);
39417
39429
  /** Where an argument means something else on one tool, or the tool's 404 needs its own word. */
39418
39430
  const BY_TOOL = {
39431
+ taiga_publish_product_document: PRODUCT_DOCUMENTS,
39432
+ taiga_mark_product_document_reviewed: PRODUCT_DOCUMENTS,
39433
+ taiga_delete_product_document: PRODUCT_DOCUMENTS,
39434
+ taiga_regenerate_product_document: PRODUCT_DOCUMENTS,
39435
+ taiga_update_product_document: PRODUCT_DOCUMENTS,
39436
+ taiga_remove_product_document_section: PRODUCT_DOCUMENTS,
39437
+ taiga_publish_factory_document: FACTORY_DOCUMENTS,
39438
+ taiga_update_factory_document: FACTORY_DOCUMENTS,
39439
+ taiga_publish_organization_document: ORGANIZATION_DOCUMENTS,
39440
+ taiga_update_organization_document: ORGANIZATION_DOCUMENTS,
39441
+ taiga_get_design_token_sync: () => "taiga_sync_design_tokens starts a sync and returns its job's ID.",
39419
39442
  taiga_allow_license: licenseMiss("taiga_list_packages (productId) summarizes the product's licenses as its findings name them; a license with no finding there has nothing to allow or reopen."),
39420
39443
  taiga_list_licenses: licenseMiss("taiga_list_licenses without license lists the licenses in use, and taiga_list_packages (productId) one product's, spelled as their findings spell them."),
39421
39444
  taiga_resolve_action: () => "taiga_list_action_required lists the items with their IDs.",
@@ -43983,9 +44006,33 @@ async function knowledgeLinks(client, item, documentIds) {
43983
44006
  };
43984
44007
  }
43985
44008
  /** What an edit that changed nothing left as it was. */
43986
- function unchangedWhat(criteria, knowledge) {
43987
- if (criteria && knowledge) return "The criteria and linked knowledge are as they were";
43988
- return criteria ? "The criteria are as they were" : "The linked knowledge is as it was";
44009
+ function unchangedWhat(criteria, knowledge, plain = []) {
44010
+ const parts = [
44011
+ ...plain.map((key) => `the ${key}`),
44012
+ ...criteria ? ["the criteria"] : [],
44013
+ ...knowledge ? ["the linked knowledge"] : []
44014
+ ];
44015
+ const plural = parts.length > 1 || criteria || plain.includes("dependencies");
44016
+ const named = parts.length === 1 ? parts[0] : `${parts.slice(0, -1).join(", ")} and ${parts.at(-1).replace(/^the /, "")}`;
44017
+ return `${named.charAt(0).toUpperCase()}${named.slice(1)} ${plural ? "are as they were" : "is as it was"}`;
44018
+ }
44019
+ /** The fields of an initiative an edit sets as plain values, read back and compared as they are. */
44020
+ const PLAIN_FIELDS = [
44021
+ "title",
44022
+ "description",
44023
+ "priority",
44024
+ "estimate",
44025
+ "category",
44026
+ "dependencies"
44027
+ ];
44028
+ /** Whether a field already holds what an edit sends: dependencies as a set, the rest as they are. */
44029
+ function sameValue(held, sent) {
44030
+ if (Array.isArray(held) && Array.isArray(sent)) return held.length === sent.length && [...held].map(String).sort((a, b) => a.localeCompare(b)).join("\n") === [...sent].map(String).sort((a, b) => a.localeCompare(b)).join("\n");
44031
+ return held === sent;
44032
+ }
44033
+ /** Each field an edit set, as the initiative now holds it; a description by its length, which the model just sent. */
44034
+ function setFields(item, plain) {
44035
+ return Object.fromEntries(plain.map((key) => key === "description" ? ["descriptionCharacters", item.description.length] : [key, item[key]]));
43989
44036
  }
43990
44037
  /**
43991
44038
  * A criterion as the edit takes it: its text, and whether it needs an
@@ -44073,7 +44120,8 @@ function registerEdit(server, client) {
44073
44120
  if (lacking.length > 0) return toolError("FORBIDDEN", `Linking knowledge reads the initiative and each file, and needs ${lacking.join(", ")}, which this key lacks.`);
44074
44121
  }
44075
44122
  if (acceptanceCriteria !== void 0 && !client.hasCapability("backlog:read")) return toolError("FORBIDDEN", "Editing acceptance criteria reads the current ones first and needs backlog:read, which this key lacks.");
44076
- const current = acceptanceCriteria !== void 0 || documentIds !== void 0 ? (await client.getBacklogItem(id)).data : null;
44123
+ const plain = PLAIN_FIELDS.filter((key) => fields[key] !== void 0);
44124
+ const current = acceptanceCriteria !== void 0 || documentIds !== void 0 || plain.length > 0 && client.hasCapability("backlog:read") ? (await client.getBacklogItem(id)).data : null;
44077
44125
  let links;
44078
44126
  if (documentIds !== void 0 && current) {
44079
44127
  const checked = await knowledgeLinks(client, current, documentIds);
@@ -44086,9 +44134,10 @@ function registerEdit(server, client) {
44086
44134
  if (criteriaSpec(carried) !== criteriaSpec(current.acceptanceCriteria)) criteria = carried;
44087
44135
  }
44088
44136
  const linksChange = links?.changed === true;
44089
- if (current && criteria === void 0 && !linksChange && Object.values(fields).every((v) => v === void 0)) return toolResult({
44137
+ const plainSame = current !== null && plain.every((key) => sameValue(current[key], fields[key]));
44138
+ if (current && criteria === void 0 && !linksChange && fields.assigneeId === void 0 && plainSame && (plain.length > 0 || acceptanceCriteria !== void 0 || documentIds !== void 0)) return toolResult({
44090
44139
  ...outcomeOf(current),
44091
- unchanged: `${unchangedWhat(acceptanceCriteria !== void 0, documentIds !== void 0)}; nothing was written.`
44140
+ unchanged: `${unchangedWhat(acceptanceCriteria !== void 0, documentIds !== void 0, plain)}; nothing was written.`
44092
44141
  });
44093
44142
  let item;
44094
44143
  try {
@@ -44108,12 +44157,15 @@ function registerEdit(server, client) {
44108
44157
  throw error;
44109
44158
  }
44110
44159
  const assigned = fields.assigneeId !== void 0 ? { assigneeId: fields.assigneeId } : {};
44160
+ const set = setFields(item, plain);
44111
44161
  if (!links) return toolResult({
44112
44162
  ...outcomeOf(item),
44163
+ ...set,
44113
44164
  ...assigned
44114
44165
  });
44115
44166
  return toolResult({
44116
44167
  ...outcomeOf(item),
44168
+ ...set,
44117
44169
  ...assigned,
44118
44170
  linkedKnowledge: links.linked,
44119
44171
  unlinkedKnowledge: links.unlinked
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.43.0-dev.1248",
3
+ "version": "0.44.0-dev.1250",
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",