mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-16 18:49:14 +02:00
When a prompt function returned `mcp.types.PromptMessage` objects directly and was executed as a task, the result serialization failed with "'PromptMessage' object has no attribute 'to_mcp'". The task result converter was calling `.to_mcp()` on what it thought was a FastMCP wrapper type, but the import actually pulls in `mcp.types.PromptMessage` directly, which is already the final MCP type. Removed the unnecessary conversion. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| conftest.py | ||
| test_client_prompt_tasks.py | ||
| test_client_resource_tasks.py | ||
| test_client_task_notifications.py | ||
| test_client_task_protocol.py | ||
| test_client_tool_tasks.py | ||
| test_prompt_task_mcp_message.py | ||
| test_task_context_validation.py | ||
| test_task_result_caching.py | ||