Repository navigation
fix(server): accept up to 20 MCP OAuth redirect URIs so Google can register - #296
Merged
Merged
Conversation
…gister Google's MCP connector registers more than 5 redirect URIs, and the register endpoint refused it with invalid_redirect_uri. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
Merge go: Tushar's explicit request in the T3 session ("fix it in our current bkmain and quickly deploy it now"), 2026-10-10. Free lane (no CODEOWNERS). All checks green on dd34521; the queued Blacksmith 'Transfer report artifact' job never runs on this fork (also pending on #294). |
This was referenced Oct 11, 2026
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
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
Google could not add the bkt3 MCP server. At 2026-10-10 16:23 UTC, Google (
108.177.67.129, user agentOpenAuth) sent an 857-byte request to/oauth/mcp/register. bkt3 answered HTTP 400 withRegister between 1 and 5 redirect URIs.(the 94-byte body in the trace log matches only this error). Google then showed "The Google redirect URL was rejected by the server".Fix
Raise
MAX_REDIRECT_URISfrom 5 to 20 inapps/server/src/auth/McpOAuth.ts. Each URI keeps its 512-character cap and the https/loopback rule. The edit is markedT3-CUSTOM(expbkt3). A fork test checks that 8 and 20 URIs register and 21 are refused.This goes straight to
bkmainat Tushar's request. The deploy restarts bkt3.🤖 Generated with Claude Code