fastmcp/docs
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
..
.cursor/rules Clean up parameter documentation 2025-06-22 20:59:53 -04:00
assets Support custom server name, icons, and link in OAuth Proxy consent page (#2135) 2025-10-18 11:49:26 -04:00
clients [2.14] SEP-1686 tasks (#2378) 2025-12-04 20:10:35 -05:00
community Update docs (#2094) 2025-10-14 16:38:21 -07:00
css Update wordmark (#1832) 2025-09-15 18:14:37 -04:00
deployment Fix RFC 8414 path-aware authorization server metadata discovery (#2533) 2025-12-03 19:16:59 -05:00
development docs: fix run_server_async documentation (#2423) 2025-11-15 12:07:22 -05:00
getting-started Pin Cyclopts to v4.0.0 + compliance note (#2354) 2025-11-03 18:37:12 -05:00
integrations Add supabase docs (#2030) 2025-12-04 18:25:57 -05:00
patterns docs: clarify pytest-asyncio dependency and asyncio mode configuration (#2399) 2025-11-15 10:34:29 -05:00
public/schemas/fastmcp.json chore: Update fastmcp.json schema (#1955) 2025-09-29 20:12:24 -04:00
python-sdk Switch to new OpenAPI parser as default (#2513) 2025-12-01 20:29:18 -05:00
servers [2.14] SEP-1686 tasks (#2378) 2025-12-04 20:10:35 -05:00
snippets Add MCP json output from CLI (#1056) 2025-07-06 10:23:50 -04:00
tutorials Remove trailing slashes from MCP endpoint URLs in docs (#2277) 2025-10-27 10:36:47 -04:00
.ccignore Add comprehensive OAuth 2.1 authentication system with WorkOS integration (#1327) 2025-08-01 17:06:55 -04:00
changelog.mdx 2.14 deprecation removals (#2329) 2025-12-01 14:11:00 -05:00
docs.json [2.14] SEP-1686 tasks (#2378) 2025-12-04 20:10:35 -05:00
updates.mdx Stage 2.13.0 updates (#2252) 2025-10-25 08:52:21 -04:00