@taiga-ai/mcp-server 0.28.0-rc.620 → 0.29.0-dev.631

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
@@ -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.28.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.29.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.28.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.29.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.28.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.29.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.28.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.29.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.28.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.29.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.28.0"],
52
+ "args": ["-y", "@taiga-ai/mcp-server@0.29.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.28.0"],
81
+ "args": ["-y", "@taiga-ai/mcp-server@0.29.0"],
82
82
  "env": { "TAIGA_API_KEY": "${input:taiga-api-key}" }
83
83
  }
84
84
  }
package/dist/index.js CHANGED
@@ -22512,6 +22512,23 @@ var TaigaClient = class {
22512
22512
  async getLicenseSummary(productId) {
22513
22513
  return this.request("GET", `/products/${seg(productId)}/maintenance/licenses`);
22514
22514
  }
22515
+ /** The organization's approved list and every licence in use across its products (PRO-3311). */
22516
+ async getOrganizationLicenses() {
22517
+ return this.request("GET", "/tenants/current/licenses");
22518
+ }
22519
+ /** Where one licence is used across the organization (PRO-3311). */
22520
+ async getOrganizationLicense(license) {
22521
+ return this.request("GET", `/tenants/current/licenses/detail?license=${encodeURIComponent(license)}`);
22522
+ }
22523
+ /** What approving or removing one licence would do to the findings, without doing it (PRO-3312). */
22524
+ async previewLicenseChange(change) {
22525
+ const query = "approve" in change ? `approve=${encodeURIComponent(change.approve)}` : `remove=${encodeURIComponent(change.remove)}`;
22526
+ return this.request("GET", `/tenants/current/license-allowlist/effect?${query}`);
22527
+ }
22528
+ /** Approve or remove licences on the approved list, effective at once (PRO-3312). */
22529
+ async changeLicenseAllowlist(change) {
22530
+ return this.request("PATCH", "/tenants/current/license-allowlist", change);
22531
+ }
22515
22532
  /** A repository's CycloneDX 1.6 SBOM (PRO-2894), the document itself. */
22516
22533
  async getSbom(productId, repositoryId) {
22517
22534
  return this.request("GET", `/products/${seg(productId)}/maintenance/repositories/${seg(repositoryId)}/sbom`);
@@ -24841,7 +24858,7 @@ const DOCUMENT_INPUTS = Object.freeze({
24841
24858
  * reads as deleted) and fields they explain would simply be missing. So it
24842
24859
  * refuses to start, and says what to do.
24843
24860
  */
24844
- function apiLevelProblem(introspection, apiUrl, required = 4, version = SERVER_VERSION) {
24861
+ function apiLevelProblem(introspection, apiUrl, required = 5, version = SERVER_VERSION) {
24845
24862
  const offered = introspection.mcpApiLevel ?? 0;
24846
24863
  if (offered >= required) return null;
24847
24864
  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.`;
@@ -24925,6 +24942,8 @@ const TOOLSET_OF = {
24925
24942
  taiga_get_monitoring: "observe",
24926
24943
  taiga_get_delivery_metrics: "observe",
24927
24944
  taiga_list_packages: "observe",
24945
+ taiga_list_licenses: "observe",
24946
+ taiga_change_license: "setup",
24928
24947
  taiga_get_sbom: "observe",
24929
24948
  taiga_get_notices: "observe",
24930
24949
  taiga_get_factory_document: "documents",
@@ -25972,6 +25991,23 @@ async function sweepOverview(client, productId) {
25972
25991
  };
25973
25992
  }
25974
25993
  function registerMaintenanceTools(server, client) {
25994
+ if (client.hasCapability("tenant:settings")) server.registerTool("taiga_change_license", {
25995
+ title: "Approve or remove a license",
25996
+ description: "Approve a license on the organization's approved list, or remove one. Takes effect at once: license findings it now raises open on every product, those it now approves resolve, and the change is a new version of the policy. preview: true says what it would do without doing it.",
25997
+ inputSchema: object({
25998
+ license: string$2().trim().min(1).max(100).describe("An SPDX license id, such as MIT or LGPL-3.0-or-later"),
25999
+ action: _enum(["approve", "remove"]),
26000
+ preview: boolean().optional().describe("Say what the change would do, and change nothing")
26001
+ }),
26002
+ annotations: OPERATE_SETTING
26003
+ }, (params) => runTool(async () => {
26004
+ const change = params.action === "approve" ? { approve: params.license } : { remove: params.license };
26005
+ if (params.preview) return toolResult({
26006
+ preview: true,
26007
+ effect: (await client.previewLicenseChange(change)).data
26008
+ });
26009
+ return toolResult((await client.changeLicenseAllowlist(params.action === "approve" ? { approve: [params.license] } : { remove: [params.license] })).data);
26010
+ }));
25975
26011
  if (!client.hasCapability("products:read")) return;
25976
26012
  server.registerTool("taiga_list_findings", {
25977
26013
  title: "List maintenance findings",
@@ -26039,6 +26075,12 @@ function registerMaintenanceTools(server, client) {
26039
26075
  ...typeof result.totalCount === "number" ? { totalCount: result.totalCount } : {}
26040
26076
  });
26041
26077
  }));
26078
+ server.registerTool("taiga_list_licenses", {
26079
+ title: "List the organization's licenses",
26080
+ description: "List the organization's approved license list and every license in use across its products, approved or not, with packages, products and repositories. With license, where that one is used: products, repositories and what brings its packages in. NOT_FOUND where the licenses feature is off.",
26081
+ inputSchema: object({ license: string$2().trim().min(1).max(200).optional().describe("An SPDX license id: where it is used, instead of the list") }),
26082
+ annotations: READ_ONLY
26083
+ }, (params) => runTool(async () => toolResult(params.license ? (await client.getOrganizationLicense(params.license)).data : (await client.getOrganizationLicenses()).data)));
26042
26084
  server.registerTool("taiga_get_sbom", {
26043
26085
  title: "Download a repository SBOM",
26044
26086
  description: "Download one repository's software bill of materials (CycloneDX 1.6). Large; taiga_list_packages summarizes. NOT_FOUND where the licenses feature is off, or before a sweep has read the repository.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.28.0-rc.620",
3
+ "version": "0.29.0-dev.631",
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",