GeezerVison is showing github.com — Feat(desktop) Add mcp auth from TUI and VS Code support by lesserevil · Pull Request #13085 · anomalyco/opencode
Conversation
lesserevil
commented
Feb 11, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Closes #12061
This PR adds two features:
- Add support for auth for mcps which need oauth from TUI
- Add ability for VSCode remote connections to tunnel the oauth connection back to the host VSCode device
Auth isn't done automatically, only when you 'enable' the mcp. If we did them all at once, we could get ugly auth storms.
Tested via manual testing on multiple MCPs, both from remote and local VSCode connections.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…pen events in vscode extension
…o match provider expectations
…ol results
The MCP tool wrapper in prompt.ts iterated result.content expecting raw
CallToolResult from the MCP SDK, but convertMcpTool already extracts text
and returns a flat { output, title, metadata } shape — so result.content
was always undefined, causing TypeError on every MCP tool call.
The MCP SDK's OAuthClientProvider.state() is a generator, not a
retriever — the SDK never calls saveState(). The previous
implementation threw when no state was pre-saved, causing all
transport connections to fail silently for OAuth-protected servers.
Also fixes the VS Code extension SSE endpoint path, adds payload
unwrapping for global events, and promotes transport connection
failure logs from debug to info for better diagnostics.
|
Hey! Your PR title Add mcp auth from TUI and VS Code support doesn't follow conventional commit format.
Please update it to start with one of:
feat: or feat(scope): new feature
fix: or fix(scope): bug fix
docs: or docs(scope): documentation changes
chore: or chore(scope): maintenance tasks
refactor: or refactor(scope): code refactoring
test: or test(scope): adding or updating tests
Where scope is the package name (e.g., app, desktop, opencode).
See CONTRIBUTING.md for details.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
The following comment was made by an LLM, it may be inaccurate:
Based on my search, I found several potentially related PRs that address similar MCP authentication features:
Most Relevant:
Other related:
These PRs suggest that MCP OAuth authentication features are being actively developed across multiple components (TUI, app, remote servers). PR #11925 and #11477 appear to be the closest potential duplicates, as they also implement MCP OAuth authentication support in similar contexts.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
lesserevil
changed the title
Add mcp auth from TUI and VS Code support
Feat(desktop) Add mcp auth from TUI and VS Code support
Feb 11, 2026
Hey! Your PR title Add mcp auth from TUI and VS Code support doesn't follow conventional commit format.
Please update it to start with one of:
feat: or feat(scope): new feature
fix: or fix(scope): bug fix
docs: or docs(scope): documentation changes
chore: or chore(scope): maintenance tasks
refactor: or refactor(scope): code refactoring
test: or test(scope): adding or updating tests
Where scope is the package name (e.g., app, desktop, opencode).
See CONTRIBUTING.md for details.
Fixed!
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Fixes bug where pressing space in MCP dialog activated search instead of authenticating.
Added space key handling to List.handleKey to route space to list navigation when item is selected.
|
Closing 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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
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.
|