VS Code is passing along SSH_AUTH_SOCK in a dev container.
git is setup for ssh signing of commits and tags. Working in windows, wsl, and dev container envs. Key is unlocked and agent uses it just fine.
git_commit tool call (from Continue VS Code extension, in this case) results in passphrase error.
Files staged, but not committed.
Tool Call Error
git_mcp_git_commit failed with the message: [{"type":"text","text":"Error: Git commit failed: Exit Code: 128\nStderr: error: Enter passphrase for \"/home/vscode/.ssh/my-key\": Load key \"/home/vscode/.ssh/my-key\": incorrect passphrase supplied to decrypt private key?\n\nfatal: failed to write commit object\n\nStdout: "}]
Please try something else or request further instructions.
Continue mcp server config:
name: Git MCP Server
version: 1.0.0
schema: v1
mcpServers:
- name: git-mcp
command: npx
args:
- -y
- "@cyanheads/git-mcp-server"
env:
GIT_BASE_DIR: /workspaces/my-project/
VS Code is passing along
SSH_AUTH_SOCKin a dev container.git is setup for ssh signing of commits and tags. Working in windows, wsl, and dev container envs. Key is unlocked and agent uses it just fine.
git_committool call (from Continue VS Code extension, in this case) results in passphrase error.Files staged, but not committed.
Tool Call Error
Continue mcp server config: