Skip to content

Commit 7eecc9c

Browse files
the-wcgeelen
authored andcommitted
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.
1 parent 5199279 commit 7eecc9c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ To bypass authentication, or to emit custom headers on all requests to your remo
4646
"https://remote.mcp.server/sse",
4747
"--header",
4848
"Authorization: Bearer ${AUTH_TOKEN}"
49-
]
49+
],
50+
"env": {
51+
"AUTH_TOKEN": "..."
52+
}
5053
},
51-
"env": {
52-
"AUTH_TOKEN": "..."
53-
}
5454
}
5555
}
5656
```
@@ -65,11 +65,11 @@ To bypass authentication, or to emit custom headers on all requests to your remo
6565
"https://remote.mcp.server/sse",
6666
"--header",
6767
"Authorization:${AUTH_HEADER}" // note no spaces around ':'
68-
]
68+
],
69+
"env": {
70+
"AUTH_HEADER": "Bearer <auth-token>" // spaces OK in env vars
71+
}
6972
},
70-
"env": {
71-
"AUTH_HEADER": "Bearer <auth-token>" // spaces OK in env vars
72-
}
7373
```
7474

7575
### Flags

0 commit comments

Comments
 (0)