Me too. I saw the use of the env command in this thread, but it didn’t work either and resulted in the same error.
"github": {
"type": "command",
"command": "env",
"args": [
"GITHUB_PERSONAL_ACCESS_TOKEN=token",
"npx",
"-y",
"@modelcontextprotocol/server-github"
]
},