From c0f7c49d059d0247176080ff7015d308b783da56 Mon Sep 17 00:00:00 2001 From: Maxwell Gerber Date: Fri, 16 May 2025 09:23:14 -0700 Subject: [PATCH] default to localhost --- README.md | 4 ++-- src/lib/utils.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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]