-
Notifications
You must be signed in to change notification settings - Fork 4.8k
improve mcp CLI + ability to debug MCP oauth
#5980
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
Author
Contributor
Author
Contributor
Author
Collaborator
|
/review |
Contributor
|
lgtm |
1d18524 to
0272685
Compare
iljod
pushed a commit
to iljod/opencode
that referenced
this pull request
Dec 23, 2025
rekram1-node
pushed a commit
that referenced
this pull request
Dec 27, 2025
anntnzrb
pushed a commit
to anntnzrb/opencode-1
that referenced
this pull request
Dec 29, 2025
Clouder0
added a commit
to Clouder0/overcode
that referenced
this pull request
Jan 4, 2026
Merged upstream dev changes into my_dev job system branch. Conflicts resolved: - sidebar.tsx: Combined job system UI with upstream TodoItem and MCP count helpers - compaction.ts: Kept InvalidTool + added upstream prompt replacement feature - retry.test.ts: Kept both test suites (socket error + ECONNRESET tests) Upstream features merged: - Prompt stashing (anomalyco#6021) - Did you know tips (anomalyco#5982) - MCP OAuth debug command (anomalyco#5980) - Cloudflare AI Gateway (anomalyco#5174) - Install CLI flags (anomalyco#5885) - Windows CRLF grep fix (anomalyco#5948) - Dialog keybind blocking fix (anomalyco#6017) - Model filtering fix (anomalyco#6053)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



This PR improves visibility into MCP server auth errors across opencode by providing more details in the
opencode mcp ...CLI surface.It adds an
opencode mcp debug <name>command to help debug remote auth flows + shows users a toast when an MCP server fails to auth (vs. failing silently) + shows MCP status when the sidebar header is collapsed.The toast is probably the most controversial as I don't want to spam users but the current state shows "failure" and requires a user to manually check the status.
opencode mcp auth listto show auth status (authenticated/expired/not authenticated) for all OAuth-capable serversopencode mcp debug <name>to diagnose OAuth connection issues (shows HTTP response, WWW-Authenticate header, tests OAuth flow)opencode mcp authserver selection (✓ authenticated, ⚠ expired, ○ not authenticated)(N active, N errors)in collapsed MCP sidebar headeropencode mcp authto include all remote servers (OAuth enabled by default) instead of only those with explicitoauth: {}config