GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix MCP OAuth auth commands to recognize remote servers by default by shamil2 · Pull Request #5537 · anomalyco/opencode

Conversation

@shamil2

@shamil2 shamil2 commented Dec 14, 2025

Copy link
Copy Markdown
Contributor

Fixes issue where MCP OAuth authentication commands didn't recognize remote MCP servers as OAuth-enabled unless explicitly configured with 'oauth' in the config.

Changes

  • Updated CLI MCP list and auth commands to use MCP.supportsOAuth() function
  • Remote MCP servers now support OAuth by default (matching server behavior)
  • No longer requires explicit 'oauth' config for remote servers to be OAuth-enabled

Root Cause

The CLI was checking !!cfg.oauth but the server enables OAuth for remote servers by default unless oauth: false. This created a mismatch where servers would accept OAuth but the CLI wouldn't show them as OAuth-capable.

Closes #5444

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

noirbizarre and christso reacted with heart emoji
All reactions
  • ❤️ 2 reactions
Shamil GHASEETA
fix: MCP OAuth auth commands now recognize remote servers as OAuth-en…
805af91
…abled by default

- Updated CLI checks to use MCP.supportsOAuth() instead of requiring explicit oauth config
- Remote MCP servers now support OAuth authentication without needing 'oauth' in config
- Fixes issue where 'opencode mcp auth' showed no OAuth servers for remote configs

Closes anomalyco#5444
@rekram1-node

rekram1-node commented Dec 14, 2025

Copy link
Copy Markdown
Member

/review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rekram1-node

rekram1-node commented Dec 14, 2025

Copy link
Copy Markdown
Member

looks like there are some type errors

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

github-actions[bot]
github-actions Bot reviewed Dec 14, 2025
View reviewed changes
Comment thread packages/opencode/src/cli/cmd/mcp.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@klaudworks

klaudworks commented Dec 18, 2025

Copy link
Copy Markdown

@shamil2 will you fix this? o.w. I'll open a new PR

shamil2 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@christso christso mentioned this pull request Dec 18, 2025
bug: OAuth uses wrong authorization URL and missing redirectUri config #5766
Closed
@skbolton skbolton mentioned this pull request Dec 19, 2025
fix: Make OAuth fully optional for remote MCP servers #5782
Closed
Your Name
fix: add type annotation to oauthServers in McpAuthCommand
e6f064d
@rekram1-node

rekram1-node commented Dec 20, 2025

Copy link
Copy Markdown
Member

still has type errors @shamil2

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot mentioned this pull request Jan 17, 2026
feat(mcp): support explicit OAuth callback host binding #9078
Closed
@thdxr
thdxr force-pushed the dev branch from cbab81f to 2d3c7a0 Compare January 30, 2026 04:50
@opencode-agent
opencode-agent Bot force-pushed the dev branch from 00637c0 to 71e0ba2 Compare January 30, 2026 14:32
@thdxr
thdxr force-pushed the dev branch 3 times, most recently from f1ae801 to 08fa7f7 Compare January 30, 2026 14:37
This was referenced Jan 31, 2026
feat(app): add MCP OAuth authentication UI to settings #11477
Closed
feat(tui): add MCP OAuth authentication in dialog-mcp #11925
Closed
@github-actions github-actions Bot mentioned this pull request Feb 11, 2026
Feat(desktop) Add mcp auth from TUI and VS Code support #13085
Closed
@github-actions

github-actions Bot commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot closed this Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@github-actions github-actions[bot] github-actions[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

MCP with oauth doesn't work

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@shamil2 @rekram1-node @klaudworks
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.