[PR #5537] Fix MCP OAuth auth commands to recognize remote servers by default #11459

Open
opened 2026-02-16 18:16:18 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5537

State: open
Merged: No


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

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5537 **State:** open **Merged:** No --- 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
yindo added the pull-request label 2026-02-16 18:16:18 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11459