CLAUDE_CODE_MCP_CONNECTOR_PREWAIT_MS
Updated by Alex Sorokoletov
CLAUDE_CODE_MCP_CONNECTOR_PREWAIT_MS is a Claude Code environment variable. Added between v2.1.269 and v2.1.283 and still present in v2.1.295. It is not in the official reference.
| Status | Present in v2.1.295 |
|---|---|
| Added | Added between v2.1.269 and v2.1.283 |
| Category | Network and proxy |
| Official docs | Not listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export CLAUDE_CODE_MCP_CONNECTOR_PREWAIT_MS=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"CLAUDE_CODE_MCP_CONNECTOR_PREWAIT_MS": "<value>"
}
}Related variables
CLAUDE_CODE_MCP_SERVER_URL: The companion to MCP_SERVER_NAME, providing the server endpoint URL.CLAUDE_CODE_MCP_TOOL_IDLE_TIMEOUTMCP_CONNECT_TIMEOUT_MSMCP_CONNECTION_NONBLOCKING: Make MCP connections non-blocking.MCP_REMOTE_SERVER_CONNECTION_BATCH_SIZE: Remote MCP connection batch size.MCP_SERVER_CONNECTION_BATCH_SIZE: Concurrent MCP server connections.MCP_TIMEOUT: MCP server connection timeout.MCP_TOOL_TIMEOUT: Individual MCP tool execution timeout.
Frequently asked questions
Which Claude Code version has CLAUDE_CODE_MCP_CONNECTOR_PREWAIT_MS?
Added between v2.1.269 and v2.1.283 and still present in v2.1.295.
How do I set CLAUDE_CODE_MCP_CONNECTOR_PREWAIT_MS?
Export it before starting Claude Code (export CLAUDE_CODE_MCP_CONNECTOR_PREWAIT_MS=value), or add it to the "env" object in ~/.claude/settings.json to apply it to every session.
All variables, searchable: Claude Code environment variables.