@taiga-ai/mcp-server 0.31.0 → 0.32.0-rc.672

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 +7 -7
  2. package/dist/index.js +421 -153
  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.31.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.32.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.31.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.32.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.31.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.32.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.31.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.32.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.31.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.32.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.31.0"],
52
+ "args": ["-y", "@taiga-ai/mcp-server@0.32.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.31.0"],
81
+ "args": ["-y", "@taiga-ai/mcp-server@0.32.0"],
82
82
  "env": { "TAIGA_API_KEY": "${input:taiga-api-key}" }
83
83
  }
84
84
  }
package/dist/index.js CHANGED
@@ -22305,10 +22305,6 @@ var TaigaClient = class {
22305
22305
  getIntrospection() {
22306
22306
  return this.introspection;
22307
22307
  }
22308
- /** Whether a release toggle an MCP tool depends on is on where the key's API runs (PRO-3037). */
22309
- hasFeature(feature) {
22310
- return this.introspection?.mcpFeatures?.includes(feature) ?? false;
22311
- }
22312
22308
  hasCapability(capability) {
22313
22309
  if (!this.introspection) return false;
22314
22310
  return this.introspection.capabilities.includes(capability);
@@ -22705,6 +22701,14 @@ var TaigaClient = class {
22705
22701
  async listInstallationRepositories(installationId, opts) {
22706
22702
  return this.request("GET", `/github/installations/${seg(installationId)}/repositories${query$1({ ...opts })}`);
22707
22703
  }
22704
+ /** The organization's GitLab connections (P-PRO-150); the API lists them on one page. */
22705
+ async listGitLabConnections() {
22706
+ return this.request("GET", "/gitlab/connections");
22707
+ }
22708
+ /** One page of the projects a GitLab connection's bot can push to, read live from GitLab. */
22709
+ async listGitLabProjects(connectionId, opts) {
22710
+ return this.request("GET", `/gitlab/connections/${seg(connectionId)}/projects${query$1({ ...opts })}`);
22711
+ }
22708
22712
  async linkRepository(productId, body) {
22709
22713
  return this.request("POST", `/products/${seg(productId)}/repositories`, body);
22710
22714
  }
@@ -22857,8 +22861,14 @@ function policyNamedByControl(controlId) {
22857
22861
  * the row that holds it (PRO-1499): a control one side can name must be one
22858
22862
  * the other can find, and two hand-copied literals would only agree until the
22859
22863
  * next overlay.
22864
+ *
22865
+ * A segment starts with a letter and may carry digits after it, because a
22866
+ * regulation's own name can: `NIS2-1.1` is the EU overlay's NIS2 family, which
22867
+ * an all-letters segment silently dropped from every tenant's held controls
22868
+ * (PRO-3420). The numbering still follows the last hyphen, so a segment never
22869
+ * swallows it.
22860
22870
  */
22861
- const CONTROL_ID_SOURCE = "[A-Z]{2,6}(?:-[A-Z]{2,6})*-\\d+(?:\\.\\d+)*";
22871
+ const CONTROL_ID_SOURCE = "[A-Z][A-Z0-9]{1,5}(?:-[A-Z][A-Z0-9]{1,5})*-\\d+(?:\\.\\d+)*";
22862
22872
  /** True when `text` is exactly one control id. */
22863
22873
  function isControlId(text) {
22864
22874
  return new RegExp(`^${CONTROL_ID_SOURCE}$`).test(text);
@@ -22973,14 +22983,101 @@ const EU_COUNTRIES = [
22973
22983
  name: "Sweden"
22974
22984
  }
22975
22985
  ];
22986
+ /**
22987
+ * EEA countries outside the EU. Norway only: Iceland and Liechtenstein have
22988
+ * no overlay and no customer asking for one.
22989
+ */
22990
+ const EEA_COUNTRIES = [{
22991
+ code: "NO",
22992
+ name: "Norway"
22993
+ }];
22994
+ [...EU_COUNTRIES, ...EEA_COUNTRIES];
22976
22995
  /** Countries available during closed beta. Expand as we open new markets. */
22977
22996
  const BETA_COUNTRIES = ["FI"];
22978
22997
  EU_COUNTRIES.filter((c) => BETA_COUNTRIES.includes(c.code));
22979
- Object.fromEntries(EU_COUNTRIES.map((c) => [c.code, "eu"]));
22998
+ Object.fromEntries([...EU_COUNTRIES.map((c) => [c.code, "eu"]), ...EEA_COUNTRIES.map((c) => [c.code, "eea"])]);
22980
22999
  //#endregion
22981
23000
  //#region ../../packages/types/dist/factories.js
22982
23001
  const FACTORY_DOCUMENT_TYPES = ["factory_instructions"];
22983
23002
  //#endregion
23003
+ //#region ../../packages/types/dist/forge.js
23004
+ /** Source-control hosts. `bitbucket` is a stored link provider without an adapter yet. */
23005
+ const FORGE_PROVIDERS = [
23006
+ "github",
23007
+ "gitlab",
23008
+ "bitbucket"
23009
+ ];
23010
+ /**
23011
+ * What each forge's adapter can do (PRO-3220): the abilities it declares, in
23012
+ * one place, so the API's adapters and every reader of a forge (the shared
23013
+ * lifecycle, the web) answer "can Taiga do this here" the same way. An
23014
+ * ability missing here is refused with `PROVIDER_UNSUPPORTED`, never stubbed.
23015
+ * A forge with no adapter yet declares nothing.
23016
+ */
23017
+ const FORGE_SUPPORT = {
23018
+ github: [
23019
+ "change_request.read",
23020
+ "change_request.open",
23021
+ "change_request.close",
23022
+ "change_request.mark_ready",
23023
+ "change_request.comment",
23024
+ "change_request.merge",
23025
+ "review.read",
23026
+ "review.respond",
23027
+ "repository.branches.list",
23028
+ "repository.branches.read",
23029
+ "repository.history",
23030
+ "repository.compare",
23031
+ "repository.content.read",
23032
+ "ci.commit_status",
23033
+ "events.webhooks"
23034
+ ],
23035
+ gitlab: [
23036
+ "change_request.read",
23037
+ "change_request.open",
23038
+ "change_request.close",
23039
+ "change_request.mark_ready",
23040
+ "change_request.comment",
23041
+ "change_request.merge",
23042
+ "review.read",
23043
+ "review.respond",
23044
+ "repository.branches.read",
23045
+ "repository.history",
23046
+ "repository.compare",
23047
+ "ci.commit_status"
23048
+ ],
23049
+ bitbucket: []
23050
+ };
23051
+ const FORGE_TERMS = {
23052
+ github: {
23053
+ name: "GitHub",
23054
+ changeRequest: "pull request",
23055
+ changeRequests: "pull requests",
23056
+ changeRequestShort: "PR",
23057
+ refSigil: "#",
23058
+ ciName: "GitHub Actions",
23059
+ ciSecretStore: "repository secrets"
23060
+ },
23061
+ gitlab: {
23062
+ name: "GitLab",
23063
+ changeRequest: "merge request",
23064
+ changeRequests: "merge requests",
23065
+ changeRequestShort: "MR",
23066
+ refSigil: "!",
23067
+ ciName: "GitLab CI/CD",
23068
+ ciSecretStore: "CI/CD variables"
23069
+ },
23070
+ bitbucket: {
23071
+ name: "Bitbucket",
23072
+ changeRequest: "pull request",
23073
+ changeRequests: "pull requests",
23074
+ changeRequestShort: "PR",
23075
+ refSigil: "#",
23076
+ ciName: "Bitbucket Pipelines",
23077
+ ciSecretStore: "repository variables"
23078
+ }
23079
+ };
23080
+ //#endregion
22984
23081
  //#region ../../packages/types/dist/products.js
22985
23082
  const PRODUCT_STATUSES = [
22986
23083
  "draft",
@@ -23773,6 +23870,7 @@ discriminatedUnion("kind", [
23773
23870
  kind: literal("attention"),
23774
23871
  what: string$2().min(1).max(2e3),
23775
23872
  currently_handling: string$2().min(1).max(2e3),
23873
+ hosts: array(string$2().min(1).max(253)).max(20).optional(),
23776
23874
  stepId: optionalUuid
23777
23875
  }),
23778
23876
  object({
@@ -24077,6 +24175,107 @@ function createdInitiativesOf(result) {
24077
24175
  const parsed = withCreatedInitiatives.safeParse(result);
24078
24176
  return parsed.success ? parsed.data.createdInitiatives : null;
24079
24177
  }
24178
+ const DOCUMENT_INPUTS = Object.freeze({
24179
+ user_flow: {
24180
+ required: ["specification"],
24181
+ optional: []
24182
+ },
24183
+ architecture: {
24184
+ required: ["specification"],
24185
+ optional: ["user_flow"]
24186
+ },
24187
+ technology_decisions: {
24188
+ required: ["specification", "architecture"],
24189
+ optional: []
24190
+ },
24191
+ data_flow: {
24192
+ required: ["specification", "architecture"],
24193
+ optional: []
24194
+ },
24195
+ privacy_assessment: {
24196
+ required: ["specification", "architecture"],
24197
+ optional: ["data_flow"]
24198
+ },
24199
+ threat_model: {
24200
+ required: [
24201
+ "specification",
24202
+ "architecture",
24203
+ "privacy_assessment"
24204
+ ],
24205
+ optional: ["data_flow"]
24206
+ },
24207
+ risk_register: {
24208
+ required: ["specification"],
24209
+ optional: [
24210
+ "privacy_assessment",
24211
+ "threat_model",
24212
+ "technology_decisions",
24213
+ "architecture",
24214
+ "data_flow"
24215
+ ]
24216
+ },
24217
+ service_blueprint: {
24218
+ required: [
24219
+ "specification",
24220
+ "user_flow",
24221
+ "architecture"
24222
+ ],
24223
+ optional: ["ui_direction"]
24224
+ }
24225
+ });
24226
+ //#endregion
24227
+ //#region ../../packages/types/dist/document-types-for-kind.js
24228
+ /**
24229
+ * What a thing with no users of its own does not have.
24230
+ *
24231
+ * A library, an infrastructure module and a pipeline share one fact: their
24232
+ * consumers are other products, not people. That is what decides all four
24233
+ * exclusions, and it is why the three kinds share a list rather than each
24234
+ * having their own -- three identical lists are three chances to change one.
24235
+ *
24236
+ * - `user_flow`: a journey through screens. There are no screens and there
24237
+ * is no journey; the ux-planning agent asked for one invents both.
24238
+ * - `privacy_assessment`: a GDPR Article 35 DPIA. Its sections are the legal
24239
+ * basis for processing, the data subjects affected, retention, how each
24240
+ * data-subject right is served, and an approval decision. A module has no
24241
+ * data subjects and is not a controller, so every one of those sections is
24242
+ * written from nothing. (A library that DOES touch personal data is still
24243
+ * covered: the data flow below is kept, and the threat model reads it.)
24244
+ * - `service_blueprint`: frontstage and backstage of a SERVICE, divided by a
24245
+ * line of visibility that only exists where a customer is looking.
24246
+ * - `ui_direction`: the look and the navigation. A Terraform module offered
24247
+ * a look-and-feel wizard is the clearest single symptom of PRO-1866.
24248
+ *
24249
+ * The `data_flow` is deliberately KEPT, against the ticket's shorter list.
24250
+ * Two reasons, and both are about the documents that remain rather than about
24251
+ * the data flow itself. The threat model is STRIDE over trust boundaries and
24252
+ * data stores, and the data flow is where those come from -- dropping it
24253
+ * leaves the threat model and the risk register standing but ungrounded, which
24254
+ * is a worse outcome than a document nobody wanted. And a data flow is not an
24255
+ * application concept: a module's state file, provider credentials and remote
24256
+ * backend cross trust boundaries, a pipeline moves artifacts and secrets
24257
+ * between them, and a library receives and returns data it does not own.
24258
+ *
24259
+ * The technology decisions, architecture, threat model and risk register are
24260
+ * kept for every kind. Each describes the thing itself, and a consumer of a
24261
+ * library has more need of them, not less.
24262
+ */
24263
+ const NO_USERS_OF_ITS_OWN = [
24264
+ "user_flow",
24265
+ "privacy_assessment",
24266
+ "service_blueprint",
24267
+ "ui_direction"
24268
+ ];
24269
+ Object.freeze({
24270
+ /** The kind every product was before the column existed. Nothing is excluded. */
24271
+ application: [],
24272
+ /** Code other products depend on, shipped as a published package. */
24273
+ library: NO_USERS_OF_ITS_OWN,
24274
+ /** A Terraform module, a Helm chart: consumed by other products' infrastructure. */
24275
+ infrastructure_module: NO_USERS_OF_ITS_OWN,
24276
+ /** A reusable workflow, an action, a build template. */
24277
+ pipeline: NO_USERS_OF_ITS_OWN
24278
+ });
24080
24279
  //#endregion
24081
24280
  //#region ../../packages/types/dist/chat-stream-events.js
24082
24281
  /**
@@ -24442,6 +24641,8 @@ const MAINTENANCE_IGNORE_REASONS = [
24442
24641
  function lockfileScope(path, groups) {
24443
24642
  const name = path.slice(path.lastIndexOf("/") + 1);
24444
24643
  const set = new Set(groups.map((g) => g.trim().toLowerCase()).filter((g) => g !== ""));
24644
+ if (set.has("taiga:runtime")) return "runtime";
24645
+ if (set.has("taiga:dev")) return "dev";
24445
24646
  switch (name) {
24446
24647
  case "package-lock.json":
24447
24648
  case "npm-shrinkwrap.json": {
@@ -24465,6 +24666,9 @@ function lockfileScope(path, groups) {
24465
24666
  case "packages.lock.json":
24466
24667
  if (set.has("prod")) return "runtime";
24467
24668
  return set.size === 1 && set.has("dev") ? "dev" : "unknown";
24669
+ case "pom.xml":
24670
+ if (set.has("prod") || set.has("compile") || set.has("runtime")) return "runtime";
24671
+ return set.size > 0 && [...set].every((g) => g === "test" || g === "dev") ? "dev" : "unknown";
24468
24672
  case "poetry.lock":
24469
24673
  if (set.has("taiga:prod")) return "runtime";
24470
24674
  return set.size > 0 && !set.has("optional") && !set.has("main") ? "dev" : "unknown";
@@ -24777,106 +24981,29 @@ Object.freeze({
24777
24981
  applicationOwnership: true
24778
24982
  });
24779
24983
  //#endregion
24780
- //#region ../../packages/types/dist/document-types-for-kind.js
24984
+ //#region ../../packages/types/dist/product-network.js
24781
24985
  /**
24782
- * What a thing with no users of its own does not have.
24986
+ * Where an engineer build's sandbox may connect to (PRO-2793, part of
24987
+ * PRO-1980).
24783
24988
  *
24784
- * A library, an infrastructure module and a pipeline share one fact: their
24785
- * consumers are other products, not people. That is what decides all four
24786
- * exclusions, and it is why the three kinds share a list rather than each
24787
- * having their own -- three identical lists are three chances to change one.
24989
+ * The engineer pod's credential gateway is the sandbox's only way out. By
24990
+ * default it lets through a standard list: the public package registries,
24991
+ * toolchain downloads, container registries, GitHub for reading public
24992
+ * dependencies, and the tenant's own registries. A product adds to that:
24788
24993
  *
24789
- * - `user_flow`: a journey through screens. There are no screens and there
24790
- * is no journey; the ux-planning agent asked for one invents both.
24791
- * - `privacy_assessment`: a GDPR Article 35 DPIA. Its sections are the legal
24792
- * basis for processing, the data subjects affected, retention, how each
24793
- * data-subject right is served, and an approval decision. A module has no
24794
- * data subjects and is not a controller, so every one of those sections is
24795
- * written from nothing. (A library that DOES touch personal data is still
24796
- * covered: the data flow below is kept, and the threat model reads it.)
24797
- * - `service_blueprint`: frontstage and backstage of a SERVICE, divided by a
24798
- * line of visibility that only exists where a customer is looking.
24799
- * - `ui_direction`: the look and the navigation. A Terraform module offered
24800
- * a look-and-feel wizard is the clearest single symptom of PRO-1866.
24801
- *
24802
- * The `data_flow` is deliberately KEPT, against the ticket's shorter list.
24803
- * Two reasons, and both are about the documents that remain rather than about
24804
- * the data flow itself. The threat model is STRIDE over trust boundaries and
24805
- * data stores, and the data flow is where those come from -- dropping it
24806
- * leaves the threat model and the risk register standing but ungrounded, which
24807
- * is a worse outcome than a document nobody wanted. And a data flow is not an
24808
- * application concept: a module's state file, provider credentials and remote
24809
- * backend cross trust boundaries, a pipeline moves artifacts and secrets
24810
- * between them, and a library receives and returns data it does not own.
24994
+ * - `allowlist` (the default, also what `null` means): the standard list plus
24995
+ * the product's own `networkHosts`.
24996
+ * - `unrestricted`: any public host. For a product whose builds need hosts
24997
+ * nobody can list in advance; the gateway still refuses private and
24998
+ * metadata addresses, and still never hands the sandbox a credential.
24811
24999
  *
24812
- * The technology decisions, architecture, threat model and risk register are
24813
- * kept for every kind. Each describes the thing itself, and a consumer of a
24814
- * library has more need of them, not less.
25000
+ * A host is one exact name (`api.example.com`). There are no wildcards: a
25001
+ * wildcard over a multi-label public suffix (`*.co.uk`) or a provider's
25002
+ * namespace would admit every tenant under it, and telling those apart needs
25003
+ * the public suffix list. A build that needs many names under one domain is
25004
+ * what `unrestricted` is for.
24815
25005
  */
24816
- const NO_USERS_OF_ITS_OWN = [
24817
- "user_flow",
24818
- "privacy_assessment",
24819
- "service_blueprint",
24820
- "ui_direction"
24821
- ];
24822
- Object.freeze({
24823
- /** The kind every product was before the column existed. Nothing is excluded. */
24824
- application: [],
24825
- /** Code other products depend on, shipped as a published package. */
24826
- library: NO_USERS_OF_ITS_OWN,
24827
- /** A Terraform module, a Helm chart: consumed by other products' infrastructure. */
24828
- infrastructure_module: NO_USERS_OF_ITS_OWN,
24829
- /** A reusable workflow, an action, a build template. */
24830
- pipeline: NO_USERS_OF_ITS_OWN
24831
- });
24832
- const DOCUMENT_INPUTS = Object.freeze({
24833
- user_flow: {
24834
- required: ["specification"],
24835
- optional: []
24836
- },
24837
- architecture: {
24838
- required: ["specification"],
24839
- optional: ["user_flow"]
24840
- },
24841
- technology_decisions: {
24842
- required: ["specification", "architecture"],
24843
- optional: []
24844
- },
24845
- data_flow: {
24846
- required: ["specification", "architecture"],
24847
- optional: []
24848
- },
24849
- privacy_assessment: {
24850
- required: ["specification", "architecture"],
24851
- optional: ["data_flow"]
24852
- },
24853
- threat_model: {
24854
- required: [
24855
- "specification",
24856
- "architecture",
24857
- "privacy_assessment"
24858
- ],
24859
- optional: ["data_flow"]
24860
- },
24861
- risk_register: {
24862
- required: ["specification"],
24863
- optional: [
24864
- "privacy_assessment",
24865
- "threat_model",
24866
- "technology_decisions",
24867
- "architecture",
24868
- "data_flow"
24869
- ]
24870
- },
24871
- service_blueprint: {
24872
- required: [
24873
- "specification",
24874
- "user_flow",
24875
- "architecture"
24876
- ],
24877
- optional: ["ui_direction"]
24878
- }
24879
- });
25006
+ const PRODUCT_NETWORK_ACCESS = ["allowlist", "unrestricted"];
24880
25007
  //#endregion
24881
25008
  //#region src/compat.ts
24882
25009
  /**
@@ -25168,8 +25295,7 @@ const ORIGIN_MEANING = {
25168
25295
  * same settings key the API reads, so the two cannot disagree.
25169
25296
  */
25170
25297
  function isImportedProduct(product) {
25171
- const settings = product?.settings;
25172
- return typeof settings === "object" && settings !== null && settings.projectType === "brownfield";
25298
+ return product?.settings?.projectType === "brownfield";
25173
25299
  }
25174
25300
  /**
25175
25301
  * The document types no derivation ever writes: a person records or writes
@@ -25191,9 +25317,7 @@ function defaultOriginFor(product, type) {
25191
25317
  * read as "not known", never as a promise.
25192
25318
  */
25193
25319
  function importStatusOf(product) {
25194
- const settings = product?.settings;
25195
- if (typeof settings !== "object" || settings === null) return null;
25196
- const status = settings.importStatus;
25320
+ const status = product?.settings?.importStatus;
25197
25321
  return typeof status === "string" ? status : null;
25198
25322
  }
25199
25323
  /** Why a side of the timeline is empty, for a list or a miss that shows one. */
@@ -25254,8 +25378,8 @@ const BY_ARGUMENT = {
25254
25378
  planId: "taiga_get_plan gives the initiative's active plan and its ID.",
25255
25379
  linkId: "taiga_list_product_repositories lists the product's repository links; a linkable repository id is not a link ID.",
25256
25380
  replacesLinkId: "taiga_list_product_repositories lists the product's repository links.",
25257
- linkableRepositoryId: "taiga_list_linkable_repositories lists the repositories the GitHub connection reaches, with their ids.",
25258
- installationId: "taiga_list_linkable_repositories lists the connected GitHub accounts.",
25381
+ linkableRepositoryId: "taiga_list_linkable_repositories lists the repositories the GitHub and GitLab connections reach, with their ids.",
25382
+ installationId: "taiga_list_linkable_repositories lists the connected GitHub accounts and GitLab connections.",
25259
25383
  jobId: "A job ID is what the tool that started the job returned (taiga_request_initiatives, taiga_start_import).",
25260
25384
  factoryId: "taiga_list_factories lists the factories the key can see.",
25261
25385
  findingId: "taiga_list_findings lists a product's findings.",
@@ -25283,8 +25407,8 @@ const MISSING_THING = {
25283
25407
  planId: /\bplan\b/i,
25284
25408
  linkId: /repository link|\blink\b|repository/i,
25285
25409
  replacesLinkId: /repository link|\blink\b/i,
25286
- linkableRepositoryId: /github repository/i,
25287
- installationId: /installation|account/i,
25410
+ linkableRepositoryId: /github repository|gitlab project/i,
25411
+ installationId: /installation|account|gitlab connection/i,
25288
25412
  jobId: /\bjob\b/i,
25289
25413
  factoryId: /factory|team/i,
25290
25414
  findingId: /finding/i,
@@ -25504,6 +25628,10 @@ async function runTool(handler) {
25504
25628
  if (error instanceof TaigaApiError) {
25505
25629
  const code = error.code ?? CODE_BY_STATUS[error.status] ?? "API_ERROR";
25506
25630
  const worded = inProductWording(error.apiMessage ?? `Taiga API answered ${error.status}.`);
25631
+ if (code === "PROVIDER_UNSUPPORTED") return toolError(code, `${worded} This forge does not do that in Taiga yet; retrying will not change it.`, {
25632
+ ...error.details,
25633
+ retryable: false
25634
+ });
25507
25635
  return toolError(code, error.status === 404 ? withNotFoundHint(worded) : [
25508
25636
  502,
25509
25637
  503,
@@ -25732,6 +25860,9 @@ const PACKAGE_ROW_FIELDS = [
25732
25860
  "firstParty",
25733
25861
  "otherPlatformsOnly",
25734
25862
  "licenseSource",
25863
+ "licenseGap",
25864
+ "scopeReason",
25865
+ "parentReason",
25735
25866
  "sourcePath",
25736
25867
  "productRepositoryId",
25737
25868
  "detectedAt"
@@ -26669,7 +26800,7 @@ function productView(product) {
26669
26800
  return {
26670
26801
  ...row,
26671
26802
  projectType: isImportedProduct(product) ? "brownfield" : "greenfield",
26672
- ...typeof settings["importStatus"] === "string" ? { importStatus: settings["importStatus"] } : {},
26803
+ ...typeof settings.importStatus === "string" ? { importStatus: settings.importStatus } : {},
26673
26804
  linePaused: stoppedAt ? { since: stoppedAt } : false,
26674
26805
  unsetMeans: UNSET_MEANS
26675
26806
  };
@@ -27893,19 +28024,17 @@ function registerBuildTools(server, client) {
27893
28024
  });
27894
28025
  }));
27895
28026
  if (!client.hasCapability("products:write")) return;
27896
- const steering = client.hasFeature("steerRuns");
27897
- if (client.hasFeature("requestChanges")) server.registerTool("taiga_request_changes", {
27898
- title: steering ? "Request changes on a run" : "Request changes on a pull request",
27899
- description: steering ? "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." : "Tell the coding agent what should change on a run's open pull request, as a person's review would: it splits the request into separate asks, makes the changes on the same pull request, and answers each one there (done, answered, or not done and why). Only for a run whose pull request is waiting for review (the initiative is in review with its pull request open), a draft included, such as one Taiga handed back with CI failing or its tests red; refused otherwise, and where the organization does not have it yet. taiga_wait follows the run until it is back in review.",
28027
+ server.registerTool("taiga_request_changes", {
28028
+ 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.",
27900
28030
  inputSchema: object({
27901
28031
  runId,
27902
28032
  notes: string$2().trim().min(1).max(CHANGE_REQUEST_MAX_CHARS).describe("What should change, in markdown: a list of changes, questions, or both"),
27903
- ...steering ? { reviewPlan: boolean().optional().describe("Hold the run until a person has reviewed the revised plan (default false)") } : {}
28033
+ reviewPlan: boolean().optional().describe("Hold the run until a person has reviewed the revised plan (default false)")
27904
28034
  }),
27905
28035
  annotations: OPERATE
27906
28036
  }, (params) => runTool(async () => {
27907
- const reviewPlan = "reviewPlan" in params ? params.reviewPlan : void 0;
27908
- const result = await client.requestBuildRunChanges(params.runId, params.notes, { reviewPlan });
28037
+ const result = await client.requestBuildRunChanges(params.runId, params.notes, { reviewPlan: params.reviewPlan });
27909
28038
  const row = pickFields([result.data], RUN_OUTCOME_FIELDS)[0];
27910
28039
  return toolResult({
27911
28040
  ...readableRow(row),
@@ -28793,7 +28922,7 @@ function registerResume(server, client) {
28793
28922
  function registerPlanReview(server, client) {
28794
28923
  server.registerTool("taiga_review_plan", {
28795
28924
  title: "Approve or reject a plan",
28796
- description: "Give an initiative's plan its verdict. approve starts the run that builds it; reject sends it back with a comment and the planner revises it from the comment, keeping what the comment does not object to. Read the plan first (taiga_get_plan) and pass its ID; refused if the plan was replaced since, a new one is being written, or a run is already going." + (client.hasFeature("steerRuns") ? " A plan a request for changes revised while its run waits for this review (taiga_request_changes with reviewPlan): approve continues that run on its branch, and reject comments to revise it again." : ""),
28925
+ description: "Give an initiative's plan its verdict. approve starts the run that builds it; reject sends it back with a comment and the planner revises it from the comment, keeping what the comment does not object to. Read the plan first (taiga_get_plan) and pass its ID; refused if the plan was replaced since, a new one is being written, or a run is already going. A plan a request for changes revised while its run waits for this review (taiga_request_changes with reviewPlan): approve continues that run on its branch, and reject comments to revise it again.",
28797
28926
  inputSchema: object({
28798
28927
  planId,
28799
28928
  verdict: _enum(["approve", "reject"]).describe("approve builds the plan; reject sends it back"),
@@ -45015,6 +45144,129 @@ const GITHUB_REPOSITORY_FIELDS = [
45015
45144
  * here, productRepositoryId on findings and packages, and linkableRepositoryId (a different thing) beside both.
45016
45145
  */
45017
45146
  const linkId = idInput("repository link", "taiga_list_product_repositories gives it (its id); a linkable repository id is not one");
45147
+ /**
45148
+ * A GitLab project's linkable id (PRO-3219): opaque to the agent, read only by taiga_link_repository. A GitHub
45149
+ * repository's stays the row id it always was, so saved ids keep working; a GitLab project has no row, so its id
45150
+ * names the connection that reaches it and GitLab's own project id.
45151
+ */
45152
+ const GITLAB_ID = /^gitlab:([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}):([1-9]\d{0,15})$/i;
45153
+ function gitlabLinkableId(connectionId, projectId) {
45154
+ return `gitlab:${connectionId}:${projectId}`;
45155
+ }
45156
+ /** What a linkable id links: a GitHub repository row, a GitLab project through a connection, or nothing. */
45157
+ function decodeLinkableId(id) {
45158
+ const gitlab = GITLAB_ID.exec(id);
45159
+ if (gitlab) {
45160
+ const projectId = Number(gitlab[2]);
45161
+ return Number.isSafeInteger(projectId) ? {
45162
+ gitlabConnectionId: gitlab[1],
45163
+ gitlabProjectId: projectId
45164
+ } : null;
45165
+ }
45166
+ return /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(id) ? { githubRepositoryId: id } : null;
45167
+ }
45168
+ /**
45169
+ * How each forge in an answer names things, and what Taiga can do on it (PRO-3219): once per forge, keyed by the
45170
+ * `provider` its rows carry, so an agent says "merge request !5" on GitLab and knows before trying that a forge
45171
+ * cannot list branches yet. `can` is Taiga's ability names (packages/types forge.ts).
45172
+ */
45173
+ function forgesOf(rows) {
45174
+ const providers = [...new Set(rows.map((row) => row.provider ?? "github"))].filter((provider) => FORGE_PROVIDERS.includes(provider));
45175
+ if (providers.length === 0) return {};
45176
+ return { forges: Object.fromEntries(providers.map((provider) => {
45177
+ const terms = FORGE_TERMS[provider];
45178
+ return [provider, {
45179
+ name: terms.name,
45180
+ changeRequest: terms.changeRequest,
45181
+ refSigil: terms.refSigil,
45182
+ can: FORGE_SUPPORT[provider]
45183
+ }];
45184
+ })) };
45185
+ }
45186
+ function githubSource(client, installation) {
45187
+ const id = String(installation.id);
45188
+ return {
45189
+ id,
45190
+ row: githubAccount(installation),
45191
+ ownPages: false,
45192
+ async read(q, limit, cursor) {
45193
+ const result = await client.listInstallationRepositories(id, {
45194
+ q,
45195
+ limit,
45196
+ cursor
45197
+ });
45198
+ return {
45199
+ rows: pickFields(result.data, GITHUB_REPOSITORY_FIELDS),
45200
+ nextCursor: result.nextCursor
45201
+ };
45202
+ }
45203
+ };
45204
+ }
45205
+ function gitlabSource(client, connection) {
45206
+ return {
45207
+ id: connection.id,
45208
+ row: gitlabAccount(connection),
45209
+ ownPages: true,
45210
+ async read(q, _limit, cursor) {
45211
+ const result = await client.listGitLabProjects(connection.id, {
45212
+ search: q?.slice(0, 100),
45213
+ page: cursor
45214
+ });
45215
+ return {
45216
+ rows: result.data.map((project) => ({
45217
+ id: gitlabLinkableId(connection.id, project.id),
45218
+ provider: "gitlab",
45219
+ fullName: project.pathWithNamespace,
45220
+ defaultBranch: project.defaultBranch,
45221
+ webUrl: project.webUrl
45222
+ })),
45223
+ nextCursor: result.nextCursor
45224
+ };
45225
+ }
45226
+ };
45227
+ }
45228
+ /** The organization's GitLab connections, or none where GitLab is not switched on for it (404) or not allowed. */
45229
+ async function gitlabConnections(client) {
45230
+ try {
45231
+ return (await client.listGitLabConnections()).data;
45232
+ } catch (error) {
45233
+ if (isMissOrRefusal(error)) return [];
45234
+ throw error;
45235
+ }
45236
+ }
45237
+ /** A GitLab connection as an account row: which host, as whom. Never its token, which the API does not send. */
45238
+ function gitlabAccount(connection) {
45239
+ return {
45240
+ id: connection.id,
45241
+ provider: "gitlab",
45242
+ displayName: connection.displayName,
45243
+ baseUrl: connection.baseUrl,
45244
+ botName: connection.botName,
45245
+ status: connection.status
45246
+ };
45247
+ }
45248
+ /** The names a GitLab connection answers to in `account`: its display name, its host and its base URL. */
45249
+ function gitlabNames(connection) {
45250
+ let host = "";
45251
+ try {
45252
+ host = new URL(connection.baseUrl).host.toLowerCase();
45253
+ } catch {}
45254
+ return [
45255
+ connection.displayName.toLowerCase(),
45256
+ host,
45257
+ connection.baseUrl.toLowerCase()
45258
+ ].filter(Boolean);
45259
+ }
45260
+ /** A GitHub installation as an account row, named by its provider as a GitLab connection's is. */
45261
+ function githubAccount(installation) {
45262
+ return {
45263
+ ...pickFields([installation], INSTALLATION_FIELDS)[0],
45264
+ provider: "github"
45265
+ };
45266
+ }
45267
+ function accountsOf(sources) {
45268
+ return sources.map((source) => source.row);
45269
+ }
45018
45270
  /** Round-robin over lists: the first of each, then the second of each, and so on. */
45019
45271
  function interleave(lists) {
45020
45272
  const out = [];
@@ -45068,9 +45320,11 @@ function registerRepositoryTools(server, client) {
45068
45320
  annotations: READ_ONLY
45069
45321
  }, (params) => runTool(async () => {
45070
45322
  const result = await client.listProductRepositories(params.productId);
45323
+ const data = pickFields(result.data, LINK_FIELDS);
45071
45324
  return toolResult({
45072
- data: pickFields(result.data, LINK_FIELDS),
45073
- truncated: result.nextCursor !== null
45325
+ data,
45326
+ truncated: result.nextCursor !== null,
45327
+ ...forgesOf(data)
45074
45328
  });
45075
45329
  }));
45076
45330
  server.registerTool("taiga_list_repository_branches", {
@@ -45091,65 +45345,73 @@ function registerRepositoryTools(server, client) {
45091
45345
  }
45092
45346
  if (client.hasCapability("vcs:read")) server.registerTool("taiga_list_linkable_repositories", {
45093
45347
  title: "Find a repository to link",
45094
- description: "List the repositories the organization's GitHub connection can reach, to link one to a product. query searches by name; linked: true means a product already links it. No connection means GitHub is not connected yet: that is done once, in the web.",
45348
+ description: "List the repositories the organization's GitHub and GitLab connections can reach, to link one to a product. query searches by name; linked: true means a product already links it (GitHub). A GitLab connection answers pages of its own size. No connection means neither forge is connected yet: that is done once, in the web.",
45095
45349
  inputSchema: object({
45096
45350
  query: string$2().trim().min(1).max(256).optional().describe("Part of the repository name"),
45097
- account: string$2().trim().min(1).max(140).optional().describe("The GitHub account login (the owner in owner/repo), case-insensitive"),
45098
- installationId: idInput("GitHub account", "this tool lists them").optional(),
45351
+ account: string$2().trim().min(1).max(140).optional().describe("A GitHub account login (the owner in owner/repo), or a GitLab connection by its name or host; any case"),
45352
+ installationId: idInput("GitHub account or GitLab connection", "this tool lists them").optional(),
45099
45353
  ...pagination
45100
45354
  }),
45101
45355
  annotations: READ_ONLY
45102
45356
  }, (params) => runTool(async () => {
45103
- const installations = (await client.listGithubInstallations()).data;
45104
- const accounts = pickFields(installations, INSTALLATION_FIELDS);
45105
- if (installations.length === 0) return toolError("NOT_CONNECTED", "GitHub is not connected for this organization. It is connected once, in the web; then link.");
45357
+ const [installations, gitlab] = await Promise.all([client.listGithubInstallations().then((r) => r.data), gitlabConnections(client)]);
45358
+ const accounts = [...installations.map(githubAccount), ...gitlab.map(gitlabAccount)];
45359
+ if (installations.length === 0 && gitlab.length === 0) return toolError("NOT_CONNECTED", "Neither GitHub nor GitLab is connected for this organization. A forge is connected once, in the web; then link.");
45106
45360
  const login = params.account?.split("/")[0].toLowerCase();
45107
- const chosen = installations.filter((i) => (!params.installationId || i.id === params.installationId) && (!login || String(i.accountLogin ?? "").toLowerCase() === login));
45108
- if (chosen.length === 0) return toolError("NOT_FOUND", "No such GitHub connection; these are the connected accounts.", { accounts });
45109
- if (params.cursor !== void 0 && params.query !== void 0) return toolError("VALIDATION_ERROR", SEARCH_WITH_CURSOR);
45361
+ const chosen = [...installations.filter((i) => (!params.installationId || i.id === params.installationId) && (!login || String(i.accountLogin ?? "").toLowerCase() === login)).map((i) => githubSource(client, i)), ...gitlab.filter((c) => (!params.installationId || c.id === params.installationId) && (!params.account || gitlabNames(c).includes(params.account.toLowerCase())) && (c.status !== "auth_failed" || Boolean(params.installationId || params.account))).map((c) => gitlabSource(client, c))];
45362
+ if (chosen.length === 0) return toolError("NOT_FOUND", "No such connection; these are the connected accounts.", { accounts });
45363
+ const pagedSearch = chosen.length === 1 && chosen[0].ownPages;
45364
+ if (params.cursor !== void 0 && params.query !== void 0 && !pagedSearch) return toolError("VALIDATION_ERROR", SEARCH_WITH_CURSOR);
45110
45365
  if (chosen.length > 1 && params.cursor !== void 0) return toolError("VALIDATION_ERROR", "A cursor pages one account: name it (account or installationId).", { accounts });
45111
45366
  const max = params.limit ?? 25;
45112
- const rows = (data) => pickFields(data, GITHUB_REPOSITORY_FIELDS);
45367
+ const named = Boolean(params.account || params.installationId);
45368
+ const read = (source, cursor) => source.read(params.query, max, cursor);
45113
45369
  if (chosen.length === 1) {
45114
- const result = await client.listInstallationRepositories(String(chosen[0].id), {
45115
- q: params.query,
45116
- limit: max,
45117
- cursor: params.cursor
45118
- });
45119
- const found = rows(result.data);
45370
+ const result = await read(chosen[0], params.cursor);
45371
+ const rows = chosen[0].ownPages ? result.rows : result.rows.slice(0, max);
45120
45372
  return toolResult({
45121
- accounts: params.account || params.installationId ? pickFields(chosen, INSTALLATION_FIELDS) : accounts,
45122
- repositories: page(found.slice(0, max), result.nextCursor),
45123
- ...found.length > max ? { more: "More matched than the limit; narrow the query or raise the limit." } : {}
45373
+ accounts: named ? accountsOf(chosen) : accounts,
45374
+ repositories: page(rows, result.nextCursor),
45375
+ ...forgesOf(rows),
45376
+ ...result.rows.length > rows.length ? { more: "More matched than the limit; narrow the query or raise the limit." } : {}
45124
45377
  });
45125
45378
  }
45126
- const pages = await Promise.all(chosen.map((i) => client.listInstallationRepositories(String(i.id), {
45127
- q: params.query,
45128
- limit: max
45129
- })));
45130
- const found = interleave(pages.map((p) => rows(p.data)));
45379
+ const settled = await Promise.allSettled(chosen.map((source) => read(source)));
45380
+ const pages = settled.flatMap((r) => r.status === "fulfilled" ? [r.value] : []);
45381
+ const unreadable = settled.flatMap((r, i) => r.status === "rejected" && (r.reason instanceof TaigaApiError || isNetworkFailure(r.reason)) ? [{
45382
+ id: chosen[i].id,
45383
+ error: r.reason instanceof TaigaApiError ? r.reason.apiMessage ?? null : null
45384
+ }] : []);
45385
+ const thrown = settled.find((r) => r.status === "rejected" && !(r.reason instanceof TaigaApiError || isNetworkFailure(r.reason)));
45386
+ if (thrown) throw thrown.reason;
45387
+ if (pages.length === 0) throw settled[0].reason;
45388
+ const found = interleave(pages.map((p) => p.rows));
45131
45389
  const cut = found.length > max || pages.some((p) => p.nextCursor);
45132
45390
  return toolResult({
45133
- accounts,
45391
+ accounts: named ? accountsOf(chosen) : accounts,
45134
45392
  repositories: page(found.slice(0, max), null),
45135
- ...cut ? { more: "More than the limit across accounts: name an account, or narrow the query." } : {}
45393
+ ...forgesOf(found.slice(0, max)),
45394
+ ...cut ? { more: "More than the limit across accounts: name an account, or narrow the query." } : {},
45395
+ ...unreadable.length > 0 ? { unreadable } : {}
45136
45396
  });
45137
45397
  }));
45138
45398
  if (!client.hasCapability("vcs:manage")) return;
45139
45399
  server.registerTool("taiga_link_repository", {
45140
45400
  title: "Link a repository to a product",
45141
- description: "Link a GitHub repository to a product (taiga_list_linkable_repositories gives its id). replacesLinkId swaps out a linked one; where a product may link only one repository, a second is refused until you pass it. Once linked, the agent plans against its code, opens pull requests in it, and sweeps scan it.",
45401
+ description: "Link a GitHub repository or a GitLab project to a product (taiga_list_linkable_repositories gives its id). replacesLinkId swaps out a linked one; where a product may link only one repository, a second is refused until you pass it. Once linked, the agent plans against its code, opens pull requests in it, and sweeps scan it.",
45142
45402
  inputSchema: object({
45143
45403
  productId,
45144
- linkableRepositoryId: idInput("linkable repository", "taiga_list_linkable_repositories gives it (a row's id; not GitHub's numeric id, not a link ID)"),
45404
+ linkableRepositoryId: string$2().trim().max(80).describe("The linkable repository's ID: taiga_list_linkable_repositories gives it (a row's id; not GitHub's or GitLab's numeric id, not a link ID)"),
45145
45405
  replacesLinkId: linkId.optional().describe("The link this one replaces")
45146
45406
  }),
45147
45407
  annotations: OPERATE
45148
45408
  }, (params) => runTool(async () => {
45409
+ const target = decodeLinkableId(params.linkableRepositoryId);
45410
+ if (!target) return toolError("VALIDATION_ERROR", "That is not a linkable repository ID: taiga_list_linkable_repositories gives them (each row's id).");
45149
45411
  let linked;
45150
45412
  try {
45151
45413
  linked = await client.linkRepository(params.productId, {
45152
- githubRepositoryId: params.linkableRepositoryId,
45414
+ ...target,
45153
45415
  ...params.replacesLinkId ? { replacesRepositoryId: params.replacesLinkId } : {}
45154
45416
  });
45155
45417
  } catch (error) {
@@ -45157,8 +45419,10 @@ function registerRepositoryTools(server, client) {
45157
45419
  if (holder) return holder;
45158
45420
  throw error;
45159
45421
  }
45422
+ const row = pickFields([linked.data], LINK_FIELDS)[0];
45160
45423
  return toolResult({
45161
- ...pickFields([linked.data], LINK_FIELDS)[0],
45424
+ ...row,
45425
+ ...forgesOf([row]),
45162
45426
  ...await readinessAfter(client, params.productId)
45163
45427
  });
45164
45428
  }));
@@ -45336,6 +45600,8 @@ const PRODUCT_FIELDS = [
45336
45600
  "ownsDeployment",
45337
45601
  "deploymentNotes",
45338
45602
  "emitDesignStandards",
45603
+ "networkAccess",
45604
+ "networkHosts",
45339
45605
  "settings"
45340
45606
  ];
45341
45607
  const FACTORY_FIELDS = [
@@ -45540,14 +45806,16 @@ function registerSetupTools(server, client) {
45540
45806
  }));
45541
45807
  server.registerTool("taiga_update_product", {
45542
45808
  title: "Change a product's settings",
45543
- description: "Change a product's name, or what Taiga builds for it (application, infrastructure, pipelines). A new name changes its slug. Later plans follow the change; planned work is not redone.",
45809
+ description: "Change a product's name, what Taiga builds for it (application, infrastructure, pipelines), or where its builds may connect (networkAccess: allowlist, Taiga's standard list plus the product's networkHosts, or unrestricted, any public host; networkHosts replaces the list, each one exact DNS name, no wildcard or domain anyone can host on, 100 at most; changes apply from the next build). A new name changes its slug. Later plans follow the change; planned work is not redone.",
45544
45810
  inputSchema: object({
45545
45811
  productId,
45546
45812
  name: string$2().trim().min(1).max(255).optional().describe("A new name"),
45547
45813
  allowDuplicateName: allowDuplicateRename,
45548
45814
  ...buildScope,
45549
45815
  deploymentNotes: deploymentNotes.nullable().optional(),
45550
- emitDesignStandards: boolean().nullable().optional().describe("Inherit the organization's design standards; null follows the default")
45816
+ emitDesignStandards: boolean().nullable().optional().describe("Inherit the organization's design standards; null follows the default"),
45817
+ networkAccess: _enum(PRODUCT_NETWORK_ACCESS).nullable().optional().describe("Where a build's sandbox may connect: allowlist (the default; null returns to it) or unrestricted"),
45818
+ networkHosts: array(string$2().trim().toLowerCase().min(1).max(253)).max(100).optional().describe("The product's own hosts beyond the standard list, replacing the current ones: exact DNS names such as api.example.com")
45551
45819
  }),
45552
45820
  annotations: OPERATE_SETTING
45553
45821
  }, (params) => runTool(async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.31.0",
3
+ "version": "0.32.0-rc.672",
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",