.env.example
Language Dotenv2.3 KB45 lines
# ---------------------------------------------------------------------------# Bitrix24 MCP server configuration. Copy to .env and fill in.# After editing: chmod 600 .env (the webhook URL is a password; see README).# ---------------------------------------------------------------------------# REQUIRED: your Bitrix24 inbound webhook URL.# Get it from: Bitrix24 → Applications → Developer resources → Other → Inbound webhook# Format: https://yourcompany.bitrix24.com/rest/USER_ID/WEBHOOK_TOKEN/# Enable these scopes on the webhook: crm, user_brief, task, telephony, imopenlines, imBITRIX_WEBHOOK_URL=# Local timezone for date windows and display (IANA name). Default America/Chicago.BITRIX_LOCAL_TZ=America/Chicago# --- Writes -----------------------------------------------------------------# Master write switch. "off" makes the server fully read-only. Default on.BITRIX_WRITES=on# Deal writes are locked to these funnels (comma-separated). A deal outside them# is refused by every deal-write tool. Prefer categoryIds: they survive Bitrix# pipeline renames (a renamed funnel referenced by name silently loses writes):# 24 = Partner Tier Upgrade# 26 = Winback 36 = Quarterly Check-In Flow# Run list_pipelines to see current names/ids. Names are still accepted.BITRIX_WRITE_FUNNELS=24,26,36# Contact/company create+update sub-switch (only meaningful when BITRIX_WRITES=on).# Default on; set off to keep parties read-only while leaving deal/lead writes on.BITRIX_WRITE_PARTIES=on# --- Logging / opsec --------------------------------------------------------# How much of each tool call's arguments to persist in logs/calls.jsonl:# redact (default): mask emails/phones AND blank customer names/free text# full: log args verbatim (trusted single-operator machines only)# off: never log args (tool name + result summary only)BITRIX_LOG_ARGS=redact# Roll calls.jsonl over once it passes this many bytes (0 = never). Default 5 MiB.BITRIX_LOG_MAX_BYTES=5242880# --- Telephony transcription (opt-in, heavy) --------------------------------# Enable local call transcription via mlx-whisper (pip install mlx-whisper).# Bitrix's own CoPilot transcripts are NOT available over REST; this downloads# the call recording and transcribes it on this machine. Default off.BITRIX_TRANSCRIBE=off