Update README.md
Move `env` into mcpServer configuration. The examples have it placed outside. If you don't pay attention, you'll end up wondering why you have empty `env` being passed through.
This commit is contained in:
parent
5199279ea7
commit
7eecc9ca3f
1 changed files with 8 additions and 8 deletions
12
README.md
12
README.md
|
@ -46,11 +46,11 @@ To bypass authentication, or to emit custom headers on all requests to your remo
|
||||||
"https://remote.mcp.server/sse",
|
"https://remote.mcp.server/sse",
|
||||||
"--header",
|
"--header",
|
||||||
"Authorization: Bearer ${AUTH_TOKEN}"
|
"Authorization: Bearer ${AUTH_TOKEN}"
|
||||||
]
|
],
|
||||||
},
|
|
||||||
"env": {
|
"env": {
|
||||||
"AUTH_TOKEN": "..."
|
"AUTH_TOKEN": "..."
|
||||||
}
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -65,11 +65,11 @@ To bypass authentication, or to emit custom headers on all requests to your remo
|
||||||
"https://remote.mcp.server/sse",
|
"https://remote.mcp.server/sse",
|
||||||
"--header",
|
"--header",
|
||||||
"Authorization:${AUTH_HEADER}" // note no spaces around ':'
|
"Authorization:${AUTH_HEADER}" // note no spaces around ':'
|
||||||
]
|
],
|
||||||
},
|
"env": {
|
||||||
"env": {
|
|
||||||
"AUTH_HEADER": "Bearer <auth-token>" // spaces OK in env vars
|
"AUTH_HEADER": "Bearer <auth-token>" // spaces OK in env vars
|
||||||
}
|
}
|
||||||
|
},
|
||||||
```
|
```
|
||||||
|
|
||||||
### Flags
|
### Flags
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue