fastmcp/tests
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
..
auth Update docs and test 2025-06-20 13:06:48 -04:00
cli Fix event loop conflict in inspect CLI command 2025-06-21 20:04:39 -04:00
client Update docs and test 2025-06-20 13:06:48 -04:00
contrib Add audio support 2025-06-14 08:59:48 -04:00
deprecated Update docs and test 2025-06-20 13:06:48 -04:00
prompts Fix prompt argument type annotation to support mixed typing 2025-06-22 08:34:49 -04:00
resources Update docs and tests 2025-06-19 17:06:54 -04:00
server Update docs and test 2025-06-20 13:06:48 -04:00
test_servers Update tests for prompts 2025-06-04 16:37:41 -04:00
tools Update docs and tests 2025-06-19 17:06:54 -04:00
utilities Fix event loop conflict in inspect CLI command 2025-06-21 20:04:39 -04:00
__init__.py Update type handling for resources 2024-11-29 19:42:46 -05:00
conftest.py Only apply log config to FastMCP loggers 2025-04-14 15:45:05 -04:00
test_examples.py Update test typing 2025-05-31 20:41:18 -04:00