fastmcp/docs/clients
Chris Guidry 66aaf420c9
[2.14] SEP-1686 tasks (#2378)
* Implement MCP background tasks (SEP-1686) using Docket

Adds support for background task execution via the MCP task protocol,
powered by Docket for task queue management.

- Tools, resources, and prompts can be marked with `task=True` to run async
- Progress dependency for tracking task progress
- CurrentDocket and CurrentWorker dependencies for advanced use cases
- Client API with `.call_tool(..., task=True)` returns task handles
- Task status notifications via subscriptions
- CLI worker command for distributed task processing

Configuration via environment:
- FASTMCP_ENABLE_DOCKET=true
- FASTMCP_ENABLE_TASKS=true
- FASTMCP_DOCKET_URL=redis://... (or memory:// for single-process)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Fix tasks example import (TaskStatusResponse → GetTaskResult)

The example was using a non-existent TaskStatusResponse type.
Updated to use mcp.types.GetTaskResult which is what the
on_status_change callback actually receives.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Fix env var name in Docket error messages

The error messages referenced FASTMCP_EXPERIMENTAL_ENABLE_DOCKET but the
actual setting is FASTMCP_ENABLE_DOCKET.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Remove deprecated code re-added from pre-#2329 branch

- Remove ExtendedEnvSettingsSource (FASTMCP_SERVER_ prefix support)
- Remove dependencies parameter from FastMCP.__init__

* Replace fakeredis git pin with PyPI release

* Remove redundant fakeredis dev dep (pulled via pydocket)

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Jeremiah Lowin <153965+jlowin@users.noreply.github.com>
2025-12-04 20:10:35 -05:00
..
auth Add maturity warnings for py-key-value backends 2025-10-29 21:43:31 +00:00
client.mdx Add manual initialization control to Client (#2355) 2025-11-03 16:01:30 -05:00
elicitation.mdx Add storage backend documentation (#2137) 2025-10-19 19:24:13 -04:00
logging.mdx docs(client/logging): reflect corrected default log level mapping (#1403) 2025-08-08 11:49:58 -04:00
messages.mdx Fix version badge for messages 2025-06-26 09:40:49 -04:00
progress.mdx Clean up parameter documentation 2025-06-22 20:59:53 -04:00
prompts.mdx Add _fastmcp meta namespace (#1290) 2025-07-29 15:07:53 -04:00
resources.mdx Add _fastmcp meta namespace (#1290) 2025-07-29 15:07:53 -04:00
roots.mdx Update docs 2025-06-22 13:34:36 -04:00
sampling.mdx Move sampling fallback handler docs to server section (#2163) 2025-10-21 10:02:11 -04:00
tasks.mdx [2.14] SEP-1686 tasks (#2378) 2025-12-04 20:10:35 -05:00
tools.mdx Document client meta parameter for sending ancillary request data (#2367) 2025-11-04 11:32:31 -05:00
transports.mdx Add UV Transport (#1270) 2025-07-28 15:41:36 -04:00