Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/server/mcp.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,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
Expand Down
1 change: 1 addition & 0 deletions src/server/mcp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,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)
Expand Down