Skip to content

Fix float parsing in mcp tool calls#86

Open
tnsardesai wants to merge 2 commits intoVibiumDev:mainfrom
tnsardesai:fix-sleep
Open

Fix float parsing in mcp tool calls#86
tnsardesai wants to merge 2 commits intoVibiumDev:mainfrom
tnsardesai:fix-sleep

Conversation

@tnsardesai
Copy link
Copy Markdown

LLMs sometimes send numeric arguments as strings (e.g. "2000" instead of
2000). Add a floatArg helper that accepts both float64 and string values,
and use it across all numeric argument parsing in MCP handlers.

Fixes #85

LLMs sometimes send numeric arguments as strings (e.g. "2000" instead of
2000). Add a floatArg helper that accepts both float64 and string values,
and use it across all numeric argument parsing in MCP handlers.

Fixes VibiumDev#85

Made-with: Cursor
@tnsardesai tnsardesai changed the title Fix sleep Fix float parsing in mcp tool calls Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mcp calls should handle stringified numbers

1 participant