@taiga-ai/mcp-server 0.11.0-dev.410 → 0.11.0-dev.411

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ai/mcp-server",
3
- "version": "0.11.0-dev.410",
3
+ "version": "0.11.0-dev.411",
4
4
  "description": "MCP server for Taiga -- gives AI assistants access to documents and products",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -100,10 +100,13 @@ function sentBody(fetchSpy: ReturnType<typeof vi.fn>, method: string, pathPart:
100
100
 
101
101
  /** What the API answers when it refuses: the status and the error envelope its error handler sends. */
102
102
  class Refusal {
103
- constructor(
104
- readonly status: number,
105
- readonly body: { error: string; code: string; message: string }
106
- ) {}
103
+ readonly status: number;
104
+ readonly body: { error: string; code: string; message: string };
105
+
106
+ constructor(status: number, body: { error: string; code: string; message: string }) {
107
+ this.status = status;
108
+ this.body = body;
109
+ }
107
110
  }
108
111
  const refusal = (status: number, code: string, message: string) => new Refusal(status, { error: code, code, message });
109
112
 
@@ -85,11 +85,11 @@ export async function runTool(handler: () => Promise<CallToolResult>): Promise<C
85
85
  * "MCP error -32602:" and the client would prefix it again.
86
86
  */
87
87
  export class RequestError extends Error {
88
- constructor(
89
- readonly code: number,
90
- message: string
91
- ) {
88
+ readonly code: number;
89
+
90
+ constructor(code: number, message: string) {
92
91
  super(message);
92
+ this.code = code;
93
93
  this.name = 'RequestError';
94
94
  }
95
95
  }
@@ -263,8 +263,11 @@ export function registerPrompts(server: McpServer, client: TaigaClient) {
263
263
 
264
264
  /** A part the key's capabilities do not cover; named in its place rather than fetched. */
265
265
  class NotGranted extends Error {
266
- constructor(readonly capability: string) {
266
+ readonly capability: string;
267
+
268
+ constructor(capability: string) {
267
269
  super(`needs ${capability}`);
270
+ this.capability = capability;
268
271
  }
269
272
  line(what: string): string {
270
273
  return `(${what} need ${this.capability}, which this key lacks.)`;
package/tsconfig.json CHANGED
@@ -11,6 +11,10 @@
11
11
  "resolveJsonModule": true,
12
12
  "types": ["node"],
13
13
 
14
+ // @tsconfig/strictest leaves these two out, so every package sets them.
15
+ "verbatimModuleSyntax": true,
16
+ "erasableSyntaxOnly": true,
17
+
14
18
  // Preset flags this package still fails (PRO-2509). Each line is deleted
15
19
  // by the issue named beside it; no new line is added here.
16
20
  "noPropertyAccessFromIndexSignature": false // PRO-2519