git mcp server for VS Code
io.github.cyanheads/git-mcp-server
Comprehensive Git MCP server enabling native git tools including clone, commit, worktree, & more.
client:VS Code
transport:stdio
runtime:npm
Install git mcp server in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "mcp-log-level",
"description": "MCP_LOG_LEVEL",
"password": true
},
{
"type": "promptString",
"id": "git-base-dir",
"description": "GIT_BASE_DIR",
"password": true
}
],
"servers": {
"git-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cyanheads/git-mcp-server"
],
"env": {
"MCP_LOG_LEVEL": "${input:mcp-log-level}",
"GIT_BASE_DIR": "${input:git-base-dir}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs