History

fix test

Rhys Sullivan committed 9 months ago

Commit db0c5e41 parent 4e1ea351 file · +2 −2Browse files

Unified · Split

packages/tool-gen/src/integration.test.ts+2−2
@@ -56,9 +56,9 @@ describe("MCP → runner integration", () => { · 55 unmodified lines
5656 // Generate full declarations from the tool tree
5757 const declarations = generateToolDeclarations(mcpResult.tools);
5858
59− // Valid code should pass
59+ // Valid code should pass (limit is required by the MCP schema)
6060 const validResult = typecheckCode(
61− `const servers = await tools.answeroverflow.search_servers({ query: "test" });\nreturn servers;`,
61+ `const servers = await tools.answeroverflow.search_servers({ query: "test", limit: 10 });\nreturn servers;`,
6262 declarations,
6363 );
6464 expect(validResult.ok).toBe(true);