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 — feat(mcp): support explicit OAuth callback host binding by chrisolszewski · Pull Request #9078 · anomalyco/opencode

Conversation

@chrisolszewski

@chrisolszewski chrisolszewski commented Jan 17, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Adds mcp.<name>.oauth.callbackHost to control the bind address for the local OAuth callback server used during MCP OAuth flows.

This is useful in WSL2, Docker, and devcontainers where the browser may need the callback listener bound more broadly than the default loopback setup.

Behavior:

  • if redirectUri is unset, callbackHost can be used to change the host in the default callback URL
  • if redirectUri is set, callbackHost must match its host, unless it is 0.0.0.0 or ::
  • 0.0.0.0 and :: widen the local bind address without changing the callback URL

This threads callbackHost through MCP auth and opencode mcp debug, binds the existing callback server to the configured host, adds config validation for incompatible combinations, updates the docs, and regenerates the SDK types.

Testing:

  • bun typecheck
  • bun test test/mcp/oauth-callback.test.ts
  • bun test test/config/config.test.ts
  • bun test test/mcp/oauth-auto-connect.test.ts

Fixes #9081

Sorry, something went wrong.

Uh oh!

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

All reactions
@github-actions github-actions Bot added the needs:issue label Jan 17, 2026
@github-actions

github-actions Bot commented Jan 17, 2026

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions

github-actions Bot commented Jan 17, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Based on my search, I found one potentially related PR:

Related PR:

  • feat(mcp): add OAuth redirect URI configuration for MCP servers #9034: feat(mcp): add OAuth redirect URI configuration for MCP servers
    • feat(mcp): add OAuth redirect URI configuration for MCP servers #9034
    • This PR addresses OAuth configuration for MCP servers, which is closely related to the current PR's focus on OAuth callback configuration. Both are adding configurable OAuth parameters for MCP servers.

The other OAuth-related PRs found (#2453, #5781, #6974, #7765, #5537, #5782) appear to be either older, closed, or addressing different OAuth features (like PKCE, GitHub Copilot, OpenRouter) rather than MCP-specific callback configuration.

Summary: While #9034 is related to MCP OAuth configuration, it appears to focus on redirect URI configuration rather than the callback host binding address that PR #9078 addresses. They could be complementary changes to the same feature area.

All reactions

Sorry, something went wrong.

Uh oh!

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

@chrisolszewski

chrisolszewski commented Jan 17, 2026

Copy link
Copy Markdown
Contributor Author

Note #9034 was reverted due to regressions. This change avoids any redirectUri plumbing and is focused on the optional bind host for the callback server. I can make this more clear in the PR description if necessary.

All reactions

Sorry, something went wrong.

Uh oh!

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

@chrisolszewski chrisolszewski mentioned this pull request Jan 17, 2026
WSL2/devcontainer: MCP OAuth callback unreachable from host browser (Sentry) #9081
Closed
@github-actions github-actions Bot removed the needs:issue label Jan 17, 2026
@chrisolszewski
chrisolszewski force-pushed the feat/mcp-callback-host branch from 2923d71 to 7ac1fb1 Compare January 20, 2026 16:59
@github-actions github-actions Bot mentioned this pull request Jan 22, 2026
docs: document MCP OAuth redirect URI for pre-registered clients #9908
Closed
@thdxr
thdxr force-pushed the dev branch from cbab81f to 2d3c7a0 Compare January 30, 2026 04:49
@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
@github-actions github-actions Bot mentioned this pull request Feb 3, 2026
feat(tui): add MCP OAuth authentication in dialog-mcp #11925
Closed
@chrisolszewski
chrisolszewski force-pushed the feat/mcp-callback-host branch 2 times, most recently from e3d80c5 to bb069b3 Compare February 26, 2026 15:47
@github-actions github-actions Bot mentioned this pull request Apr 3, 2026
feat(opencode): Enable oauth redirect #20812
Closed
3 of 6 tasks
@chrisolszewski
chrisolszewski force-pushed the feat/mcp-callback-host branch 3 times, most recently from c199b06 to 251c5d0 Compare April 9, 2026 18:51
@chrisolszewski
feat(mcp): support explicit OAuth callback host binding
8328412
@chrisolszewski
chrisolszewski force-pushed the feat/mcp-callback-host branch from 251c5d0 to 8328412 Compare April 9, 2026 19:07
@chrisolszewski chrisolszewski changed the title feat(mcp): add oauth callbackHost config feat(mcp): support explicit OAuth callback host binding Apr 9, 2026
@opencode-agent
opencode-agent Bot force-pushed the dev branch from 2f2ed11 to 9f201d6 Compare April 16, 2026 21:55
@chrisolszewski chrisolszewski closed this Apr 28, 2026
@opencodejr opencodejr Bot mentioned this pull request Oct 29, 2026
[FEATURE]: make OAUTH_CALLBACK_HOST configurable #33966
Closed
1 task done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

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.

WSL2/devcontainer: MCP OAuth callback unreachable from host browser (Sentry)

Uh oh!

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

1 participant

@chrisolszewski
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.