Skip to main content

fastmcp.cli.tasks

FastMCP tasks CLI for Docket task management.

Functions

check_distributed_backend

Check if Docket is configured with a distributed backend. The CLI worker runs as a separate process, so it needs Redis/Valkey to coordinate with the main server process. Raises:
  • SystemExit: If using memory:// URL

worker

Start an additional worker to process background tasks. Connects to your Docket backend and processes tasks in parallel with any other running workers. Configure via environment variables (FASTMCP_DOCKET_*).