I am using the GitHub MCP server like this:
"github": {
"type": "http",
"url": "https://api.githubcopilot.com/mcp",
"headers": {
"Authorization": "Bearer ${GITHUB_TOKEN}"
}
}
The environment variable is loaded correctly by Claude Code and I am able to interact with my GitHub account.
However, I noticed that when I run claude --debug, I am seeing these logs:
[DEBUG] MCP server "github": No token data found
These debug messages are misleading the token is loaded, but it's loaded via an environment variable.