GitHub MCP failing to start

This is probably the cause of the “Authorization header is badly formatted” error here: Grok Build leaves ${env:NAME} unresolved in mcp.json when NAME ends in _TOKEN or _KEY. The GitHub server then receives the literal text Bearer ${env:CURSOR_GITHUB_TOKEN} and rejects it as badly formatted.

Details and a reproduction are in ${env:NAME} in mcp.json is not resolved when NAME ends in _TOKEN or _KEY.

Workaround: copy the token into a variable whose name doesn’t end in _TOKEN or _KEY, then restart:

export CURSOR_GITHUB_AUTH="$CURSOR_GITHUB_TOKEN"
launchctl setenv CURSOR_GITHUB_AUTH "$CURSOR_GITHUB_AUTH"   # macOS, so the app sees it
"headers": { "Authorization": "Bearer ${env:CURSOR_GITHUB_AUTH}" }