Skip to content

Commit c51621a

Browse files
max-stytchgeelen
authored andcommitted
default to localhost
1 parent 7852c38 commit c51621a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,14 @@ To bypass authentication, or to emit custom headers on all requests to your remo
104104
]
105105
```
106106

107-
* To change which host `mcp-remote` registers as the OAuth callback URL (by default `127.0.0.1`), add the `--host` flag.
107+
* To change which host `mcp-remote` registers as the OAuth callback URL (by default `localhost`), add the `--host` flag.
108108

109109
```json
110110
"args": [
111111
"mcp-remote",
112112
"https://remote.mcp.server/sse",
113113
"--host",
114-
"localhost"
114+
"127.0.0.1"
115115
]
116116
```
117117

src/lib/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ export async function parseCommandLineArgs(args: string[], usage: string) {
450450
}
451451

452452
// Parse host
453-
let host = '127.0.0.1' // Default
453+
let host = 'localhost' // Default
454454
const hostIndex = args.indexOf('--host')
455455
if (hostIndex !== -1 && hostIndex < args.length - 1) {
456456
host = args[hostIndex + 1]

0 commit comments

Comments
 (0)