@taiga-ai/mcp-server 0.37.0-dev.1121 → 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.
- package/dist/index.js +135 -1
- 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
|
}
|
|
@@ -28475,6 +28485,22 @@ const CUSTOM_DOCUMENT_STATUSES = [
|
|
|
28475
28485
|
"failed"
|
|
28476
28486
|
];
|
|
28477
28487
|
//#endregion
|
|
28488
|
+
//#region ../../packages/types/dist/ui-artifacts.js
|
|
28489
|
+
/**
|
|
28490
|
+
* UI Sparring shared constants (PRO-730).
|
|
28491
|
+
*
|
|
28492
|
+
* Lives here rather than in @taiga/db because the web app enforces the same
|
|
28493
|
+
* bound client-side (the feedback textarea's maxLength) and cannot import the
|
|
28494
|
+
* schema package — one constant, read by both sides, so the caps cannot drift.
|
|
28495
|
+
*/
|
|
28496
|
+
/**
|
|
28497
|
+
* Bound on one piece of concept feedback. Feedback, not a document — and the
|
|
28498
|
+
* comment is what gets replayed into an iteration prompt, so its cap is part
|
|
28499
|
+
* of that prompt budget. Enforced by the API's Zod schemas, by the DB's
|
|
28500
|
+
* byte-length CHECK (see @taiga/db ui-artifacts), and by the web textarea.
|
|
28501
|
+
*/
|
|
28502
|
+
const MAX_UI_ARTIFACT_COMMENT_CHARS = 2e3;
|
|
28503
|
+
//#endregion
|
|
28478
28504
|
//#region ../../packages/types/dist/design-tokens.js
|
|
28479
28505
|
/**
|
|
28480
28506
|
* The brand grounding contract (PRO-929).
|
|
@@ -29146,7 +29172,60 @@ object({
|
|
|
29146
29172
|
available: array(string$2()),
|
|
29147
29173
|
withLayer: array(string$2()),
|
|
29148
29174
|
notOfferedAtHome: boolean()
|
|
29149
|
-
})
|
|
29175
|
+
});
|
|
29176
|
+
/** Where a UI concept's pick points, by its line and column in the concept's code (PRO-3677). */
|
|
29177
|
+
const uiConceptPick = strictObject({
|
|
29178
|
+
line: number$1().int().min(1).max(1e5),
|
|
29179
|
+
column: number$1().int().min(0).max(1e4)
|
|
29180
|
+
});
|
|
29181
|
+
object({ jobId: string$2() });
|
|
29182
|
+
discriminatedUnion("ok", [object({
|
|
29183
|
+
ok: literal(true),
|
|
29184
|
+
code: string$2()
|
|
29185
|
+
}), object({
|
|
29186
|
+
ok: literal(false),
|
|
29187
|
+
errors: array(object({
|
|
29188
|
+
message: string$2(),
|
|
29189
|
+
line: number$1().int().nullable(),
|
|
29190
|
+
column: number$1().int().nullable()
|
|
29191
|
+
})).min(1)
|
|
29192
|
+
})]);
|
|
29193
|
+
strictObject({
|
|
29194
|
+
body: string$2().min(1).max(MAX_UI_ARTIFACT_COMMENT_CHARS),
|
|
29195
|
+
target: uiConceptPick.extend({
|
|
29196
|
+
tag: string$2().regex(/^[a-zA-Z][a-zA-Z0-9-]{0,59}$/).optional(),
|
|
29197
|
+
text: string$2().max(200).optional()
|
|
29198
|
+
}).optional()
|
|
29199
|
+
}), strictObject({
|
|
29200
|
+
feedback: string$2().min(1).max(MAX_UI_ARTIFACT_COMMENT_CHARS),
|
|
29201
|
+
fidelity: _enum([
|
|
29202
|
+
"structure",
|
|
29203
|
+
"brand",
|
|
29204
|
+
"brand_structure"
|
|
29205
|
+
]).optional(),
|
|
29206
|
+
target: uiConceptPick.optional()
|
|
29207
|
+
}), strictObject({
|
|
29208
|
+
name: string$2().min(2).max(50),
|
|
29209
|
+
description: string$2().max(2e3).optional(),
|
|
29210
|
+
target: uiConceptPick.optional()
|
|
29211
|
+
});
|
|
29212
|
+
strictObject({
|
|
29213
|
+
screen: string$2().min(1).max(2e3),
|
|
29214
|
+
variantCount: number$1().int().min(1).max(3),
|
|
29215
|
+
fidelity: _enum([
|
|
29216
|
+
"structure",
|
|
29217
|
+
"brand",
|
|
29218
|
+
"brand_structure"
|
|
29219
|
+
]),
|
|
29220
|
+
flowDocumentId: uuid.nullish(),
|
|
29221
|
+
flowStepKey: string$2().min(1).max(120).nullish(),
|
|
29222
|
+
surfaceKey: _enum([
|
|
29223
|
+
"navigation",
|
|
29224
|
+
"overall_look",
|
|
29225
|
+
"empty_states",
|
|
29226
|
+
"forms"
|
|
29227
|
+
]).nullish()
|
|
29228
|
+
}), strictObject({ source: string$2().min(1).max(102400) }), strictObject({ type: productDocumentType }), object({
|
|
29150
29229
|
version: number$1().int().min(1),
|
|
29151
29230
|
unknownCitations: object({
|
|
29152
29231
|
shown: array(string$2()),
|
|
@@ -30044,6 +30123,9 @@ const TOOLSET_OF = {
|
|
|
30044
30123
|
taiga_start_sweep: "observe",
|
|
30045
30124
|
taiga_list_licenses: "observe",
|
|
30046
30125
|
taiga_change_license: "setup",
|
|
30126
|
+
taiga_get_model_connection: "setup",
|
|
30127
|
+
taiga_set_model_connection: "setup",
|
|
30128
|
+
taiga_remove_model_connection: "setup",
|
|
30047
30129
|
taiga_get_sbom: "observe",
|
|
30048
30130
|
taiga_get_notices: "observe",
|
|
30049
30131
|
taiga_get_factory_document: "documents",
|
|
@@ -57577,6 +57659,57 @@ function registerSetupTools(server, client) {
|
|
|
57577
57659
|
}));
|
|
57578
57660
|
}
|
|
57579
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
|
|
57580
57713
|
//#region src/tools/index.ts
|
|
57581
57714
|
/**
|
|
57582
57715
|
* Every tool refuses an argument it does not take, and every tool's 404 says
|
|
@@ -57847,6 +57980,7 @@ function registerAllTools(server, client, options = {}) {
|
|
|
57847
57980
|
registerAutonomyTools(server, client);
|
|
57848
57981
|
registerProductDocumentWrites(server, client);
|
|
57849
57982
|
registerSetupTools(server, client);
|
|
57983
|
+
registerModelConnectionTools(server, client);
|
|
57850
57984
|
registerRepositoryTools(server, client);
|
|
57851
57985
|
registerWaitTools(server, client, options.wait ?? DEFAULT_WAIT_OPTIONS);
|
|
57852
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.
|
|
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",
|