Description
Timeout value is capped to 5 minutes. When setting it to 1200000 (20 minutes) like below, calls timeout after 5 minutes. Alternatively setting it to 1 correctly caps to 1 ms effectively making mcp unusable.
chris@DESKTOP-xxx:/.config/opencode$ cat opencode.jsonc
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"xxx": {
"type": "remote",
"url": "http://192.168.0.2:8081",
"enabled": true,
"timeout": 1200000,
"headers": {
"Authorization": "Bearer {file:/.config/opencode/.secrets/xxx}"
}
},
"github": {
"type": "remote",
"url": "https://api.githubcopilot.com/mcp/",
"enabled": true,
"oauth": false,
"headers": {
"Authorization": "Bearer {file:/.config/opencode/.secrets/github-pat}"
}
}
}
}
chris@DESKTOP-xxx:/.config/opencode$
Plugins
none
OpenCode version
1.18.9
Steps to reproduce
- Start mcp server in local network
- Start opencode using above config.
Screenshot and/or share link
No response
Operating System
Windows 10/WSL
Terminal
PowerShell 7.6.4
Description
Timeout value is capped to 5 minutes. When setting it to 1200000 (20 minutes) like below, calls timeout after 5 minutes. Alternatively setting it to 1 correctly caps to 1 ms effectively making mcp unusable.
chris@DESKTOP-xxx:
/.config/opencode$ cat opencode.jsonc/.config/opencode/.secrets/xxx}"{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"xxx": {
"type": "remote",
"url": "http://192.168.0.2:8081",
"enabled": true,
"timeout": 1200000,
"headers": {
"Authorization": "Bearer {file:
}
},
"github": {
"type": "remote",
"url": "https://api.githubcopilot.com/mcp/",
"enabled": true,
"oauth": false,
"headers": {
"Authorization": "Bearer {file:
/.config/opencode/.secrets/github-pat}"/.config/opencode$}
}
}
}
chris@DESKTOP-xxx:
Plugins
none
OpenCode version
1.18.9
Steps to reproduce
Screenshot and/or share link
No response
Operating System
Windows 10/WSL
Terminal
PowerShell 7.6.4