You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In finishAuth (packages/opencode/src/mcp/index.ts), after OAuth completes successfully, createAndStore(mcpName, mcpConfig) is called with the raw config from getMcpConfig(). If the server has enabled: false (e.g. was previously disconnected), create() short-circuits and returns { status: "disabled" } without attempting to connect.
The authenticate CLI handler doesn't have a case for "disabled" status, so it falls through to the else branch printing "Unexpected status: disabled".
Fix
Pass { ...mcpConfig, enabled: true } to createAndStore in finishAuth, matching what connect() already does.
Activity
github-actions commentedon Mar 31, 2026
This issue doesn't fully meet our contributing guidelines.
What needs to be fixed:
Please edit this issue to address the above within 2 hours, or it will be automatically closed.
This issue might be a duplicate of existing issues. Please check:
If you believe this was flagged incorrectly, please let a maintainer know.
fix(mcp): finishAuth returns disabled instead of connected after OAuth
github-actions commentedon Mar 31, 2026
This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.
Feel free to open a new issue that follows our issue templates.
Ayushlm10 commentedon Apr 17, 2026
closing this, wasn't totally clear initially what was happening. Sorry for the noise.
phantomwhale commentedon May 14, 2026
Seeing something similar...