Replace fragile 'as String'/'as String?' casts in callAsTool() with string interpolation so that numeric values sent by MCP JSON clients (double instead of String) no longer throw a type cast error. Fixes: type 'double' is not a subtype of type 'String' in type cast Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| lib | ||
| test | ||
| .gitignore | ||
| LICENSE | ||
| pubspec.yaml | ||