-
Notifications
You must be signed in to change notification settings - Fork 12
feat: add region param and OAuth option for MCP setup #220
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
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
Adds region parameter throughout the MCP client configuration flow. When region is 'eu', appends `?region=eu` to the MCP URL so the server can route OAuth to the correct authorization server. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Adds a prompt asking users how they want to authenticate: - API Key: existing flow, creates personal API key - OAuth (Beta): skips API key, lets MCP handle OAuth on first use This enables JIT provisioning for new users (e.g., Replit integration). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add tests for OAuth mode (no API key) in claude.test.ts - Add tests for region parameter passing - Add comprehensive tests for defaults.ts (buildMCPUrl, getDefaultServerConfig, getNativeHTTPServerConfig) - Improve comment explaining region logic Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
joshsny
approved these changes
Jan 13, 2026
Collaborator
joshsny
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great, didn't run locally but generally changes look good - left a comment about whether to prompt the user
MattBro
pushed a commit
that referenced
this pull request
Jan 14, 2026
Removes the user prompt asking to choose between API Key and OAuth authentication. OAuth is now the default authentication method for MCP server setup, streamlining the wizard flow and reducing user friction. This addresses feedback in PR #220 to make OAuth the default since it's proven reliable. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Removes the authentication method prompt and defaults to OAuth for MCP setup. Users no longer need to create a Personal API key upfront - authentication happens when they first use the MCP. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
joshsny
approved these changes
Jan 14, 2026
This was referenced Jan 14, 2026
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.
Problem
mcp.posthog.comserves both US and EU regions, but OAuth tokens are region-specificMore convo here https://posthog.slack.com/archives/C09KTRWD3HD/p1767997171308609?thread_ts=1767899846.384299&cid=C09KTRWD3HD
Changes
Region param support
buildMCPUrlto include?region=eufor EU usersOAuth authentication option
How did you test this code?
🤖 Generated with Claude Code