@taiga-ai/mcp-server 0.37.0-dev.1122 → 0.37.0-dev.1123

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 (2) hide show
  1. package/dist/index.js +65 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -23934,6 +23934,16 @@ var TaigaClient = class {
23934
23934
  return this.request("GET", `/tenants/current/license-allowlist/effect?${query}`);
23935
23935
  }
23936
23936
  /** Approve or remove licences on the approved list, effective at once (PRO-3312). */
23937
+ /** The organization's own Claude (PRO-4579), without its key, and what a Bedrock role must trust. */
23938
+ async getModelConnection() {
23939
+ return this.request("GET", "/model-connection");
23940
+ }
23941
+ async setModelConnection(input) {
23942
+ return this.request("PUT", "/model-connection", input);
23943
+ }
23944
+ async removeModelConnection() {
23945
+ return this.request("DELETE", "/model-connection");
23946
+ }
23937
23947
  async changeLicenseAllowlist(change) {
23938
23948
  return this.request("PATCH", "/tenants/current/license-allowlist", change);
23939
23949
  }
@@ -30113,6 +30123,9 @@ const TOOLSET_OF = {
30113
30123
  taiga_start_sweep: "observe",
30114
30124
  taiga_list_licenses: "observe",
30115
30125
  taiga_change_license: "setup",
30126
+ taiga_get_model_connection: "setup",
30127
+ taiga_set_model_connection: "setup",
30128
+ taiga_remove_model_connection: "setup",
30116
30129
  taiga_get_sbom: "observe",
30117
30130
  taiga_get_notices: "observe",
30118
30131
  taiga_get_factory_document: "documents",
@@ -57646,6 +57659,57 @@ function registerSetupTools(server, client) {
57646
57659
  }));
57647
57660
  }
57648
57661
  //#endregion
57662
+ //#region src/tools/model-connection.ts
57663
+ /**
57664
+ * The organization's own Claude (P-PRO-217 milestone 2, PRO-4579): the connection every
57665
+ * Factory run of the organization builds on instead of Taiga's own inference, for an
57666
+ * organization Taiga has enabled it for. Owners and admins (tenant:settings). The API key is
57667
+ * write-only: it goes to the API and is never read back.
57668
+ */
57669
+ function registerModelConnectionTools(server, client) {
57670
+ if (!client.hasCapability("tenant:settings")) return;
57671
+ server.registerTool("taiga_get_model_connection", {
57672
+ title: "The organization's own Claude",
57673
+ description: "The organization's own Claude that its Factory runs build on: an Anthropic API key (its last four characters only) or an AWS Bedrock role and region, null when runs build on Taiga's own models; and what a Bedrock role's trust policy must name (principalArn, externalId). Only for an organization Taiga has enabled it for; any other is refused.",
57674
+ inputSchema: object({}),
57675
+ annotations: READ_ONLY
57676
+ }, () => runTool(async () => toolResult((await client.getModelConnection()).data)));
57677
+ server.registerTool("taiga_set_model_connection", {
57678
+ title: "Set the organization's own Claude",
57679
+ description: "Set the organization's own Claude: every Factory run of the organization dispatched after builds on it, instead of Taiga's models. kind anthropic takes apiKey, an Anthropic API key, stored encrypted and never shown again; kind bedrock takes roleArn, a role in the organization's AWS account that trusts Taiga with the externalId taiga_get_model_connection gives, and region, an EU region. The connection is checked first and refused when Anthropic or AWS refuses it. Replaces the one set before.",
57680
+ inputSchema: object({
57681
+ kind: _enum(["anthropic", "bedrock"]),
57682
+ apiKey: string$2().trim().min(20).max(512).optional().describe("kind anthropic: the Anthropic API key"),
57683
+ roleArn: string$2().trim().max(600).optional().describe("kind bedrock: the IAM role Taiga assumes"),
57684
+ region: string$2().trim().max(32).optional().describe("kind bedrock: the EU region, such as eu-central-1")
57685
+ }),
57686
+ annotations: OPERATE_SETTING
57687
+ }, (params) => runTool(async () => {
57688
+ if (params.kind === "anthropic") {
57689
+ if (!params.apiKey || params.roleArn || params.region) return toolError("VALIDATION_ERROR", "kind anthropic takes apiKey, and no roleArn or region.");
57690
+ return toolResult((await client.setModelConnection({
57691
+ kind: "anthropic",
57692
+ apiKey: params.apiKey
57693
+ })).data);
57694
+ }
57695
+ if (!params.roleArn || !params.region || params.apiKey) return toolError("VALIDATION_ERROR", "kind bedrock takes roleArn and region, and no apiKey.");
57696
+ return toolResult((await client.setModelConnection({
57697
+ kind: "bedrock",
57698
+ roleArn: params.roleArn,
57699
+ region: params.region
57700
+ })).data);
57701
+ }));
57702
+ server.registerTool("taiga_remove_model_connection", {
57703
+ title: "Remove the organization's own Claude",
57704
+ description: "Remove the organization's own Claude: its Factory runs dispatched after build on Taiga's own models, and a run still on the connection can no longer reach it.",
57705
+ inputSchema: object({}),
57706
+ annotations: OPERATE_SETTING
57707
+ }, () => runTool(async () => {
57708
+ await client.removeModelConnection();
57709
+ return toolResult({ removed: true });
57710
+ }));
57711
+ }
57712
+ //#endregion
57649
57713
  //#region src/tools/index.ts
57650
57714
  /**
57651
57715
  * Every tool refuses an argument it does not take, and every tool's 404 says
@@ -57916,6 +57980,7 @@ function registerAllTools(server, client, options = {}) {
57916
57980
  registerAutonomyTools(server, client);
57917
57981
  registerProductDocumentWrites(server, client);
57918
57982
  registerSetupTools(server, client);
57983
+ registerModelConnectionTools(server, client);
57919
57984
  registerRepositoryTools(server, client);
57920
57985
  registerWaitTools(server, client, options.wait ?? DEFAULT_WAIT_OPTIONS);
57921
57986
  registerContextTools(server, client);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.37.0-dev.1122",
3
+ "version": "0.37.0-dev.1123",
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",