git mcp server for VS Code
io.github.ray0907/git-mcp-server
MCP server for GitLab and GitHub
client:VS Code
transport:stdio
runtime:npm
Install git mcp server in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "git-provider",
"description": "GIT_PROVIDER",
"password": true
},
{
"type": "promptString",
"id": "git-token",
"description": "GIT_TOKEN",
"password": true
},
{
"type": "promptString",
"id": "git-api-url",
"description": "GIT_API_URL",
"password": true
},
{
"type": "promptString",
"id": "git-read-only",
"description": "GIT_READ_ONLY",
"password": true
}
],
"servers": {
"git-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@raytien/git-mcp-server"
],
"env": {
"GIT_PROVIDER": "${input:git-provider}",
"GIT_TOKEN": "${input:git-token}",
"GIT_API_URL": "${input:git-api-url}",
"GIT_READ_ONLY": "${input:git-read-only}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs