# whygit MCP server

> Explains Git repository states and error messages in plain English and provides the exact commands to fix them.

- Repository: https://github.com/Srikarmk/whygit
- Page: https://hostedmcp.org/servers/srikarmk/whygit
- Transport: stdio
- Stars: 0
- License: MIT
- Latest version: 0.1.2

## Install

### Claude Code

```sh
claude mcp add whygit -- uvx whygit
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "whygit": {
      "command": "uvx",
      "args": [
        "whygit"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "whygit": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "whygit"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"whygit","type":"stdio","command":"uvx","args":["whygit"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "whygit": {
      "command": "uvx",
      "args": [
        "whygit"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add whygit -- uvx whygit
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.whygit]
command = "uvx"
args = ["whygit"]
```

### Gemini CLI

```sh
gemini mcp add -s user whygit uvx -- whygit
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "whygit": {
      "command": "uvx",
      "args": [
        "whygit"
      ]
    }
  }
}
```

## FAQ

### Does whygit change my repository?

No, it is strictly read-only and never runs the fixes it suggests, ensuring you stay in control.

### What kind of Git errors can it explain?

It can explain merge conflicts, rebase interruptions, detached HEAD states, rejected pushes, GitHub login failures, and large file errors.

### Is my data private when using whygit?

Yes, it collects no data and makes no network calls, reading your repository locally on your own computer.
