# GitWand

> Resolve straightforward Git conflicts automatically; trace the complex ones.

- **URL**: https://followmcp.com/en/servers/devlint-mcp
- **Category**: Dev Tools
- **Origin**: Official
- **Stars**: 201
- **FMRS Score**: 52/100 (Grade D)
- **Source**: https://github.com/devlint/GitWand/tree/main/packages/mcp
- **Transports**: stdio (local process)
- **Runtimes**: Node.js
- **Auth**: Optional API key

## Overview
GitWand's MCP server exposes its Git conflict resolution engine to AI agents. It can inspect, preview, and automatically resolve higher-confidence merge conflicts; complex conflicts remain pending with their decision traces for an agent to handle. The server uses standard input/output transport.

## Best for
- Developers handling Git merge conflicts through an MCP-compatible client.
- Teams that want a risk preview and leave complex conflicts for human or agent judgment.

## Not for
- Users who need the server to decide ambiguous or overlapping changes automatically.
- Users who do not work with Git repositories or merge-conflict workflows.

## Required permissions
- The server needs access to the selected repository to read conflict content and policy configuration, and resolution operations write files.
- Creating a GitHub issue invokes gh; creation requires dry_run false and a matching preview identifier.

## Risks
- Automatic resolution can modify repository files; the deterministic engine does not automatically resolve complex hunks.
- gitwand_apply_resolution does not validate submitted content; gitwand_resolve_hunk_llm checks for residual conflict markers, format syntax, and a score threshold.
- Issue creation sends the title, body, and metadata to GitHub; known secret patterns block the operation, while high-entropy strings only produce a warning.

## Client config (JSON)
```json
{"mcpServers":{"gitwand":{"command":"npx","args":["-y","@gitwand/mcp"]}}}
```

## Tools (8)
- `gitwand_status`: Lists conflicted files, conflict counts, and auto-resolvability scores.
- `gitwand_preview_merge`: Dry-runs a merge and returns statistics and a risk assessment without writing files.
- `gitwand_resolve_conflicts`: Automatically resolves straightforward conflicts and returns resolutions plus pending hunks.
- `gitwand_explain_hunk`: Explains the ours, theirs, and base content and reasoning for a specified hunk.
- `gitwand_apply_resolution`: Applies an agent-provided resolution to a specified complex hunk without validation; an empty string removes the block.
- `gitwand_resolve_hunk`: Formats a prompt for the calling agent to propose a resolution; the server does not call a language model itself.
- `gitwand_resolve_hunk_llm`: Validates an LLM-proposed resolution and applies it after it passes checks.
- `gitwand_create_issue`: Previews or creates a GitHub issue through gh on origin or its upstream repository; it previews by default and checks for known secret patterns.
