Opencode request hanging no response #851

Closed
opened 2026-02-16 17:28:34 -05:00 by yindo · 2 comments
Owner

Originally created by @RoRep1ay on GitHub (Jul 22, 2025).

Originally assigned to: @thdxr on GitHub.

After configuring the MCP server, the request is just hanging.

Image

Debug Log:

opencode run hey --print-logs

INFO  2025-07-22T04:27:51 +43ms service=default version=0.3.54 args=["run","hey","--print-logs"] opencode
INFO  2025-07-22T04:27:51 +1ms service=app cwd=/Users/userabc/.local/share/opencode/log creating
INFO  2025-07-22T04:27:51 +3ms service=app git
INFO  2025-07-22T04:27:51 +2ms service=bus type=storage.write subscribing
INFO  2025-07-22T04:27:51 +0ms service=app name=bus registering service
INFO  2025-07-22T04:27:51 +0ms service=format init
INFO  2025-07-22T04:27:51 +0ms service=bus type=file.edited subscribing
INFO  2025-07-22T04:27:51 +0ms service=config.hooks init
INFO  2025-07-22T04:27:51 +0ms service=bus type=file.edited subscribing
INFO  2025-07-22T04:27:51 +0ms service=bus type=session.idle subscribing
INFO  2025-07-22T04:27:51 +0ms service=app name=lsp registering service
INFO  2025-07-22T04:27:51 +1ms service=session id=ses_7cf9cb175ffeidOtwC8Cq5b7UK version=0.3.54 title=New Session - 2025-07-22T04:27:51.306Z time={"created":1753158471306,"updated":1753158471306} created
INFO  2025-07-22T04:27:51 +0ms service=app name=session registering service
INFO  2025-07-22T04:27:51 +0ms service=app name=storage registering service
INFO  2025-07-22T04:27:51 +1ms service=bus type=storage.write publishing
INFO  2025-07-22T04:27:51 +0ms service=app name=config registering service
INFO  2025-07-22T04:27:51 +2ms service=config $schema=https://opencode.ai/config.json model= mcp={"gihub-mcp":{"type":"remote","url":"https://api.githubcopilot.com/mcp/","enabled":true,"headers":{"Authorization":"xxx"}}} username=userabc loaded
INFO  2025-07-22T04:27:51 +0ms service=bus type=session.updated publishing

█▀▀█ █▀▀█ █▀▀ █▀▀▄ █▀▀ █▀▀█ █▀▀▄ █▀▀
█░░█ █░░█ █▀▀ █░░█ █░░ █░░█ █░░█ █▀▀
▀▀▀▀ █▀▀▀ ▀▀▀ ▀  ▀ ▀▀▀ ▀▀▀▀ ▀▀▀  ▀▀▀

INFO  2025-07-22T04:27:51 +0ms service=app name=provider registering service
INFO  2025-07-22T04:27:51 +1ms service=models.dev refreshing
INFO  2025-07-22T04:27:51 +0ms service=provider init
INFO  2025-07-22T04:27:51 +2ms service=provider providerID=google found
INFO  2025-07-22T04:27:51 +0ms service=provider providerID=github-copilot found
@  google/gemini-2.5-pro-preview-06-05

INFO  2025-07-22T04:27:51 +0ms service=bus type=message.part.updated subscribing
INFO  2025-07-22T04:27:51 +0ms service=bus type=session.error subscribing
INFO  2025-07-22T04:27:51 +0ms service=app name=mode registering service
INFO  2025-07-22T04:27:51 +1ms service=session session=ses_7cf9cb175ffeidOtwC8Cq5b7UK chatting
INFO  2025-07-22T04:27:51 +1ms service=bus type=storage.write publishing
INFO  2025-07-22T04:27:51 +0ms service=bus type=message.updated publishing
INFO  2025-07-22T04:27:51 +0ms service=bus type=storage.write publishing
INFO  2025-07-22T04:27:51 +0ms service=bus type=message.part.updated publishing
INFO  2025-07-22T04:27:51 +1ms service=provider providerID=google modelID=gemini-2.5-pro-preview-06-05 getModel
INFO  2025-07-22T04:27:51 +0ms service=provider status=started providerID=google getSDK
INFO  2025-07-22T04:27:51 +38ms service=provider status=completed duration=38 providerID=google getSDK
INFO  2025-07-22T04:27:51 +0ms service=provider providerID=google modelID=gemini-2.5-pro-preview-06-05 found
INFO  2025-07-22T04:27:51 +2ms service=session session=ses_7cf9cb175ffeidOtwC8Cq5b7UK sessionID=ses_7cf9cb175ffeidOtwC8Cq5b7UK locking
INFO  2025-07-22T04:27:51 +1ms service=provider providerID=google modelID=gemini-2.5-flash-lite-preview-06-17 getModel
INFO  2025-07-22T04:27:51 +0ms service=provider status=started providerID=google getSDK
INFO  2025-07-22T04:27:51 +0ms service=provider status=completed duration=0 providerID=google getSDK
INFO  2025-07-22T04:27:51 +0ms service=provider providerID=google modelID=gemini-2.5-flash-lite-preview-06-17 found
INFO  2025-07-22T04:27:51 +5ms service=bus type=storage.write publishing
INFO  2025-07-22T04:27:51 +0ms service=bus type=message.updated publishing
INFO  2025-07-22T04:27:51 +1ms service=app name=mcp registering service
INFO  2025-07-22T04:27:51 +0ms service=mcp key=gihub-mcp type=remote found                                                                                                                                                                      ,INFO  2025-07-22T04:27:51 +610ms service=bus type=storage.write publishing
INFO  2025-07-22T04:27:51 +0ms service=bus type=session.updated publishing

Config:

{
  "$schema": "https://opencode.ai/config.json",
  "model": "{env:OPENCODE_MODEL}",
  "mcp": {
    "gihub-mcp": {
      "type": "remote",
      "url": "https://api.githubcopilot.com/mcp/",
      "enabled": true,
      "headers": {
        "Authorization": "{env:GITHUB_MCP_TOKEN}"
      }
    }
  }
}

If I remove the mcp server from the config, it's working fine.

