Add --host parameter

This commit is contained in:
Maxwell Gerber 2025-05-15 21:43:53 -07:00
parent 7eecc9ca3f
commit 7a573be0f9
No known key found for this signature in database
GPG key ID: BB9C1A99266069B0
6 changed files with 32 additions and 7 deletions

View file

@ -104,6 +104,17 @@ 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.
```json
"args": [
"mcp-remote",
"https://remote.mcp.server/sse",
"--host",
"localhost"
]
```
* To allow HTTP connections in trusted private networks, add the `--allow-http` flag. Note: This should only be used in secure private networks where traffic cannot be intercepted.
```json