mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-28 02:10:38 +02:00
Docket provides background task execution and is now always available for all FastMCP servers. Only `enable_tasks` remains to control the SEP-1686 task protocol support. Changes: - Remove `enable_docket` setting and related validation - Docket/Worker lifecycle is always active in server lifespan - CurrentDocket and CurrentWorker dependencies work without config - Add server readiness signaling via `_started` event - Fix test timing issues with proper port probing 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
13 lines
506 B
Bash
13 lines
506 B
Bash
# FastMCP Tasks Example Environment Configuration
|
|
# This file is loaded by direnv (https://direnv.net/) when you cd into this directory
|
|
# Run `direnv allow` to enable automatic environment loading
|
|
|
|
# Enable MCP SEP-1686 task protocol support
|
|
export FASTMCP_ENABLE_TASKS=true
|
|
|
|
# Configure Docket backend URL
|
|
# Use Redis backend (requires docker-compose up)
|
|
export FASTMCP_DOCKET_URL=redis://localhost:24242/0
|
|
|
|
# Or uncomment to use memory:// for single-process testing
|
|
# export FASTMCP_DOCKET_URL=memory://
|