After configuring the MCP server, the request is just hanging.
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.
After configuring the MCP server, the request is just hanging.
Debug Log:
opencode run hey --print-logsConfig:
If I remove the mcp server from the config, it's working fine.