mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-26 15:34:18 +02:00
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> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_prompt.py | ||
| test_prompt_manager.py | ||