File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -326,22 +326,26 @@ First of all, install `github-mcp-server` with:
326
326
go install ./cmd/github-mcp-server
327
327
` ` `
328
328
329
- Make sure you:
330
-
331
- 1. Set your ` GITHUB_PERSONAL_ACCESS_TOKEN` environment variable and ensure VS Code has access to it.
332
- 2. VS Code Insiders has access to the ` github-mcp-server` binary
333
-
334
- Go to settings, find the MCP related settings, and set them to:
329
+ Run ** Preferences: Open User Settings (JSON)** , and create or append to the ` mcp` setting:
335
330
336
331
` ` ` json
337
332
{
338
333
" mcp" : {
339
- " inputs" : [],
334
+ " inputs" : [
335
+ {
336
+ " type" : " promptString" ,
337
+ " id" : " githubpat" ,
338
+ " description" : " GitHub Personal Access Token" ,
339
+ " password" : true
340
+ }
341
+ ],
340
342
" servers" : {
341
343
" mcp-github-server" : {
342
344
" command" : " path-to-your/github-mcp-server" ,
343
345
" args" : [" stdio" ],
344
- " env" : {}
346
+ " env" : {
347
+ " GITHUB_PERSONAL_ACCESS_TOKEN" : " ${input: githubpat} "
348
+ },
345
349
}
346
350
}
347
351
}
You can’t perform that action at this time.
0 commit comments