Skip to content

Commit ca17833

Browse files
Update VS Code config JSON
1 parent 4f7077a commit ca17833

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed

README.md

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -63,33 +63,37 @@ code-insiders
6363

6464
Another way is to set the environment variable in your shell configuration file (e.g., `.bashrc`, `.zshrc`, etc.).
6565

66-
Run **Preferences: Open User Settings (JSON)**, and create or append to the `mcp` setting:
66+
Create a new file `.vscode/mcp.json` and provide this configuration:
6767

6868
If you are using the docker image, use this configuration:
6969

7070
```json
7171
{
72-
"mcp": {
73-
"inputs": [],
72+
"inputs": [
73+
{
74+
"id": "github-pat",
75+
"type": "promptString",
76+
"description": "Github Personal Access Token",
77+
"password": true,
78+
}
79+
],
7480
"servers": {
75-
"github-mcp-server": {
81+
"github-mcp-server": {
7682
"type": "stdio",
7783
"command": "docker",
78-
"args": [
79-
"run",
80-
"-i",
81-
"--rm",
82-
"-e",
83-
"GITHUB_PERSONAL_ACCESS_TOKEN",
84-
"ghcr.io/github/github-mcp-server:main"
85-
],
86-
"env": {}
87-
}
84+
"args": [
85+
"run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server:main"
86+
],
87+
"env": {
88+
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github-pat}"
89+
}
90+
}
8891
}
89-
}
9092
}
9193
```
9294

95+
When you start the server, VS Code will prompt for your token, as indicated by `${input:github-pat}`.
96+
9397
If you built the binary from the repo use this configuration:
9498

9599
```json

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy