# MCP Git Plumbing, Diff, Blame & Log Server อย่างเป็นทางการ (uvx) (`git-worktree-diff-mcp`)

> เซิร์ฟเวอร์ Python MCP อย่างเป็นทางการซึ่งเปิดเผยสถานะ git ในเครื่อง, commit diffs, การเปรียบเทียบสาขา และประวัติไฟล์โดยไม่ต้องเข้าถึงเครือข่าย

- **Canonical URL:** https://syndipath.com/th/mcp/git-worktree-diff-mcp
- **Runtime:** `pypi` | **Transport:** STDIO | **License:** MIT | **Package:** `mcp-server-git`
- **Upvotes:** 653 | **GitHub Stars:** 6120 | **Weekly Installs:** 49600
- **Security Note:** ตรวจสอบ HTTP-200 บน PyPI (mcp-server-git); ทำงานภายใน Astral uvx virtualenv ชั่วคราวที่แยกออกมา

## Quick CLI Setup
```bash
# Run isolated Python tool via Astral uvx
uvx mcp-server-git --repository .

# Alternative: run via pipx
pipx run mcp-server-git --repository .

# Add to Claude Code CLI
claude mcp add git-worktree-diff-mcp -- uvx mcp-server-git --repository .
```

## MCP Manifest (`mcp.json`)
```json
{
  "mcpServers": {
    "git-worktree-diff-mcp": {
      "command": "uvx",
      "args": [
        "mcp-server-git",
        "--repository",
        "."
      ]
    }
  }
}
```

## Exposed MCP Tools
- `git_worktree_diff_mcp_execute(query: string, options?: object)`: Official Python MCP server exposing local git status, commit diffs, branch comparisons, and file history without network access.
- `git_worktree_diff_mcp_list_items(filter?: string, limit?: number)`: Lists structured workspace artifacts and capability metadata over JSON-RPC 2.0.
