docs: update MCP server OAuth redirect port documentation#24844
docs: update MCP server OAuth redirect port documentation#24844adamfweidman merged 1 commit intomainfrom
Conversation
The default port for the OAuth callback was changed from 7777 to a random OS-assigned port in #20895, but the documentation still stated that it defaulted to 7777. This commit updates the documentation to reflect the current behavior.
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request updates the documentation for the MCP server to align with recent changes in the CLI. By moving away from a hardcoded port for OAuth callbacks, the system now avoids potential port collisions, and this documentation update ensures users are correctly informed about the new default behavior and their configuration options. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
|
Hi @adamfweidman, thank you so much for your contribution to Gemini CLI! We really appreciate the time and effort you've put into this. We're making some updates to our contribution process to improve how we track and review changes. Please take a moment to review our recent discussion post: Improving Our Contribution Process & Introducing New Guidelines. Key Update: Starting January 26, 2026, the Gemini CLI project will require all pull requests to be associated with an existing issue. Any pull requests not linked to an issue by that date will be automatically closed. Thank you for your understanding and for being a part of our community! |
There was a problem hiding this comment.
Code Review
This pull request updates the documentation for the MCP server's OAuth authentication to reflect that the default redirect URI now uses an OS-assigned random port instead of a hardcoded one. I have no feedback to provide.
Note: Security Review has been skipped due to the limited scope of the PR.
|
Size Change: -4 B (0%) Total Size: 34 MB
ℹ️ View Unchanged
|
Summary
Update the MCP server documentation to accurately reflect the OAuth redirect port behavior. Following the refactor in #20895, the CLI now uses a random OS-assigned port for the OAuth callback by default instead of hardcoding port
7777. This prevents port collisions.Details
docs/tools/mcp-server.mdto specify that<random-port>is used by default.redirectUrican still be provided to force a specific callback URL/port.Related Issues
N/A
How to Validate
docs/tools/mcp-server.md.<random-port>.Pre-Merge Checklist