Use environment variables in remote MCP server config

For example, Github config requires a personal token:

{
  "mcpServers": {
    "github": {
      "url": "https://api.githubcopilot.com/mcp/",
      "headers": {
        "Authorization": "Bearer YOUR_GITHUB_PAT"
      }
    }
  }
}

How to pass it as an env var? Previously I can wrap it in a script and export the env var manually, but with this new config, this approach doesn’t work anymore.

Does anyone have some ideas on this?