Zod schema for boolean environment variables.
Accepts both native booleans (from config files) and string values from process.env. Only "true" (case-insensitive) maps to true, everything else maps to false.
"true"
true
false
Default value when the env var is not set
Zod schema that outputs a boolean
boolean
// In env schema:OTEL_ENABLED: booleanFromEnv(false),MCP_LEGACY_SSE_ENABLED: booleanFromEnv(false), Copy
// In env schema:OTEL_ENABLED: booleanFromEnv(false),MCP_LEGACY_SSE_ENABLED: booleanFromEnv(false),
Zod schema for boolean environment variables.
Accepts both native booleans (from config files) and string values from process.env. Only
"true"(case-insensitive) maps totrue, everything else maps tofalse.