Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaaa9fc5

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

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

‎README.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -222,27 +222,29 @@ First of all, install `github-mcp-server` with:
222222
go 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, andset 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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp