Skip to content

Commit dd6e884

Browse files
authored
Add other example config snip
1 parent 8e49edf commit dd6e884

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

README.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,38 @@ For quick installation, use one of the one-click install buttons at the top of t
2828

2929
For manual installation, add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing `Ctrl + Shift + P` and typing `Preferences: Open User Settings (JSON)`.
3030

31-
Optionally, you can add it to a file called `.vscode/mcp.json` in your workspace. This will allow you to share the configuration with others.
31+
```json
32+
{
33+
"mcp": {
34+
"inputs": [
35+
{
36+
"type": "promptString",
37+
"id": "github_token",
38+
"description": "GitHub Personal Access Token",
39+
"password": true
40+
}
41+
],
42+
"servers": {
43+
"github": {
44+
"command": "docker",
45+
"args": [
46+
"run",
47+
"-i",
48+
"--rm",
49+
"-e",
50+
"GITHUB_PERSONAL_ACCESS_TOKEN",
51+
"ghcr.io/github/github-mcp-server"
52+
],
53+
"env": {
54+
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}"
55+
}
56+
}
57+
}
58+
}
59+
}
60+
```
61+
62+
Optionally, you can add a similar example (i.e. without the mcp key) to a file called `.vscode/mcp.json` in your workspace. This will allow you to share the configuration with others.
3263

3364

3465
```json

0 commit comments

Comments
 (0)