mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-25 23:14:17 +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> |
||
|---|---|---|
| .. | ||
| cli | ||
| client | ||
| contrib | ||
| deprecated | ||
| experimental | ||
| integration_tests | ||
| prompts | ||
| resources | ||
| server | ||
| tools | ||
| utilities | ||
| __init__.py | ||
| conftest.py | ||
| test_mcp_config.py | ||