# GitRescue MCP server

> Fixes git mistakes from plain-language requests using a sandboxed agent with automated backups and safety guardrails.

- Repository: https://github.com/imaketech1/gitrescue
- Page: https://hostedmcp.org/servers/imaketech1/gitrescue
- Transport: —
- Stars: 0
- License: MIT

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `GITRESCUE_API_KEY` | no | no |  |

## FAQ

### How does GitRescue ensure safety when fixing mistakes?

It uses a policy engine with an allowlist of 21 tools, hard blocks on destructive actions like force-pushing main, and requires human approval for destructive tools.

### Can I undo changes made by the agent?

Yes, the system creates backups of the HEAD, branches, stash, index, and working tree before every change, which can be undone using the restore_backup tool.

### Does it work directly on my repository?

By default, it works on a temporary copy of your repository and only applies the result after you approve the final plan.
