mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-24 06:24:18 +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> |
||
|---|---|---|
| .. | ||
| auth | ||
| tasks | ||
| transports | ||
| __init__.py | ||
| test_client.py | ||
| test_elicitation.py | ||
| test_logs.py | ||
| test_notifications.py | ||
| test_oauth_callback_xss.py | ||
| test_openapi.py | ||
| test_progress.py | ||
| test_roots.py | ||
| test_sampling.py | ||
| test_sse.py | ||
| test_stdio.py | ||
| test_streamable_http.py | ||