MCP-106 Improve support for parsing parameter types#87
Conversation
damien-urruty-sonarsource
left a comment
There was a problem hiding this comment.
Should we add a couple of tests to verify that we support this lenient argument parsing?
469cdcb to
c470644
Compare
🤖 Pull Request summaryRefactors Tool.Arguments to use pattern matching and improve type safety. • Replaces unsafe type casting with switch expressions using pattern matching for getStringOrThrow, getOptionalInteger, and getOptionalBoolean methods Review focus: Verify pattern matching logic handles all expected input types correctly, especially edge cases with null values and type conversions in the switch statements.
|



MCP-106
Thanks #85 @rishichintala for the report