RE: MCP Servers - Potential issue? #4212

Closed
opened 2026-02-16 17:43:02 -05:00 by yindo · 5 comments
Owner

Originally created by @mynameistito on GitHub (Jan 5, 2026).

Originally assigned to: @rekram1-node on GitHub.

Servers that were previously working are now returning Operation timed out after 5000ms. This affects local stdio servers (like chrome-devtools, context7, sequential-thinking) and seems to affect the general stability of the MCP client.

Additionally, the github server is returning an SSE error (400), and sentry is reporting a missing OAuth state, suggesting a potential broader issue with state management or process spawning in the new version.

Steps to Reproduce

  1. Define multiple MCP servers in opencode.json (mix of local uv python scripts, node scripts, and SSE endpoints).
  2. Start a new OpenCode session.
  3. Observe the "MCP" section in the sidebar/logs.
  4. Wait for initialization.

Expected Behavior

MCP servers should initialize within the default timeout window, or the timeout should be configurable/longer. Servers that were working in the previous version should continue to connect.

Actual Behavior

  • Timeouts: Most local servers fail with: Operation timed out after 5000ms.
  • GitHub SSE: Fails with SSE error: Non-200 status code (400).
  • Sentry: Fails with No OAuth state saved for MCP server: sentry.

Screenshots / Logs

Session Screenshot:

Image

▼ MCP
• chrome-devtools: Operation timed out after 5000ms
• cloudflare-docs: Operation timed out after 5000ms
• cloudflare-observability: Operation timed out after 5000ms
• context7: Operation timed out after 5000ms
• github: SSE error: Non-200 status code (400)
• next-devtools: Operation timed out after 5000ms
• playwriter: Operation timed out after 5000ms
• sequential-thinking: Operation timed out after 5000ms
• sideways: Operation timed out after 5000ms


## **Configuration**
My `opencode.json` configuration can be viewed here:
https://gist.github.com/mynameistito/94d0f59b11bbb45ec3fc1193a30f0c5d

## **Environment**
*   **OS:** Windows 10
*   **OpenCode Version:** v1.1.1

## **Additional Context**
*   This issue appeared I assume following the update to v1.1.1.
Originally created by @mynameistito on GitHub (Jan 5, 2026). Originally assigned to: @rekram1-node on GitHub. Servers that were previously working are now returning `Operation timed out after 5000ms`. This affects local `stdio` servers (like `chrome-devtools`, `context7`, `sequential-thinking`) and seems to affect the general stability of the MCP client. Additionally, the `github` server is returning an SSE error (`400`), and `sentry` is reporting a missing OAuth state, suggesting a potential broader issue with state management or process spawning in the new version. ## **Steps to Reproduce** 1. Define multiple MCP servers in `opencode.json` (mix of local `uv` python scripts, node scripts, and SSE endpoints). 2. Start a new OpenCode session. 3. Observe the "MCP" section in the sidebar/logs. 4. Wait for initialization. ## **Expected Behavior** MCP servers should initialize within the default timeout window, or the timeout should be configurable/longer. Servers that were working in the previous version should continue to connect. ## **Actual Behavior** * **Timeouts:** Most local servers fail with: `Operation timed out after 5000ms`. * **GitHub SSE:** Fails with `SSE error: Non-200 status code (400)`. * **Sentry:** Fails with `No OAuth state saved for MCP server: sentry`. ## **Screenshots / Logs** **Session Screenshot:** <img width="445" height="830" alt="Image" src="https://github.com/user-attachments/assets/e79197a7-9285-4913-a7ed-3a403b3bbbf4" /> ▼ MCP • chrome-devtools: Operation timed out after 5000ms • cloudflare-docs: Operation timed out after 5000ms • cloudflare-observability: Operation timed out after 5000ms • context7: Operation timed out after 5000ms • github: SSE error: Non-200 status code (400) • next-devtools: Operation timed out after 5000ms • playwriter: Operation timed out after 5000ms • sequential-thinking: Operation timed out after 5000ms • sideways: Operation timed out after 5000ms ``` ## **Configuration** My `opencode.json` configuration can be viewed here: https://gist.github.com/mynameistito/94d0f59b11bbb45ec3fc1193a30f0c5d ## **Environment** * **OS:** Windows 10 * **OpenCode Version:** v1.1.1 ## **Additional Context** * This issue appeared I assume following the update to v1.1.1.
yindo added the windows label 2026-02-16 17:43:02 -05:00
yindo closed this issue 2026-02-16 17:43:02 -05:00
Author
Owner

@rekram1-node commented on GitHub (Jan 5, 2026):

I bumped default timeout to 30 seconds instead of 5 but thats pretty crazy it times out for you? You can also overrie the timeout for mcp servers in ur config

