{"name":"CLAUDE_CODE_MCP_TOOL_DISCOVERY","slug":"claude-code-mcp-tool-discovery","family":"env","title":"Environment variables","noun":"environment variable","description":"Setting CLAUDE_CODE_MCP_TOOL_DISCOVERY makes Claude Code ask suitable MCP servers for a tool search capability","description_source":"entry","described_by":{"version":"2.1.333","anchor":"mcp-tool-discovery-tool-search-negotiated-per-server-behi"},"presence":{"first_seen":"2.1.333","removed_in":null,"in_current_build":true,"newest_mined":"2.1.336","builds":4,"mined_builds":175,"first_cited":{"version":"2.1.333","released_at":"2026-11-30 19:04:51","spans":1}},"aliases":[],"entries":[{"version":"2.1.333","anchor":"mcp-tool-discovery-tool-search-negotiated-per-server-behi","heading":"MCP servers can be asked for tool search, behind an environment variable","line":"Setting CLAUDE_CODE_MCP_TOOL_DISCOVERY makes Claude Code ask suitable MCP servers for a tool search capability","released_at":"2026-11-30 19:04:51","reason":"found in this entry's text"}],"entries_total":1,"docs":[],"docs_total":0,"gates":[],"related":[{"name":"CLAUDE_CODE_MCP_TOOL_IDLE_TIMEOUT","slug":"claude-code-mcp-tool-idle-timeout","description":"Idle timeout in milliseconds for MCP tool calls. When a stdio, HTTP, SSE, WebSocket, or [claude.ai connector](\/docs\/en\/mcp#use-mcp-servers-from-claude-ai) MCP server sends no response and no progress notification for this long, the tool call aborts with an error instead of waiting for the overall `MCP_TOOL_TIMEOUT`. Overrides the per-transport defaults of 300000 (5 minutes) for network servers and 1800000 (30 minutes) for stdio servers. Set to `0` to disable the idle check. Values below 1000 are raised to one second, and the value is capped at the effective `MCP_TOOL_TIMEOUT`. A per-server `timeout` in `.mcp.json` of at least 1000 raises that server's idle window to at least the `timeout` value. Doesn't apply to IDE servers or SDK in-process servers. Requires Claude Code v2.1.187 or later. Before v2.1.203, stdio servers were exempt from the idle timeout"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-mcp-tool-discovery","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}