fastmcp/tests/tasks/server
Jeremiah Lowin 19c5c507cc
Address review feedback on SEP-2663 tasks
- Client task support is opt-in via importing fastmcp_tasks (drop the core
  auto-load of companion packages); a plain Client never advertises tasks.
- A worker restores the submitting caller's auth token and headers from the
  task snapshot into the standard ambient context, so get_access_token() /
  get_http_headers() work in a distributed worker with no new core hooks.
- worker_cli validates the loaded extension's resolved backend, not env defaults,
  so a constructor-configured Redis worker starts.
- Thread the per-call read timeout through task polling; bound ToolTask.wait by
  its deadline; set_elicitation_callback rebuilds internal extensions so a
  later-set handler answers in-task input.
- README imports TaskConfig from fastmcp.utilities.tasks.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-22 19:14:16 -04:00
..
__init__.py Move task subsystem to fastmcp-tasks package, disconnect SEP-1686 wire from core 2026-07-21 21:51:45 -04:00
conftest.py Implement SEP-2663 tasks extension: TasksExtension, poll-based task lifecycle 2026-07-21 23:00:38 -04:00
test_concurrent_dependencies.py Fix ty diagnostics in task tests, scope ty exclusion to client-task files 2026-07-21 23:10:00 -04:00
test_context_background_task.py Close SEP-2663 compliance gaps: -32003 on task methods, raised-error semantics, update race 2026-07-22 16:59:13 -04:00
test_custom_subclass_tasks.py Fix ty diagnostics in task tests, scope ty exclusion to client-task files 2026-07-21 23:10:00 -04:00
test_extension.py Close SEP-2663 compliance gaps: -32003 on task methods, raised-error semantics, update race 2026-07-22 16:59:13 -04:00
test_guard_reentrant.py Close SEP-2663 compliance gaps: -32003 on task methods, raised-error semantics, update race 2026-07-22 16:59:13 -04:00
test_progress_dependency.py Fix ty diagnostics in task tests, scope ty exclusion to client-task files 2026-07-21 23:10:00 -04:00
test_reenter_shutdown.py Rebuild guard tasks as end-and-reenter; remove imperative in-task elicit 2026-07-22 12:38:46 -04:00
test_server_tasks_parameter.py Fix ty diagnostics in task tests, scope ty exclusion to client-task files 2026-07-21 23:10:00 -04:00
test_snapshot_restore.py Address review feedback on SEP-2663 tasks 2026-07-22 19:14:16 -04:00
test_sync_function_task_disabled.py Implement SEP-2663 tasks extension: TasksExtension, poll-based task lifecycle 2026-07-21 23:00:38 -04:00
test_task_capabilities.py Implement SEP-2663 tasks extension: TasksExtension, poll-based task lifecycle 2026-07-21 23:00:38 -04:00
test_task_config.py Fix ty diagnostics in task tests, scope ty exclusion to client-task files 2026-07-21 23:10:00 -04:00
test_task_dependencies.py Fix ty diagnostics in task tests, scope ty exclusion to client-task files 2026-07-21 23:10:00 -04:00
test_task_keys.py Move task subsystem to fastmcp-tasks package, disconnect SEP-1686 wire from core 2026-07-21 21:51:45 -04:00
test_task_methods.py Close SEP-2663 compliance gaps: -32003 on task methods, raised-error semantics, update race 2026-07-22 16:59:13 -04:00
test_task_mount.py Fix ty diagnostics in task tests, scope ty exclusion to client-task files 2026-07-21 23:10:00 -04:00
test_task_protocol.py Close SEP-2663 compliance gaps: -32003 on task methods, raised-error semantics, update race 2026-07-22 16:59:13 -04:00
test_task_proxy.py Implement SEP-2663 tasks extension: TasksExtension, poll-based task lifecycle 2026-07-21 23:00:38 -04:00
test_task_return_types.py Implement SEP-2663 tasks extension: TasksExtension, poll-based task lifecycle 2026-07-21 23:00:38 -04:00
test_task_security.py Fix ty diagnostics in task tests, scope ty exclusion to client-task files 2026-07-21 23:10:00 -04:00
test_task_tools.py Fix ty diagnostics in task tests, scope ty exclusion to client-task files 2026-07-21 23:10:00 -04:00
test_task_ttl.py Implement SEP-2663 tasks extension: TasksExtension, poll-based task lifecycle 2026-07-21 23:00:38 -04:00
test_wire_models.py Add server-side claim production for tasks; emit resultType discriminator 2026-07-22 08:03:32 -04:00
test_wire_production.py Rebuild guard tasks as end-and-reenter; remove imperative in-task elicit 2026-07-22 12:38:46 -04:00