Skip to content

Simplify vscode MCP setup with input #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,22 +326,26 @@ First of all, install `github-mcp-server` with:
go install ./cmd/github-mcp-server
```

Make sure you:

1. Set your `GITHUB_PERSONAL_ACCESS_TOKEN` environment variable and ensure VS Code has access to it.
2. VS Code Insiders has access to the `github-mcp-server` binary

Go to settings, find the MCP related settings, and set them to:
Run **Preferences: Open User Settings (JSON)**, and create or append to the `mcp` setting:

```json
{
"mcp": {
"inputs": [],
"inputs": [
{
"type": "promptString",
"id": "githubpat",
"description": "GitHub Personal Access Token",
"password": true
}
],
"servers": {
"mcp-github-server": {
"command": "path-to-your/github-mcp-server",
"args": ["stdio"],
"env": {}
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:githubpat}"
},
}
}
}
Expand Down