fastmcp/tests/prompts
Jeremiah Lowin 7a793f4309 Fix prompt argument type annotation to support mixed typing
Updated FunctionPrompt.render() to accept dict[str, Any] instead of
dict[str, str | Context] to preserve the developer experience of
passing properly typed arguments while also supporting string-only
arguments from MCP clients.

The _convert_string_arguments method now intelligently handles both
scenarios:
- Already-typed arguments are passed through unchanged
- String arguments are converted to expected types when needed

This maintains backward compatibility while enabling MCP spec compliance.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-22 08:34:49 -04:00
..
__init__.py restore 1.x code 2025-04-09 11:54:42 -04:00
test_prompt.py Fix prompt argument type annotation to support mixed typing 2025-06-22 08:34:49 -04:00
test_prompt_manager.py Update tests 2025-06-19 14:05:19 -04:00