Skip to content

Conversation

@huangjeff5
Copy link
Contributor

When we added support for dynamic tools we didn't have a way to define a dynamic tool with an input schema, so the tools weren't propagating the required arguments correctly. This PR fixes that problem.

I also noticed that for JSON schema properties that are numbers (minItems, maxItems, minimum, maximum), our googlegenai gemini plugin expects these fields to be strings and casts to float. However the JSON schemas from MCP tools get unmarshalled into jsonschema.Schema which types them as floats/ints. I think it's most flexible to support both types in the gemini plugin, so I updated that here.

@huangjeff5 huangjeff5 enabled auto-merge (squash) September 9, 2025 03:47
@huangjeff5 huangjeff5 merged commit 8094cbd into main Sep 9, 2025
6 checks passed
@huangjeff5 huangjeff5 deleted the jh-mcp-tools-fix branch September 9, 2025 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 participants