Originally created by @RoRep1ay on GitHub (Jul 22, 2025). Originally assigned to: @thdxr on GitHub. After configuring the MCP server, the request is just hanging. <img width="1564" height="624" alt="Image" src="https://github.com/user-attachments/assets/7e70b217-7fec-440b-8aaf-feca0429cb6b" /> Debug Log: `opencode run hey --print-logs` ``` INFO 2025-07-22T04:27:51 +43ms service=default version=0.3.54 args=["run","hey","--print-logs"] opencode INFO 2025-07-22T04:27:51 +1ms service=app cwd=/Users/userabc/.local/share/opencode/log creating INFO 2025-07-22T04:27:51 +3ms service=app git INFO 2025-07-22T04:27:51 +2ms service=bus type=storage.write subscribing INFO 2025-07-22T04:27:51 +0ms service=app name=bus registering service INFO 2025-07-22T04:27:51 +0ms service=format init INFO 2025-07-22T04:27:51 +0ms service=bus type=file.edited subscribing INFO 2025-07-22T04:27:51 +0ms service=config.hooks init INFO 2025-07-22T04:27:51 +0ms service=bus type=file.edited subscribing INFO 2025-07-22T04:27:51 +0ms service=bus type=session.idle subscribing INFO 2025-07-22T04:27:51 +0ms service=app name=lsp registering service INFO 2025-07-22T04:27:51 +1ms service=session id=ses_7cf9cb175ffeidOtwC8Cq5b7UK version=0.3.54 title=New Session - 2025-07-22T04:27:51.306Z time={"created":1753158471306,"updated":1753158471306} created INFO 2025-07-22T04:27:51 +0ms service=app name=session registering service INFO 2025-07-22T04:27:51 +0ms service=app name=storage registering service INFO 2025-07-22T04:27:51 +1ms service=bus type=storage.write publishing INFO 2025-07-22T04:27:51 +0ms service=app name=config registering service INFO 2025-07-22T04:27:51 +2ms service=config $schema=https://opencode.ai/config.json model= mcp={"gihub-mcp":{"type":"remote","url":"https://api.githubcopilot.com/mcp/","enabled":true,"headers":{"Authorization":"xxx"}}} username=userabc loaded INFO 2025-07-22T04:27:51 +0ms service=bus type=session.updated publishing █▀▀█ █▀▀█ █▀▀ █▀▀▄ █▀▀ █▀▀█ █▀▀▄ █▀▀ █░░█ █░░█ █▀▀ █░░█ █░░ █░░█ █░░█ █▀▀ ▀▀▀▀ █▀▀▀ ▀▀▀ ▀ ▀ ▀▀▀ ▀▀▀▀ ▀▀▀ ▀▀▀ INFO 2025-07-22T04:27:51 +0ms service=app name=provider registering service INFO 2025-07-22T04:27:51 +1ms service=models.dev refreshing INFO 2025-07-22T04:27:51 +0ms service=provider init INFO 2025-07-22T04:27:51 +2ms service=provider providerID=google found INFO 2025-07-22T04:27:51 +0ms service=provider providerID=github-copilot found @ google/gemini-2.5-pro-preview-06-05 INFO 2025-07-22T04:27:51 +0ms service=bus type=message.part.updated subscribing INFO 2025-07-22T04:27:51 +0ms service=bus type=session.error subscribing INFO 2025-07-22T04:27:51 +0ms service=app name=mode registering service INFO 2025-07-22T04:27:51 +1ms service=session session=ses_7cf9cb175ffeidOtwC8Cq5b7UK chatting INFO 2025-07-22T04:27:51 +1ms service=bus type=storage.write publishing INFO 2025-07-22T04:27:51 +0ms service=bus type=message.updated publishing INFO 2025-07-22T04:27:51 +0ms service=bus type=storage.write publishing INFO 2025-07-22T04:27:51 +0ms service=bus type=message.part.updated publishing INFO 2025-07-22T04:27:51 +1ms service=provider providerID=google modelID=gemini-2.5-pro-preview-06-05 getModel INFO 2025-07-22T04:27:51 +0ms service=provider status=started providerID=google getSDK INFO 2025-07-22T04:27:51 +38ms service=provider status=completed duration=38 providerID=google getSDK INFO 2025-07-22T04:27:51 +0ms service=provider providerID=google modelID=gemini-2.5-pro-preview-06-05 found INFO 2025-07-22T04:27:51 +2ms service=session session=ses_7cf9cb175ffeidOtwC8Cq5b7UK sessionID=ses_7cf9cb175ffeidOtwC8Cq5b7UK locking INFO 2025-07-22T04:27:51 +1ms service=provider providerID=google modelID=gemini-2.5-flash-lite-preview-06-17 getModel INFO 2025-07-22T04:27:51 +0ms service=provider status=started providerID=google getSDK INFO 2025-07-22T04:27:51 +0ms service=provider status=completed duration=0 providerID=google getSDK INFO 2025-07-22T04:27:51 +0ms service=provider providerID=google modelID=gemini-2.5-flash-lite-preview-06-17 found INFO 2025-07-22T04:27:51 +5ms service=bus type=storage.write publishing INFO 2025-07-22T04:27:51 +0ms service=bus type=message.updated publishing INFO 2025-07-22T04:27:51 +1ms service=app name=mcp registering service INFO 2025-07-22T04:27:51 +0ms service=mcp key=gihub-mcp type=remote found ,INFO 2025-07-22T04:27:51 +610ms service=bus type=storage.write publishing INFO 2025-07-22T04:27:51 +0ms service=bus type=session.updated publishing ``` Config: ``` { "$schema": "https://opencode.ai/config.json", "model": "{env:OPENCODE_MODEL}", "mcp": { "gihub-mcp": { "type": "remote", "url": "https://api.githubcopilot.com/mcp/", "enabled": true, "headers": { "Authorization": "{env:GITHUB_MCP_TOKEN}" } } } } ``` If I remove the mcp server from the config, it's working fine.
yindo closed this issue 2026-02-16 17:28:34 -05:00
Author
Owner

@RoRep1ay commented on GitHub (Jul 22, 2025):

Related: https://github.com/sst/opencode/issues/307

@RoRep1ay commented on GitHub (Jul 22, 2025): Related: https://github.com/sst/opencode/issues/307
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#851