Skip to content

Commit d464757

Browse files
authored
[NA] [DX] Update GitHub MCP server to use envFile parameter (#4494)
Update GitHub MCP server configuration to use the new envFile parameter introduced in Cursor's MCP. This allows developers to keep a single copy of mcp.json instead of duplicating it in the home directory with the GitHub token hardcoded. The change removes the env section and replaces it with envFile pointing to ${workspaceFolder}/.env.local, which aligns with Cursor's updated MCP configuration format.
1 parent da99b66 commit d464757

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.cursor/mcp.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@
99
"-e",
1010
"GITHUB_PERSONAL_ACCESS_TOKEN",
1111
"-e",
12-
"GITHUB_TOOLSETS",
12+
"GITHUB_TOOLSETS=repos,pull_requests,issues",
1313
"ghcr.io/github/github-mcp-server"
1414
],
15-
"env": {
16-
"GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_PERSONAL_ACCESS_TOKEN}",
17-
"GITHUB_TOOLSETS": "repos,pull_requests,issues"
18-
}
15+
"envFile": "${workspaceFolder}/.env.local"
1916
},
2017
"Atlassian": {
2118
"command": "npx -y mcp-remote https://mcp.atlassian.com/v1/sse",

0 commit comments

Comments
 (0)