@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.0",
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.0",
33
- "@tsed/core": "8.26.0",
34
- "@tsed/di": "8.26.0",
35
- "@tsed/platform-http": "8.26.0",
36
- "@tsed/schema": "8.26.0",
37
- "@tsed/typescript": "8.26.0",
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": "5.9.3",
39
+ "typescript": "6.0.2",
40
40
  "vitest": "3.2.4"
41
41
  },
42
42
  "peerDependencies": {
@@ -29,6 +29,6 @@ export function Tool<Input = any, Output = any>(name?: string, options: Partial<
29
29
  name: name || String(propertyKey),
30
30
  token: classOf(target),
31
31
  propertyKey
32
- });
32
+ } as any);
33
33
  };
34
34
  }
@@ -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
 
@@ -24,7 +24,7 @@ export class PlatformMcpModule implements OnRoutesInit {
24
24
 
25
25
  this.app.post(
26
26
  path,
27
- useContextHandler(async ($ctx: PlatformContext) => this.dispatch($ctx))
27
+ useContextHandler(async ($ctx) => this.dispatch($ctx as PlatformContext))
28
28
  );
29
29
  }
30
30
  }