summaryrefslogtreecommitdiff
path: root/packages/server/src/tools/write-file.ts
diff options
context:
space:
mode:
authorTaylor Mullen <[email protected]>2025-05-16 22:09:24 -0700
committerN. Taylor Mullen <[email protected]>2025-05-16 22:14:51 -0700
commite0b88dc8da3667bf4ba172a334a176d08fb0129d (patch)
tree8fec045eb4277a7b1361aca45f0c8cbc1925f690 /packages/server/src/tools/write-file.ts
parent0e25fdd56e99aaa51f805a075e45634cb7f2c02a (diff)
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
Diffstat (limited to 'packages/server/src/tools/write-file.ts')
0 files changed, 0 insertions, 0 deletions