@rekram1-node commented on GitHub (Jan 5, 2026): I bumped default timeout to 30 seconds instead of 5 but thats pretty crazy it times out for you? You can also overrie the timeout for mcp servers in ur config
Author
Owner

@mynameistito commented on GitHub (Jan 5, 2026):

I bumped default timeout to 30 seconds instead of 5 but thats pretty crazy it times out for you? You can also overrie the timeout for mcp servers in ur config

Yeah no idea why, but it seems to have cooked out on the latest update.

Um how would I go about adding it to my opencode.json? and changing the timings?

Edit: Disregard found it.

@mynameistito commented on GitHub (Jan 5, 2026): > I bumped default timeout to 30 seconds instead of 5 but thats pretty crazy it times out for you? You can also overrie the timeout for mcp servers in ur config Yeah no idea why, but it seems to have cooked out on the latest update. ~~Um how would I go about adding it to my opencode.json? and changing the timings?~~ Edit: Disregard found it.
Author
Owner

@gasatrya commented on GitHub (Jan 5, 2026):

Terminal inside NeoVim

Image

Standard terminal seems fine (WSL)

Image
@gasatrya commented on GitHub (Jan 5, 2026): Terminal inside NeoVim <img width="485" height="164" alt="Image" src="https://github.com/user-attachments/assets/069516d0-534a-4d98-b559-ef4013a4d563" /> Standard terminal seems fine (WSL) <img width="415" height="207" alt="Image" src="https://github.com/user-attachments/assets/c60fc2ac-1792-485e-8aad-aa02f02a584a" />
Author
Owner

@nelwincatalogo commented on GitHub (Jan 5, 2026):

This is the error i got after debugging:

Image

mcp config:

{
    "shadcn": {
      "type": "local",
      "enabled": true,
      "command": ["npx", "shadcn@latest", "mcp"],
    },
}
Image

OS: Mac

@nelwincatalogo commented on GitHub (Jan 5, 2026): This is the error i got after debugging: <img width="396" height="180" alt="Image" src="https://github.com/user-attachments/assets/1b85bf03-2450-40db-9d02-ed47d0708353" /> mcp config: ```json { "shadcn": { "type": "local", "enabled": true, "command": ["npx", "shadcn@latest", "mcp"], }, } ``` <img width="400" height="60" alt="Image" src="https://github.com/user-attachments/assets/f553faee-d2b5-40b7-8c35-245fad8344d2" /> OS: `Mac`
Author
Owner

@nelwincatalogo commented on GitHub (Jan 6, 2026):

This is working now in version 1.1.2 and above

This is the error i got after debugging:

Image mcp config:

{
"shadcn": {
"type": "local",
"enabled": true,
"command": ["npx", "shadcn@latest", "mcp"],
},
}
Image
OS: Mac

@nelwincatalogo commented on GitHub (Jan 6, 2026): This is working now in version `1.1.2` and above > This is the error i got after debugging: > > <img alt="Image" width="396" height="180" src="https://private-user-images.githubusercontent.com/45314780/531837280-1b85bf03-2450-40db-9d02-ed47d0708353.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Njc2Nzk3ODMsIm5iZiI6MTc2NzY3OTQ4MywicGF0aCI6Ii80NTMxNDc4MC81MzE4MzcyODAtMWI4NWJmMDMtMjQ1MC00MGRiLTlkMDItZWQ0N2QwNzA4MzUzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAxMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMTA2VDA2MDQ0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkyZjFkMTEyZGE4YzIyNmYzOTg1MDNmZTM2ZGFiMDA3ZjE0NzU2MjU4YzRkNTc5ZGY2NTVkZjI2NWFmNTRkNDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.PfGkMi0u-EpVkHh1_sAA0W43iAvs_2QJxPw88aWSFsY"> > mcp config: > > { > "shadcn": { > "type": "local", > "enabled": true, > "command": ["npx", "shadcn@latest", "mcp"], > }, > } > <img alt="Image" width="400" height="60" src="https://private-user-images.githubusercontent.com/45314780/531838013-f553faee-d2b5-40b7-8c35-245fad8344d2.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Njc2Nzk3ODMsIm5iZiI6MTc2NzY3OTQ4MywicGF0aCI6Ii80NTMxNDc4MC81MzE4MzgwMTMtZjU1M2ZhZWUtZDJiNS00MGI3LThjMzUtMjQ1ZmFkODM0NGQyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAxMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMTA2VDA2MDQ0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI1NWViMDMzMmM4OGFjNDcwNDYzNDdiMTc4MWQzNTRjYmY2MDBhY2RiOWQyZTcyNGNlMzA5Yzg2NTk1YWUyMDYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Gf8nMOQQHnU2hdByvO7Rt0dO65vKFQ0Nv-Wz7_39huA"> > OS: `Mac`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4212