You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: make CallToolRequest.Arguments more flexible (Breaking Change) (#287)
* refactor: make CallToolRequest.Arguments more flexible
This change allows for more flexible argument types in CallToolRequest.
Arguments field is now of type 'any' instead of 'map[string]any'.
Added GetArguments() and GetRawArguments() methods for backward compatibility.
Fixes#104
* refactor: move tests to tools_test.go
* feat: add BindArguments and helper functions for CallToolRequest
* test: add tests for BindArguments and helper functions
* docs: update README with helper function examples
* update tests
* feat: add more slice helper functions
* Update mcp/tools.go
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Update mcp/tools.go
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* fix tests
* implement `NewTypedToolHandlerFunc`
* fix
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
0 commit comments