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:
Will 2025-05-14 11:49:34 -07:00 committed by Glen Maddern
parent 5199279ea7
commit 7eecc9ca3f

View file

@ -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": {
"AUTH_TOKEN": "..."
}
}, },
"env": {
"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": {
"AUTH_HEADER": "Bearer <auth-token>" // spaces OK in env vars
}
}, },
"env": {
"AUTH_HEADER": "Bearer <auth-token>" // spaces OK in env vars
}
``` ```
### Flags ### Flags