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

Commit6c0cb46

Browse files
Update VS Code config JSON (#45)
1 parent001a665 commit6c0cb46

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)**,andcreate or append to the`mcp` setting:
66+
Create a new file`.vscode/mcp.json`andprovide 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)

[8]ページ先頭

©2009-2025 Movatter.jp