@@ -161,11 +161,9 @@ Add the following JSON block to your IDE MCP settings.
161
161
" run" ,
162
162
" -i" ,
163
163
" --rm" ,
164
+ " -e" , " GITHUB_PERSONAL_ACCESS_TOKEN=${input:github_token}" ,
164
165
" ghcr.io/github/github-mcp-server"
165
- ],
166
- "env" : {
167
- "GITHUB_PERSONAL_ACCESS_TOKEN" : " ${input:github_token}"
168
- }
166
+ ]
169
167
}
170
168
}
171
169
}
@@ -192,11 +190,9 @@ Optionally, you can add a similar example (i.e. without the mcp key) to a file c
192
190
" run" ,
193
191
" -i" ,
194
192
" --rm" ,
193
+ " -e" , " GITHUB_PERSONAL_ACCESS_TOKEN=${input:github_token}" ,
195
194
" ghcr.io/github/github-mcp-server"
196
- ],
197
- "env" : {
198
- "GITHUB_PERSONAL_ACCESS_TOKEN" : " ${input:github_token}"
199
- }
195
+ ]
200
196
}
201
197
}
202
198
}
@@ -216,11 +212,9 @@ More about using MCP server tools in VS Code's [agent mode documentation](https:
216
212
" run" ,
217
213
" -i" ,
218
214
" --rm" ,
215
+ " -e" , " GITHUB_PERSONAL_ACCESS_TOKEN=${input:github_token}" ,
219
216
" ghcr.io/github/github-mcp-server"
220
- ],
221
- "env" : {
222
- "GITHUB_PERSONAL_ACCESS_TOKEN" : " <YOUR_TOKEN>"
223
- }
217
+ ]
224
218
}
225
219
}
226
220
}
@@ -371,12 +365,10 @@ the hostname for GitHub Enterprise Server or GitHub Enterprise Cloud with data r
371
365
" run" ,
372
366
" -i" ,
373
367
" --rm" ,
368
+ " -e" , " GITHUB_PERSONAL_ACCESS_TOKEN=${input:github_token}" ,
369
+ " -e" , " GITHUB_HOST=https://<your GHES or ghe.com domain name>" ,
374
370
" ghcr.io/github/github-mcp-server"
375
- ],
376
- "env" : {
377
- "GITHUB_PERSONAL_ACCESS_TOKEN" : " ${input:github_token}" ,
378
- "GITHUB_HOST" : " https://<your GHES or ghe.com domain name>"
379
- }
371
+ ]
380
372
}
381
373
```
382
374
0 commit comments