Skip to content

SSH Agent not picked up. #49

@dailytabs

Description

@dailytabs

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions