Environment variable reference
This is the complete runtime contract for discord-mcp. Every setting is read when
the server starts; invalid schema-backed values make serve exit with a precise
error and are reported by discord-mcp doctor.
For deployment decisions and a safe starting point, see Configure discord-mcp.
Browse by concern
Section titled “Browse by concern” Access and scope Bot token, default guild, and the tool-category allowlist.
Safety The dry-run gate that protects confirmation-gated tools.
Runtime Gateway subscriptions and server logging.
Observability OpenTelemetry service, exporter, and sampling controls.
Resilience Retry, timeout, circuit-breaker, and concurrency settings.
Audit logging Mutation audit switch, sink, and file path.
Source and validation
Section titled “Source and validation”Most variables are defined in the
Zod schema.
The exception is MCP_DRY_RUN: the confirmation precondition reads it directly
from process.env, so doctor cannot validate it.