Git for VS Code
io.github.abhishekkumar2021/git
Local Git via MCP: status, log, diff, file history, branches, and gated stage/commit. Pure-JS.
client:VS Code
transport:stdio
runtime:npm
Install Git in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "git-roots",
"description": "GIT_ROOTS",
"password": true
},
{
"type": "promptString",
"id": "git-writable",
"description": "GIT_WRITABLE",
"password": true
}
],
"servers": {
"git": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@abhishekmcp/git"
],
"env": {
"GIT_ROOTS": "${input:git-roots}",
"GIT_WRITABLE": "${input:git-writable}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs