File tree Expand file tree Collapse file tree 1 file changed +19
-17
lines changed
Expand file tree Collapse file tree 1 file changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -222,27 +222,29 @@ First of all, install `github-mcp-server` with:
222222go install ./cmd/github-mcp-server
223223` ` `
224224
225- Make sure you:
226-
227- 1. Set your ` GITHUB_PERSONAL_ACCESS_TOKEN` environment variable and ensure VS Code has access to it.
228- 2. VS Code Insiders has access to the ` github-mcp-server` binary
229-
230- Go to settings, find the MCP related settings, and set them to:
225+ Run ** Preferences: Open User Settings (JSON)** , and create or append to the ` mcp` setting:
231226
232227` ` ` json
233228{
234- " mcp" : {
235- " inputs" : [],
236- " servers" : {
237- " mcp-github-server" : {
238- " command" : " path-to-your/github-mcp-server" ,
239- " args" : [
240- " stdio"
241- ],
242- " env" : {}
243- }
244- }
229+ " mcp" : {
230+ " inputs" : [
231+ {
232+ " type" : " promptString" ,
233+ " id" : " githubpat" ,
234+ " description" : " GitHub Personal Access Token" ,
235+ " password" : true
236+ }
237+ ],
238+ " servers" : {
239+ " mcp-github-server" : {
240+ " command" : " path-to-your/github-mcp-server" ,
241+ " args" : [" stdio" ],
242+ " env" : {
243+ " GITHUB_PERSONAL_ACCESS_TOKEN" : " ${input: githubpat} "
244+ },
245+ }
245246 }
247+ }
246248}
247249` ` `
248250
You can’t perform that action at this time.
0 commit comments