@taiga-ai/mcp-server 0.42.0-dev.1246 → 0.43.0-dev.1248
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 +17 -15
- package/dist/index.js +66 -6
- 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.
|
|
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.
|
|
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.
|
|
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
|
|
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.
|
|
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
|
|
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.
|
|
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
|
|
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.
|
|
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
|
|
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.
|
|
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
|
|
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.
|
|
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
|
|
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.
|
|
59
|
+
"args": ["-y", "@taiga-ai/mcp-server@0.43.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.
|
|
76
|
+
"args": ["-y", "@taiga-ai/mcp-server@0.43.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.
|
|
104
|
+
"args": ["-y", "@taiga-ai/mcp-server@0.43.0"],
|
|
105
105
|
"env": { "TAIGA_API_KEY": "${input:taiga-api-key}" }
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -110,11 +110,12 @@ In `.vscode/mcp.json`. VS Code reads `servers`, and prompts for the key once and
|
|
|
110
110
|
|
|
111
111
|
## Configuration
|
|
112
112
|
|
|
113
|
-
| Variable
|
|
114
|
-
|
|
|
115
|
-
| `TAIGA_API_KEY`
|
|
116
|
-
| `TAIGA_API_URL`
|
|
117
|
-
| `TAIGA_TOOLSETS`
|
|
113
|
+
| Variable | Required | Meaning |
|
|
114
|
+
| ----------------- | -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
115
|
+
| `TAIGA_API_KEY` | Yes | Your access key. |
|
|
116
|
+
| `TAIGA_API_URL` | For `@dev` and `@staging` builds | The Taiga API. A release defaults to `https://api.eu.tai.ga`. It must be https (plain http only for `localhost`), with no query or fragment. |
|
|
117
|
+
| `TAIGA_TOOLSETS` | No | Overrides the key's toolsets for this server, comma-separated, or `all`. See [Toolsets](#toolsets). |
|
|
118
|
+
| `TAIGA_TELEMETRY` | No | `off` stops the usage report this server sends Taiga after each tool call. See [How it behaves](#how-it-behaves). |
|
|
118
119
|
|
|
119
120
|
## Toolsets
|
|
120
121
|
|
|
@@ -149,6 +150,7 @@ This is what a security reviewer should know.
|
|
|
149
150
|
- **Record text is data.** Initiative descriptions, document text, findings and pull request titles were written by people or agents. The server tells the assistant to read them as data, never as instructions.
|
|
150
151
|
- **Version check.** The server checks at start that the Taiga API it reached supports this version, and refuses to start if not, saying why.
|
|
151
152
|
- **Nothing on stdout but the protocol.** The server writes only protocol messages to stdout. Its log goes to stderr and does not include your email.
|
|
153
|
+
- **Usage report.** After each tool call the server tells the Taiga API which tool answered, whether it failed and with which error code, how long it took, the name and version your client gives, the protocol version and its own version. It never sends the arguments or the result. The report is sent after the answer and never waited for. `TAIGA_TELEMETRY=off` turns it off.
|
|
152
154
|
|
|
153
155
|
Organization administration stays in the web. That covers members and roles, SSO, access keys, connecting GitHub, GitLab or Azure DevOps, the Discovery conversation, and deleting factories and products.
|
|
154
156
|
|
package/dist/index.js
CHANGED
|
@@ -23815,6 +23815,10 @@ var TaigaClient = class {
|
|
|
23815
23815
|
const qs = origin ? `?${new URLSearchParams({ origin })}` : "";
|
|
23816
23816
|
return this.request("GET", `/products/${seg(productId)}/documents/${seg(type)}${qs}`);
|
|
23817
23817
|
}
|
|
23818
|
+
/** One tool call, for usage telemetry (PRO-2845): 204, and nothing is read back. */
|
|
23819
|
+
async reportToolCall(report) {
|
|
23820
|
+
await this.request("POST", "/mcp/tool-calls", report);
|
|
23821
|
+
}
|
|
23818
23822
|
/** Every published version of a product document type, newest first, each with its content (PRO-5088). */
|
|
23819
23823
|
async listProductDocumentVersions(productId, type, origin) {
|
|
23820
23824
|
const qs = origin ? `?${new URLSearchParams({ origin })}` : "";
|
|
@@ -37716,7 +37720,8 @@ const DEFAULT_API_URL = "https://api.eu.tai.ga";
|
|
|
37716
37720
|
const envSchema = object({
|
|
37717
37721
|
TAIGA_API_KEY: string$2().optional(),
|
|
37718
37722
|
TAIGA_API_URL: string$2().optional(),
|
|
37719
|
-
TAIGA_TOOLSETS: string$2().optional()
|
|
37723
|
+
TAIGA_TOOLSETS: string$2().optional(),
|
|
37724
|
+
TAIGA_TELEMETRY: string$2().optional()
|
|
37720
37725
|
});
|
|
37721
37726
|
/** Hosts a developer runs the API on; the only ones plain http is accepted for. */
|
|
37722
37727
|
const LOCAL_HOSTS = /* @__PURE__ */ new Set([
|
|
@@ -37738,6 +37743,12 @@ function readConfig(version = SERVER_VERSION) {
|
|
|
37738
37743
|
const prerelease = version.includes("-");
|
|
37739
37744
|
if (!env.TAIGA_API_URL && prerelease) return { problem: `This is a pre-release build (${version}) for one of Taiga's own environments: set TAIGA_API_URL to that environment's API. A released version defaults to ${DEFAULT_API_URL}.` };
|
|
37740
37745
|
const apiUrl = (env.TAIGA_API_URL || DEFAULT_API_URL).replace(/\/+$/, "");
|
|
37746
|
+
const telemetry = ![
|
|
37747
|
+
"off",
|
|
37748
|
+
"0",
|
|
37749
|
+
"false",
|
|
37750
|
+
"no"
|
|
37751
|
+
].includes((env.TAIGA_TELEMETRY ?? "").trim().toLowerCase());
|
|
37741
37752
|
let url;
|
|
37742
37753
|
try {
|
|
37743
37754
|
url = new URL(apiUrl);
|
|
@@ -37752,12 +37763,14 @@ function readConfig(version = SERVER_VERSION) {
|
|
|
37752
37763
|
return { config: {
|
|
37753
37764
|
apiKey: env.TAIGA_API_KEY,
|
|
37754
37765
|
apiUrl,
|
|
37755
|
-
toolsets: parsed.toolsets
|
|
37766
|
+
toolsets: parsed.toolsets,
|
|
37767
|
+
telemetry
|
|
37756
37768
|
} };
|
|
37757
37769
|
}
|
|
37758
37770
|
return { config: {
|
|
37759
37771
|
apiKey: env.TAIGA_API_KEY,
|
|
37760
|
-
apiUrl
|
|
37772
|
+
apiUrl,
|
|
37773
|
+
telemetry
|
|
37761
37774
|
} };
|
|
37762
37775
|
}
|
|
37763
37776
|
//#endregion
|
|
@@ -39168,6 +39181,40 @@ const OUTPUT_SCHEMAS = {
|
|
|
39168
39181
|
}).loose()
|
|
39169
39182
|
};
|
|
39170
39183
|
//#endregion
|
|
39184
|
+
//#region src/tools/telemetry.ts
|
|
39185
|
+
function toolCallReporter(server, client) {
|
|
39186
|
+
return (tool, result, durationMs) => {
|
|
39187
|
+
const answer = result;
|
|
39188
|
+
const failed = !answer || answer.isError === true;
|
|
39189
|
+
const info = server.server.getClientVersion();
|
|
39190
|
+
const protocolVersion = server.server.getNegotiatedProtocolVersion();
|
|
39191
|
+
const report = {
|
|
39192
|
+
tool,
|
|
39193
|
+
outcome: failed ? "error" : "ok",
|
|
39194
|
+
...failed ? { errorCode: errorCodeOf(answer) } : {},
|
|
39195
|
+
durationMs: Math.max(0, Math.round(durationMs)),
|
|
39196
|
+
...info?.name ? { client: {
|
|
39197
|
+
name: info.name,
|
|
39198
|
+
...info.version ? { version: info.version } : {}
|
|
39199
|
+
} } : {},
|
|
39200
|
+
...protocolVersion ? { protocolVersion } : {},
|
|
39201
|
+
serverVersion: SERVER_VERSION
|
|
39202
|
+
};
|
|
39203
|
+
client.reportToolCall(report).catch(() => void 0);
|
|
39204
|
+
};
|
|
39205
|
+
}
|
|
39206
|
+
/** An error result's code, as toolError writes it; INTERNAL for a call that threw or answered without one. */
|
|
39207
|
+
function errorCodeOf(answer) {
|
|
39208
|
+
const first = answer?.content?.[0];
|
|
39209
|
+
if (first?.type !== "text") return "INTERNAL";
|
|
39210
|
+
try {
|
|
39211
|
+
const code = JSON.parse(first.text).error;
|
|
39212
|
+
return typeof code === "string" && /^[A-Z_]{1,64}$/.test(code) ? code : "INTERNAL";
|
|
39213
|
+
} catch {
|
|
39214
|
+
return "INTERNAL";
|
|
39215
|
+
}
|
|
39216
|
+
}
|
|
39217
|
+
//#endregion
|
|
39171
39218
|
//#region src/tools/annotations.ts
|
|
39172
39219
|
/**
|
|
39173
39220
|
* Tool annotations shared by the tools. Hints for the client, not a
|
|
@@ -61998,7 +62045,7 @@ function registerModelConnectionTools(server, client) {
|
|
|
61998
62045
|
* model learns the tool's real shape. Applied here, once, so no tool can be
|
|
61999
62046
|
* registered without it.
|
|
62000
62047
|
*/
|
|
62001
|
-
function withStrictInputs(server, client, registered, toolsets, left) {
|
|
62048
|
+
function withStrictInputs(server, client, registered, toolsets, left, report) {
|
|
62002
62049
|
const inputs = /* @__PURE__ */ new Map();
|
|
62003
62050
|
const register = server.registerTool.bind(server);
|
|
62004
62051
|
server.registerTool = ((name, config, callback) => {
|
|
@@ -62016,6 +62063,16 @@ function withStrictInputs(server, client, registered, toolsets, left) {
|
|
|
62016
62063
|
if (schema !== void 0 && !(schema instanceof ZodObject)) throw new Error(`Tool ${name}: inputSchema must be a z.object() so unknown arguments can be refused`);
|
|
62017
62064
|
const handler = callback;
|
|
62018
62065
|
const withHint = async (args, ctx) => {
|
|
62066
|
+
const started = performance.now();
|
|
62067
|
+
let answer;
|
|
62068
|
+
try {
|
|
62069
|
+
answer = await answerCall(args, ctx);
|
|
62070
|
+
return answer;
|
|
62071
|
+
} finally {
|
|
62072
|
+
report?.(name, answer, performance.now() - started);
|
|
62073
|
+
}
|
|
62074
|
+
};
|
|
62075
|
+
const answerCall = async (args, ctx) => {
|
|
62019
62076
|
const refused = refusedArguments(args);
|
|
62020
62077
|
if (refused) return refused;
|
|
62021
62078
|
const answer = await withIdKind(client, args, await notFoundHints.run(notFoundHint(name, args), () => handler(args, ctx)));
|
|
@@ -62248,7 +62305,7 @@ function registerAllTools(server, client, options = {}) {
|
|
|
62248
62305
|
const registered = /* @__PURE__ */ new Map();
|
|
62249
62306
|
const toolsets = new Set(options.toolsets ?? TOOLSETS);
|
|
62250
62307
|
const left = /* @__PURE__ */ new Map();
|
|
62251
|
-
withStrictInputs(server, client, registered, toolsets, left);
|
|
62308
|
+
withStrictInputs(server, client, registered, toolsets, left, options.telemetry ? toolCallReporter(server, client) : void 0);
|
|
62252
62309
|
registerProductTools(server, client);
|
|
62253
62310
|
registerDocumentTools(server, client);
|
|
62254
62311
|
registerDesignTokenTools(server, client, options.wait ?? DEFAULT_WAIT_OPTIONS);
|
|
@@ -62393,7 +62450,10 @@ async function main() {
|
|
|
62393
62450
|
}
|
|
62394
62451
|
console.error(`Taiga MCP server started (${introspection.capabilities.length} capabilities, role: ${introspection.role})`);
|
|
62395
62452
|
const toolsets = activeToolsets(introspection.mcpToolsets, config.toolsets);
|
|
62396
|
-
serveStdio(() => createServer(client, {
|
|
62453
|
+
serveStdio(() => createServer(client, {
|
|
62454
|
+
toolsets,
|
|
62455
|
+
telemetry: config.telemetry
|
|
62456
|
+
}), { onerror: (error) => console.error("Taiga MCP server error:", error) });
|
|
62397
62457
|
}
|
|
62398
62458
|
main().catch((error) => {
|
|
62399
62459
|
console.error("Fatal error:", error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ai/mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.43.0-dev.1248",
|
|
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",
|