fastmcp/examples/tasks/.envrc

11 lines
559 B
Bash

# FastMCP Tasks Example Environment Configuration
# Loaded by direnv (https://direnv.net/) when you cd into this directory.
# Run `direnv allow` to enable automatic loading — or just `source .envrc`.
# In-process worker on an in-memory backend: no Redis, nothing to start.
# This is the default the example runs on.
export FASTMCP_DOCKET_URL=memory://
# For distributed workers across separate processes (the `fastmcp tasks worker`
# CLI), point at Redis instead and run `docker compose up -d` first:
# export FASTMCP_DOCKET_URL=redis://localhost:24242/0