Skip to content

Commit 475ae9c

Browse files
committed
type updates
1 parent ddb3ebb commit 475ae9c

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/app.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,18 @@ export class App extends Protocol<AppRequest, AppNotification, AppResult> {
358358
const result: Tool = {
359359
name,
360360
description: tool.description,
361-
inputSchema: tool.inputSchema
361+
inputSchema: (tool.inputSchema
362362
? z.toJSONSchema(tool.inputSchema as ZodSchema)
363-
: { type: "object" as const, properties: {} },
363+
: {
364+
type: "object" as const,
365+
properties: {},
366+
}) as Tool["inputSchema"],
367+
outputSchema: (tool.outputSchema
368+
? z.toJSONSchema(tool.outputSchema as ZodSchema)
369+
: {
370+
type: "object" as const,
371+
properties: {},
372+
}) as Tool["outputSchema"],
364373
};
365374
if (tool.annotations) {
366375
result.annotations = tool.annotations;

0 commit comments

Comments
 (0)