We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0650454 commit b0e1210Copy full SHA for b0e1210
tests/unit/toolBase.test.ts
@@ -141,15 +141,13 @@ describe("ToolBase", () => {
141
beforeEach(() => {
142
const mockServer = {
143
mcpServer: {
144
- tool: (
+ registerTool: (
145
name: string,
146
- description: string,
147
- paramsSchema: unknown,
148
- annotations: ToolAnnotations,
+ config: { description: string; inputSchema: unknown; annotations: ToolAnnotations },
149
cb: ToolCallback<ZodRawShape>
150
): void => {
151
expect(name).toBe(testTool.name);
152
- expect(description).toBe(testTool["description"]);
+ expect(config.description).toBe(testTool["description"]);
153
mockCallback = cb;
154
},
155
0 commit comments