-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] MCP ToolCollection raises KeyError: 'type' #626
Comments
This edit fixed the exception, but I am not sure if it causes a regression:
|
@grll what do you think, should we merge this change? |
I would carefully check beforehand : 🤔 |
I need to find the root cause first, is it because we are not exposing the type as we should in mcpadapt? |
FWIW, during troubleshooting when I encountered this bug, I found that other tools like @wong2/mcp-cli also complained about missing |
Hey there I have got some news on this issue @murawakimitsuhiro flagged it as mcpadapt not correctly handling mcp server where some parameters are nullable, see grll/mcpadapt#10. We are working on a fix. |
We have successfully merged the work of @murawakimitsuhiro which means this should be fixed by bumping mcpadapt to 0.0.15 and above. |
Thanks for the fix, @murawakimitsuhiro and @grll! 🤗 |
Describe the bug
When loading an MCP tool (e.g. mcp_server_tavily), an exception occurs in _generate_tool_inputs(...). key "type" is not found.
Code to reproduce the error
Error logs (if any)
Expected behavior
No exception
Packages version:
smolagents==1.8.1
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: