Skip to content

MCP timeout capped to 5 minutes. #39584

Description

@viperx1

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

  1. Start mcp server in local network
  2. Start opencode using above config.

Screenshot and/or share link

No response

Operating System

Windows 10/WSL

Terminal

PowerShell 7.6.4

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions