anomalyco / anomalyco/opencode

MCP timeout capped to 5 minutes.

Open
#39,584 1 comment 0 reactions 1 assignee View on GitHub

@kitlangton is already working on this.

Since Jul 29, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
Avg merge
7h 2m
Merged PRs (30d)
384

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.