mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-23 14:04:18 +02:00
Server runs over HTTP on the default memory:// backend (no Redis needed); the client drives it transparently, via an explicit handle, and with a parallel command that fires several tasks at once to show them overlap. A 1s poll interval keeps the demo snappy.
11 lines
559 B
Bash
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
|