@taiga-ai/mcp-server 0.11.0-dev.410 → 0.11.0-dev.412
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
|
@@ -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
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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
|
|
package/src/tools/errors.ts
CHANGED
|
@@ -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
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
}
|
package/src/tools/prompts.ts
CHANGED
|
@@ -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
|
-
|
|
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.)`;
|
|
Binary file
|
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
|