Answer: To turn off built-in session tools, add server-level deny rules for the Claude Code Remote server's three names (mcp__Claude_Code_Remote, mcp__claude-code-remote, mcp__bf7c680d-5fdc-5ef4-b4a0-abadb619bf0a) to your settings, or add those names without the mcp__ prefix as serverName entries under deniedMcpServers to block the server from connecting. To wait for MCP servers before the first turn, the session waits up to 5 seconds at startup (for alwaysLoad: true servers or all servers when MCP_CONNECTION_NONBLOCKING=0) and up to 2 seconds on the first turn for stdio servers, adjustable with CLAUDE_CODE_MCP_STARTUP_WAIT_MS. Status: Confirmed Entry: tool/claude-code/integrations/mcp-servers-self-hosted-sessions Revision: 1 Digest: sha256:322d33851098616e (changes whenever the content changes) Timeline: Created: 2026-11-13T03:05:38Z Last changed: 2026-11-13T03:05:38Z Last verified: 2026-11-20T12:24:53Z Next check: 2026-11-21T12:24:53Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Unit | Source | As of startup wait default | 5 seconds | seconds | [1] | 2026-11-20 first turn wait default | 2 seconds | seconds | [1] | 2026-11-20 first turn wait env var | CLAUDE_CODE_MCP_STARTUP_WAIT_MS | | [1] | 2026-11-20 startup timeout env var | MCP_CONNECT_TIMEOUT_MS | | [1] | 2026-11-20 nonblocking env var | MCP_CONNECTION_NONBLOCKING=0 | | [1] | 2026-11-20 deny rule name 1 | mcp__Claude_Code_Remote | | [1] | 2026-11-20 deny rule name 2 | mcp__claude-code-remote | | [1] | 2026-11-20 deny rule name 3 | mcp__bf7c680d-5fdc-5ef4-b4a0-abadb619bf0a | | [1] | 2026-11-20 Sources: [1] Anthropic. "Customize sessions in self-hosted environments". https://code.claude.com/docs/en/self-hosted-environments-configuration.md Role: primary. Accessed: 2026-11-20T12:24:53Z Quote: "the session waits up to 5 seconds by default for an HTTP or SSE server whose entry sets" (Supports: startup wait default) Quote: "the first turn waits up to 2 seconds for stdio servers that are still connecting" (Supports: first turn wait default) Quote: "set [`CLAUDE_CODE_MCP_STARTUP_WAIT_MS`](https://code.claude.com/docs/en/env-vars) in the runner's environment" (Supports: first turn wait env var) Quote: "[`MCP_CONNECT_TIMEOUT_MS`](https://code.claude.com/docs/en/env-vars) changes the 5-second default." (Supports: startup timeout env var) Quote: "for all servers when you set [`MCP_CONNECTION_NONBLOCKING=0`](https://code.claude.com/docs/en/env-vars) in the runner's environment" (Supports: nonblocking env var) Quote: ""mcp__Claude_Code_Remote"," (Supports: deny rule name 1) Quote: ""mcp__claude-code-remote"," (Supports: deny rule name 2) Quote: ""mcp__bf7c680d-5fdc-5ef4-b4a0-abadb619bf0a"" (Supports: deny rule name 3) Published: 2026-11-20T03:01:10Z Snapshot SHA-256: 97cb122d0eb49028135f9c375d50d3b63c690e9e9c83d350930a583500d2d828 (captured 2026-11-20T12:24:49Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:24:53Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:24:53Z Last attempt: 2026-11-20T12:24:53Z Notes and limitations: Extracted automatically from a single official source (section "MCP servers"). Related: https://latestn.com/tool/claude-code/integrations/mcp-transport-types What transport types does Claude Code Agent SDK support for MCP servers (stdio, HTTP/SSE, SDK MCP)? https://latestn.com/tool/claude-code/integrations/migrate-python-project How do I migrate a Python project from the Claude Code SDK to the Claude Agent SDK? https://latestn.com/tool/claude-code/integrations/migrate-typescript-project How do I migrate a TypeScript or JavaScript project from the Claude Code SDK to the Claude Agent SDK? https://latestn.com/tool/claude-code/integrations/install-capture-hook How do I install the capture hook on my test runner for Claude Code self-hosted environment testing? https://latestn.com/tool/claude-code/integrations/manage-code-review-repositories How do I add repositories or turn off Code Review for a repository in Claude? https://latestn.com/tool/claude-code/integrations/mcp-server-sign-in How do I connect an MCP server that requires sign-in in Claude Code? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:05:38Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/integrations/mcp-servers-self-hosted-sessions/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/integrations/mcp-servers-self-hosted-sessions POST: https://latestn.com/dispute/tool/claude-code/integrations/mcp-servers-self-hosted-sessions with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/integrations/mcp-servers-self-hosted-sessions?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I turn off built-in session tools or wait for MCP servers before the first turn in Claude Code self-hosted sessions? Revision 1, last verified 2026-11-20T12:24:53Z. https://latestn.com/tool/claude-code/integrations/mcp-servers-self-hosted-sessions (accessed 2026-11-21T09:58:35Z). @misc{LatestN_tool_claude_code_integrations_mcp_servers_self_hosted_sessions_r1, title = {How do I turn off built-in session tools or wait for MCP servers before the first turn in Claude Code self-hosted sessions?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/integrations/mcp-servers-self-hosted-sessions}}, note = {Revision 1; digest sha256:322d33851098616e; last verified 2026-11-20T12:24:53Z; accessed 2026-11-21T09:58:35Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/integrations/mcp-servers-self-hosted-sessions