mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-28 10:18:08 +02:00
Simplifies the task support story for proxies and mounts: - Mounts get full SEP-1686 task support (unchanged) - Proxies explicitly forbid task execution The cross-session task forwarding for proxies turned out to be complex since each client connection creates a new server lifespan with a new Docket context, and task keys include session_id. Rather than introduce that complexity, proxies now explicitly refuse task-augmented execution. Key changes: - All proxy components (ProxyTool, ProxyPrompt, ProxyResource, ProxyTemplate) now have task_config.mode="forbidden" - Proxy tests verify forbidden behavior (sync execution works, task=True returns error/raises McpError) - Fixed prompt task handler to check hasattr(prompt, "task_config") instead of isinstance(prompt, FunctionPrompt) so it applies to ProxyPrompt too - Added test suites for both proxy and mount task behavior Also includes minor fixes: - Fixed result.meta_ -> result.meta in ProxyTool.run() - Fixed client handling of returned_immediately without taskId - Bumped pydocket>=0.15.2 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| conftest.py | ||
| test_progress_dependency.py | ||
| test_server_tasks_parameter.py | ||
| test_sync_function_task_disabled.py | ||
| test_task_capabilities.py | ||
| test_task_config_modes.py | ||
| test_task_dependencies.py | ||
| test_task_metadata.py | ||
| test_task_methods.py | ||
| test_task_mount.py | ||
| test_task_prompts.py | ||
| test_task_protocol.py | ||
| test_task_proxy.py | ||
| test_task_resources.py | ||
| test_task_return_types.py | ||
| test_task_security.py | ||
| test_task_status_notifications.py | ||
| test_task_tools.py | ||
| test_task_ttl.py | ||