qwen-code/packages/server/src/tools
Taylor Mullen e0b88dc8da feat: Strip schema props from MCP tool definitions
- This change modifies the tool discovery process for MCP (Model Context Protocol) tools.
- When tools are fetched from an MCP server, the `additionalProperties` and `$schema` fields are now recursively removed from their input schemas. This ensures cleaner and more concise tool definitions within the CLI, aligning with the expected schema structure and preventing potential conflicts or verbose outputs.
- The corresponding tests in `tool-registry.test.ts` have been updated to reflect this new behavior and verify the correct stripping of these properties.

Workaround for https://github.com/google-gemini/gemini-cli/issues/398
2025-05-16 22:14:51 -07:00
..
edit.test.ts GC "add tool registry tests" 2025-05-16 17:04:29 -07:00
edit.ts fix: Ensure filename is available for diff rendering in write-file 2025-05-16 10:13:13 -07:00
glob.ts Enable tools to cancel active execution. 2025-05-10 00:21:09 -07:00
grep.ts Enable tools to cancel active execution. 2025-05-10 00:21:09 -07:00
ls.ts Enable tools to cancel active execution. 2025-05-10 00:21:09 -07:00
memoryTool.test.ts feat: Implement CLI and model memory management (#371) 2025-05-16 16:36:50 -07:00
memoryTool.ts feat: Implement CLI and model memory management (#371) 2025-05-16 16:36:50 -07:00
read-file.ts Enable tools to cancel active execution. 2025-05-10 00:21:09 -07:00
read-many-files.ts feat: Implement CLI and model memory management (#371) 2025-05-16 16:36:50 -07:00
shell.json minimal shell tool (#191) 2025-04-27 18:57:10 -07:00
shell.md drop restriction on whitespace in bash commands (#272) 2025-05-06 23:38:36 -07:00
shell.ts Enable tools to cancel active execution. 2025-05-10 00:21:09 -07:00
tool-registry.test.ts feat: Strip schema props from MCP tool definitions 2025-05-16 22:14:51 -07:00
tool-registry.ts feat: Strip schema props from MCP tool definitions 2025-05-16 22:14:51 -07:00
tools.ts fix: Ensure filename is available for diff rendering in write-file 2025-05-16 10:13:13 -07:00
web-fetch.ts Enable tools to cancel active execution. 2025-05-10 00:21:09 -07:00
write-file.test.ts fix: Ensure filename is available for diff rendering in write-file 2025-05-16 10:13:13 -07:00
write-file.ts fix: Ensure filename is available for diff rendering in write-file 2025-05-16 10:13:13 -07:00