Skip to content

Commit 921ce70

Browse files
committed
fix: missing "properties" property in empty schema
1 parent 1878143 commit 921ce70

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/server/mcp.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ describe("tool()", () => {
265265
expect(result.tools[0].name).toBe("test");
266266
expect(result.tools[0].inputSchema).toEqual({
267267
type: "object",
268+
properties: {},
268269
});
269270

270271
// Adding the tool before the connection was established means no notification was sent

src/server/mcp.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,6 +1018,7 @@ export type RegisteredTool = {
10181018

10191019
const EMPTY_OBJECT_JSON_SCHEMA = {
10201020
type: "object" as const,
1021+
properties: {},
10211022
};
10221023

10231024
// Helper to check if an object is a Zod schema (ZodRawShape)

0 commit comments

Comments
 (0)