diff --git a/README.md b/README.md index be8621e..5e2fba1 100644 --- a/README.md +++ b/README.md @@ -104,14 +104,14 @@ To bypass authentication, or to emit custom headers on all requests to your remo ] ``` -* To change which host `mcp-remote` registers as the OAuth callback URL (by default `127.0.0.1`), add the `--host` flag. +* To change which host `mcp-remote` registers as the OAuth callback URL (by default `localhost`), add the `--host` flag. ```json "args": [ "mcp-remote", "https://remote.mcp.server/sse", "--host", - "localhost" + "127.0.0.1" ] ``` diff --git a/src/lib/utils.ts b/src/lib/utils.ts index ac32313..45ec8fd 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -450,7 +450,7 @@ export async function parseCommandLineArgs(args: string[], usage: string) { } // Parse host - let host = '127.0.0.1' // Default + let host = 'localhost' // Default const hostIndex = args.indexOf('--host') if (hostIndex !== -1 && hostIndex < args.length - 1) { host = args[hostIndex + 1]