@tsed/platform-mcp 8.26.0 → 8.26.1
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.
|
@@ -163,10 +163,6 @@ export declare function defineTool<Input, Output = undefined>(options: ToolProps
|
|
|
163
163
|
message: any;
|
|
164
164
|
};
|
|
165
165
|
}>;
|
|
166
|
-
description?: string | undefined;
|
|
167
|
-
_meta?: Record<string, unknown> | undefined;
|
|
168
|
-
annotations?: import("@modelcontextprotocol/sdk/types.js").ToolAnnotations;
|
|
169
|
-
title?: string | undefined;
|
|
170
166
|
} | {
|
|
171
167
|
name: string | undefined;
|
|
172
168
|
inputSchema: import("zod").ZodObject<import("zod/v4/core").$ZodLooseShape, import("zod/v4/core").$strip> | undefined;
|
|
@@ -274,10 +270,6 @@ export declare function defineTool<Input, Output = undefined>(options: ToolProps
|
|
|
274
270
|
message: any;
|
|
275
271
|
};
|
|
276
272
|
}>;
|
|
277
|
-
description?: string | undefined;
|
|
278
|
-
_meta?: Record<string, unknown> | undefined;
|
|
279
|
-
annotations?: import("@modelcontextprotocol/sdk/types.js").ToolAnnotations;
|
|
280
|
-
title?: string | undefined;
|
|
281
273
|
token: Type | AbstractType<any>;
|
|
282
274
|
propertyKey: string | symbol;
|
|
283
275
|
}>;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@tsed/platform-mcp",
|
|
3
3
|
"description": "Model Context Protocol integration for Ts.ED HTTP adapters.",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "8.26.
|
|
5
|
+
"version": "8.26.1",
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
7
|
"main": "./lib/esm/index.js",
|
|
8
8
|
"module": "./lib/esm/index.js",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"zod": ">=4.0.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@tsed/barrels": "8.26.
|
|
33
|
-
"@tsed/core": "8.26.
|
|
34
|
-
"@tsed/di": "8.26.
|
|
35
|
-
"@tsed/platform-http": "8.26.
|
|
36
|
-
"@tsed/schema": "8.26.
|
|
37
|
-
"@tsed/typescript": "8.26.
|
|
32
|
+
"@tsed/barrels": "8.26.1",
|
|
33
|
+
"@tsed/core": "8.26.1",
|
|
34
|
+
"@tsed/di": "8.26.1",
|
|
35
|
+
"@tsed/platform-http": "8.26.1",
|
|
36
|
+
"@tsed/schema": "8.26.1",
|
|
37
|
+
"@tsed/typescript": "8.26.1",
|
|
38
38
|
"eslint": "9.12.0",
|
|
39
|
-
"typescript": "
|
|
39
|
+
"typescript": "6.0.2",
|
|
40
40
|
"vitest": "3.2.4"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
package/src/decorators/tool.ts
CHANGED
|
@@ -9,13 +9,13 @@ describe("defineTool", () => {
|
|
|
9
9
|
afterEach(() => PlatformTest.reset());
|
|
10
10
|
|
|
11
11
|
it("should wrap handler errors with structured MCP payloads", async () => {
|
|
12
|
-
const token = defineTool({
|
|
12
|
+
const token = defineTool<any>({
|
|
13
13
|
name: "failing-tool",
|
|
14
14
|
description: "Always throws",
|
|
15
15
|
handler() {
|
|
16
16
|
throw new Error("boom");
|
|
17
17
|
}
|
|
18
|
-
});
|
|
18
|
+
} as any);
|
|
19
19
|
|
|
20
20
|
const definition = inject<any>(token);
|
|
21
21
|
|