Uh oh!
There was an error while loading. Please reload this page.
fix: enable MCP server after OAuth completion - #6960
Conversation
The following comment was made by an LLM, it may be inaccurate: Duplicate PR Detection ResultsNo duplicate PRs found. The searches returned only the PR itself (#6960: "fix: enable MCP server after OAuth completion"), which indicates there are no other open or existing PRs addressing the same issue of MCP servers returning "Unexpected status: disabled" after OAuth completion. The related PRs that appeared in broader searches (#6629 and #5873) are unrelated to this specific MCP authentication fix and don't address the disabled server status issue. Summary: This appears to be a unique fix addressing a specific bug with disabled MCP servers during OAuth authentication flow. Safe to proceed. |
f1ae801 to
08fa7f7CompareClosing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR. |
Summary
opencode mcp auth <server>returns "Unexpected status: disabled" after successful OAuthWhen running
opencode mcp auth <server>, users see:┌ MCP OAuth Authentication
│
■ Unexpected status: disabled
│
└ Done
I have some MCPs which are disabled by default:
enabled:false. Thecreate()function returns{ status: "disabled" }for disabled servers, which the CLI doesn't handle.Toggling the server via
/mcpin the TUI works asconnect()explicitly setsenabled: true.FIX:
After successful OAuth completion, always enable the server (If a user is actively authenticating an MCP server, they want it enabled)