Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 14fb02b

Browse files
authored
Simplify vscode MCP setup with input (#19)
note: realized this doesn't actually work (microsoft/vscode#243875) but I will fix that today and wait to merge until then
1 parent 3f7d5b0 commit 14fb02b

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -326,22 +326,26 @@ First of all, install `github-mcp-server` with:
326326
go 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
}

0 commit comments

Comments
 (0)