Skip to content

Commit 9c996e8

Browse files
committed
type updates
1 parent 6fd7513 commit 9c996e8

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
@@ -333,9 +333,18 @@ export class App extends Protocol<Request, Notification, Result> {
333333
const result: Tool = {
334334
name,
335335
description: tool.description,
336-
inputSchema: tool.inputSchema
336+
inputSchema: (tool.inputSchema
337337
? z.toJSONSchema(tool.inputSchema as ZodSchema)
338-
: { type: "object" as const, properties: {} },
338+
: {
339+
type: "object" as const,
340+
properties: {},
341+
}) as Tool["inputSchema"],
342+
outputSchema: (tool.outputSchema
343+
? z.toJSONSchema(tool.outputSchema as ZodSchema)
344+
: {
345+
type: "object" as const,
346+
properties: {},
347+
}) as Tool["outputSchema"],
339348
};
340349
if (tool.annotations) {
341350
result.annotations = tool.annotations;

0 commit comments

Comments
 (0)