# @andrebuzeli/git-mcp

Servidor MCP (Model Context Protocol) para operações Git locais sem git instalado, com sincronização paralela para GitHub e Gitea.

## Configuração MCP

```json
{
  "mcpServers": {
    "git-mcp": {
      "command": "npx",
      "args": ["@andrebuzeli/git-mcp@latest"],
      "env": {
        "GITEA_URL": "https://seu-gitea",
        "GITEA_TOKEN": "...",
        "GITHUB_TOKEN": "..."
      }
    }
  }
}
```

## Tools

- git-workflow: init, status, add, remove, commit, ensure-remotes, push
- git-update: status -> add -> commit -> push (all-in-one)
- git-remote: list, ensure
- git-branches: list, create, delete, rename, checkout
- git-tags: list, create, delete, push
- git-stash: list, save, apply, pop, drop, clear
- git-reset: soft, mixed, hard
- git-config: get, set, unset, list
- git-ignore: list, create, add, remove
- git-files: list, read
- git-history: log
- git-sync: fetch, pull
- git-issues: create, list, comment
- git-pulls: create, list, files

Todas as tools exigem `projectPath` e operam com derivação automática do nome do repositório a partir do caminho.
