mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-25 04:24:51 -07:00
docs: update MCP server OAuth redirect port documentation (#24844)
This commit is contained in:
@@ -290,7 +290,7 @@ When connecting to an OAuth-enabled server:
|
|||||||
> OAuth authentication requires that your local machine can:
|
> OAuth authentication requires that your local machine can:
|
||||||
>
|
>
|
||||||
> - Open a web browser for authentication
|
> - Open a web browser for authentication
|
||||||
> - Receive redirects on `http://localhost:7777/oauth/callback`
|
> - Receive redirects on `http://localhost:<random-port>/oauth/callback` (or a specific port if configured via `redirectUri`)
|
||||||
|
|
||||||
This feature will not work in:
|
This feature will not work in:
|
||||||
|
|
||||||
@@ -323,8 +323,8 @@ Use the `/mcp auth` command to manage OAuth authentication:
|
|||||||
if omitted)
|
if omitted)
|
||||||
- **`tokenUrl`** (string): OAuth token endpoint (auto-discovered if omitted)
|
- **`tokenUrl`** (string): OAuth token endpoint (auto-discovered if omitted)
|
||||||
- **`scopes`** (string[]): Required OAuth scopes
|
- **`scopes`** (string[]): Required OAuth scopes
|
||||||
- **`redirectUri`** (string): Custom redirect URI (defaults to
|
- **`redirectUri`** (string): Custom redirect URI (defaults to an OS-assigned
|
||||||
`http://localhost:7777/oauth/callback`)
|
random port, e.g., `http://localhost:<random-port>/oauth/callback`)
|
||||||
- **`tokenParamName`** (string): Query parameter name for tokens in SSE URLs
|
- **`tokenParamName`** (string): Query parameter name for tokens in SSE URLs
|
||||||
- **`audiences`** (string[]): Audiences the token is valid for
|
- **`audiences`** (string[]): Audiences the token is valid for
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user