feat: add 'never' option for mcp_timeout to disable timeout #6109

Open
opened 2026-02-16 18:00:35 -05:00 by yindo · 0 comments
Owner

Originally created by @Skyline-23 on GitHub (Jan 15, 2026).

Originally assigned to: @thdxr on GitHub.

Problem

Currently, mcp_timeout in experimental config only accepts positive integers (milliseconds). There's no way to completely disable timeout for MCP tool calls.

Some MCP tools may take a long time to execute (e.g., long-running browser automation, complex code analysis), and users need an option to disable the timeout entirely.

Proposed Solution

Allow mcp_timeout to accept "never" as a value to disable timeout:

{
  "experimental": {
    "mcp_timeout": "never"
  }
}

Alternatives Considered

  • Using a very large number (e.g., 999999999) - not intuitive
  • A separate boolean flag - adds complexity
Originally created by @Skyline-23 on GitHub (Jan 15, 2026). Originally assigned to: @thdxr on GitHub. ## Problem Currently, `mcp_timeout` in experimental config only accepts positive integers (milliseconds). There's no way to completely disable timeout for MCP tool calls. Some MCP tools may take a long time to execute (e.g., long-running browser automation, complex code analysis), and users need an option to disable the timeout entirely. ## Proposed Solution Allow `mcp_timeout` to accept `"never"` as a value to disable timeout: ```json { "experimental": { "mcp_timeout": "never" } } ``` ## Alternatives Considered - Using a very large number (e.g., `999999999`) - not intuitive - A separate boolean flag - adds complexity
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6109