Skip to content

Commit 1b3e7d6

Browse files
authored
docs: update MCP server OAuth redirect port documentation (#24844)
1 parent e7f8d9c commit 1b3e7d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/tools/mcp-server.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ When connecting to an OAuth-enabled server:
290290
> OAuth authentication requires that your local machine can:
291291
>
292292
> - Open a web browser for authentication
293-
> - Receive redirects on `http://localhost:7777/oauth/callback`
293+
> - Receive redirects on `http://localhost:<random-port>/oauth/callback` (or a specific port if configured via `redirectUri`)
294294
295295
This feature will not work in:
296296

@@ -323,8 +323,8 @@ Use the `/mcp auth` command to manage OAuth authentication:
323323
if omitted)
324324
- **`tokenUrl`** (string): OAuth token endpoint (auto-discovered if omitted)
325325
- **`scopes`** (string[]): Required OAuth scopes
326-
- **`redirectUri`** (string): Custom redirect URI (defaults to
327-
`http://localhost:7777/oauth/callback`)
326+
- **`redirectUri`** (string): Custom redirect URI (defaults to an OS-assigned
327+
random port, e.g., `http://localhost:<random-port>/oauth/callback`)
328328
- **`tokenParamName`** (string): Query parameter name for tokens in SSE URLs
329329
- **`audiences`** (string[]): Audiences the token is valid for
330330

0 commit comments

Comments
 (0)