[PR #8630] feat(mcp): allow 'never' option for mcp_timeout to disable timeout #12814

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

Original Pull Request: https://github.com/anomalyco/opencode/pull/8630

State: open
Merged: No


Closes #8633

Summary

  • Add "never" option to mcp_timeout config to allow disabling timeout for MCP tool calls
  • Previously only positive integers (milliseconds) were supported

Changes

  • config.ts: Update schema to accept "never" | number
  • mcp/index.ts: Handle "never" by passing undefined to disable timeout

Usage

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

Or with a specific timeout:

{
  "experimental": {
    "mcp_timeout": 60000
  }
}
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/8630 **State:** open **Merged:** No --- Closes #8633 ## Summary - Add `"never"` option to `mcp_timeout` config to allow disabling timeout for MCP tool calls - Previously only positive integers (milliseconds) were supported ## Changes - `config.ts`: Update schema to accept `"never" | number` - `mcp/index.ts`: Handle `"never"` by passing `undefined` to disable timeout ## Usage ```json { "experimental": { "mcp_timeout": "never" } } ``` Or with a specific timeout: ```json { "experimental": { "mcp_timeout": 60000 } } ```
yindo added the pull-request label 2026-02-16 18:17:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12814