diff --git a/src/server/mcp.test.ts b/src/server/mcp.test.ts index 0764ffe8..10e550df 100644 --- a/src/server/mcp.test.ts +++ b/src/server/mcp.test.ts @@ -267,6 +267,7 @@ describe("tool()", () => { expect(result.tools[0].name).toBe("test"); expect(result.tools[0].inputSchema).toEqual({ type: "object", + properties: {}, }); // Adding the tool before the connection was established means no notification was sent diff --git a/src/server/mcp.ts b/src/server/mcp.ts index 1d984edc..791facef 100644 --- a/src/server/mcp.ts +++ b/src/server/mcp.ts @@ -1182,6 +1182,7 @@ export type RegisteredTool = { const EMPTY_OBJECT_JSON_SCHEMA = { type: "object" as const, + properties: {}, }; // Helper to check if an object is a Zod schema (ZodRawShape)