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:
326326go install ./cmd/github-mcp-server
327327` ` `
328328
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:
335330
336331` ` ` json
337332{
338333 " mcp" : {
339- " inputs" : [],
334+ " inputs" : [
335+ {
336+ " type" : " promptString" ,
337+ " id" : " githubpat" ,
338+ " description" : " GitHub Personal Access Token" ,
339+ " password" : true
340+ }
341+ ],
340342 " servers" : {
341343 " mcp-github-server" : {
342344 " command" : " path-to-your/github-mcp-server" ,
343345 " args" : [" stdio" ],
344- " env" : {}
346+ " env" : {
347+ " GITHUB_PERSONAL_ACCESS_TOKEN" : " ${input: githubpat} "
348+ },
345349 }
346350 }
347351 }
You can’t perform that action at this time.
0 commit comments