Перейти к содержанию

MCP deployment

Local stdio

uv run job_ftch mcp-server \
  --configs-dir job_ftch/adapters/telegram_bot/config/tenants \
  --transport stdio

--configs-dir is accepted on the mcp-server subcommand (and as a global flag). Prefer JOB_FTCH_CONFIGS_DIR in service environments. For offline smoke, use a temp tenant with local_fixture + heuristic LLM settings rather than live bot tenants.

Local HTTP

uv run job_ftch mcp-server \
  --configs-dir job_ftch/adapters/telegram_bot/config/tenants \
  --transport http \
  --host 127.0.0.1 \
  --port 8000

Docker

Build the MCP image from the adapter Dockerfile:

docker build -f job_ftch/adapters/mcp/Dockerfile -t job-ftch-mcp .
docker run --rm -p 8000:8000 --env-file .env.dev \
  -v "%cd%/job_ftch/adapters/telegram_bot/config/tenants:/app/config" \
  job-ftch-mcp

Inside the image, /app/config is the tenant config directory.

systemd

Run the same CLI command under a dedicated service user. Set JOB_FTCH_CONFIGS_DIR instead of hardcoding --configs-dir if the service file already manages environment variables.