Open
Description
Describe the feature or problem you’d like to solve
you can define the github MCP like this:
{
"mcpServers": {
"github-mcp": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<MySecretTokenHere>"
}
}
}
}
a recent cursor update has added the possibility to define an mcp.json scoped to a project, which is great.
However, I want to commit this mcp file to the project’s repo … but I don’t want to commit my secret token.
Proposed solution
Could we add the option to actually refer to an env variable here?
Alternatively, if I could at least enter a file path there like "GITHUB_TOKEN_PATH": "~./.github_token", that would work too