Configuration

Environment variables

Calendar providers

VariableDescriptionRequired
GOOGLE_CLIENT_IDGoogle OAuth 2.0 client IDFor Google Calendar
GOOGLE_CLIENT_SECRETGoogle OAuth 2.0 client secretFor Google Calendar
OUTLOOK_CLIENT_IDMicrosoft OAuth 2.0 client IDFor Outlook
OUTLOOK_CLIENT_SECRETMicrosoft OAuth 2.0 client secretFor Outlook
CALDAV_URLCalDAV server URLFor CalDAV
CALDAV_USERNAMECalDAV usernameFor CalDAV
CALDAV_PASSWORDCalDAV passwordFor CalDAV

Platform Mode

VariableDescriptionRequired
DATABASE_URLPostgreSQL connection stringEnables Platform Mode
REDIS_URLSComma-separated Redis URLsOptional (distributed locking)
API_BASE_URLPlatform API URLFor Platform-only tools
API_KEYPlatform API keyFor authenticated access

Server

VariableDescriptionDefault
TRANSPORTMCP transport: stdio or httpstdio
PORTHTTP server port (when TRANSPORT=http)3000
LOG_LEVELLogging level: error, warn, info, debuginfo

Scheduling windows

Control when bookings are allowed:

VariableDescriptionDefault
MAX_ADVANCE_DAYSMaximum days in advance a booking can be made90
MIN_NOTICE_HOURSMinimum hours notice before a booking1

Output format

All data tools return TOON by default. Override per-call with format: "json" or set globally:

VariableDescriptionDefault
DEFAULT_FORMATDefault output format: toon or jsontoon

Mode detection

Temporal Cortex auto-detects its operating mode at startup:

  • Local Mode (default): No DATABASE_URL set. All 15 core tools available. In-process locking. Local credential storage.
  • Platform Mode: DATABASE_URL set. All 18 tools available. Distributed Redlock (if REDIS_URLS set). Managed OAuth. Usage metering.

No configuration flag needed — the presence of DATABASE_URL determines the mode.