Unified · Split
| @@ -56,9 +56,9 @@ describe("MCP → runner integration", () => { · 55 unmodified lines | ||
| 56 | 56 | // Generate full declarations from the tool tree |
| 57 | 57 | const declarations = generateToolDeclarations(mcpResult.tools); |
| 58 | 58 | |
| 59 | − // Valid code should pass | |
| 59 | + // Valid code should pass (limit is required by the MCP schema) | |
| 60 | 60 | 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;`, | |
| 62 | 62 | declarations, |
| 63 | 63 | ); |
| 64 | 64 | expect(validResult.ok).toBe(true); |