feat: add MCP server configuration for GitHub in VSCode

This commit is contained in:
Peter Wood
2025-05-23 13:37:13 -04:00
parent 5ed6d298b9
commit 570ed2d1b4
2 changed files with 26 additions and 2 deletions

2
.gitignore vendored
View File

@@ -34,5 +34,3 @@ pnpm-debug.log*
# Test coverage # Test coverage
coverage/ coverage/
.vscode/mcp.json

26
.vscode/mcp.json vendored Normal file
View File

@@ -0,0 +1,26 @@
{
"inputs": [
{
"type": "promptString",
"id": "github_token",
"description": "GitHub Personal Access Token",
"password": true
}
],
"servers": {
"github": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GITHUB_PERSONAL_ACCESS_TOKEN",
"ghcr.io/github/github-mcp-server"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}"
}
}
}
}