opencode
opencode copied to clipboard
feat(mcp): allow 'never' option for mcp_timeout to disable timeout
Closes #8633
Summary
- Add
"never"option tomcp_timeoutconfig 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 passingundefinedto disable timeout
Usage
{
"experimental": {
"mcp_timeout": "never"
}
}
Or with a specific timeout:
{
"experimental": {
"mcp_timeout": 60000
}
}