HARNESS_ACCOUNT_ID
optional
Harness account ID; usually auto-extracted from PAT/SAT tokens that embed it.
HARNESS_BASE_URL
optional
Harness API/UI base URL, defaults to https://app.harness.io; set for private environments such as harness0.
HARNESS_ORG
optional
Default org ID used when org_id is not passed per tool call; optional.
HARNESS_PROJECT
optional
Default project ID used when project_id is not passed per tool call; optional.
HARNESS_MCP_MODE
optional
Deployment mode: single-user (default) or multi-user (per-session credentials over HTTP).
HARNESS_READ_ONLY
optional
Set to true to block all mutating operations; only list and get are allowed, useful for shared/demo environments.
HARNESS_TOOLSETS
optional
Comma-separated toolset filter list controlling which resource categories are exposed; default toolsets load when empty.
HARNESS_FME_BASE_URL
optional
Split/FME Admin API base URL, defaults to https://api.split.io.
HARNESS_SEARCH_PROVIDER
optional
Semantic search backend for harness_search: local (default), remote, or none.
HARNESS_SEARCH_SERVICE_URL
optional
Base URL of the remote search service; required when HARNESS_SEARCH_PROVIDER=remote.
HARNESS_AUTO_APPROVE_RISK
optional
Risk-based auto-approval threshold (none/low_write/medium_write/high_write/all) for autonomous workflows.
HARNESS_ALLOW_HTTP
optional
Allows a non-HTTPS HARNESS_BASE_URL; only for local development.
HARNESS_PIPELINE_VERSION
optional
Pipeline YAML version (0 or 1, Alpha) choosing between pipeline and pipeline_v1 resources.
HARNESS_MCP_ALLOWED_HOSTS
optional
Hostnames allowed by HTTP Host-header validation for DNS-rebinding protection.
HARNESS_MCP_ALLOW_UNAUTHENTICATED_HTTP
optional
Explicitly allows unauthenticated HTTP on non-loopback binds; use with caution.
HARNESS_API_TIMEOUT_MS
optional
HTTP request timeout in milliseconds for Harness APIs, default 30000.
HARNESS_MAX_RETRIES
optional
Retry count for transient failures (429/5xx), default 3.
HARNESS_MAX_BODY_SIZE_MB
optional
Max HTTP request body size in MB for http transport, default 10.
HARNESS_RATE_LIMIT_RPS
optional
Client-side request throttle (requests per second) to Harness APIs, default 10.
LOG_LEVEL
optional
Log verbosity: debug/info/warn/error, default info.
HARNESS_MCP_LOG_FILE
optional
File for stdio disconnect/crash diagnostics, default ~/.claude/harness-mcp.log.
HARNESS_LOG_UNSAFE_BODIES
optional
Include raw request/response bodies in logs; off by default since bodies may contain secrets.
HARNESS_AUDIT_FILE
optional
File for appending newline-delimited JSON audit events for local collection.
HARNESS_AUDIT_WEBHOOK_URL
optional
HTTPS endpoint receiving batched audit events.
HARNESS_AUDIT_WEBHOOK_BATCH_SIZE
optional
Number of audit events batched before webhook flush, default 10.
HARNESS_AUDIT_WEBHOOK_FLUSH_MS
optional
Max time to hold audit events before webhook flush, default 5000.
OTEL_EXPORTER_OTLP_ENDPOINT
optional
When set, enables OpenTelemetry audit spans (optional OTel packages must be installed).
HARNESS_HF_CACHE_DIR
optional
Cache directory for the HuggingFace model used by the local search provider, default /tmp/hf-cache.
HARNESS_DIAGNOSE_LOG_FETCH_CONCURRENCY
optional
Max concurrent log-blob downloads issued by harness_diagnose, default 3.
HARNESS_MCP_TRUST_PROXY
optional
Number of reverse proxy hops to trust for client IP resolution, default 0.
HARNESS_SKIP_ELICITATION
optional
Deprecated — use HARNESS_AUTO_APPROVE_RISK=all instead; kept for backward compatibility.