gitwand-mcp

An MCP server that lets AI coding tools inspect and resolve Git merge conflicts with GitWand. MCP is a standard way for an AI agent to call external tools and read related resources.

In plain words
What is it for?
Use it with agents such as Claude Code, Cursor, or Windsurf to list conflicted files, resolve simple conflicts, preview results, explain difficult sections, and apply chosen fixes.
Why use it?
It brings conflict status, automatic resolution, previews, explanations, and custom resolutions into compatible AI agents.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/devlint/gitwand/gitwand-mcp
Any agent
npx skills add devlint/GitWand --skill gitwand-mcp
Clone the repo
git clone --depth 1 https://github.com/devlint/GitWand

Made for: Claude Code, Codex.

Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 574 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00574
Opus 5 $0.00000 $0.00287
Sonnet 5 $0.00000 $0.00115
Haiku 4.5 $0.00000 $0.00057

Measured 2d ago against content hash 103f15461aa8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

gitwand-mcp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

website/public/.well-known/agent-skills/gitwand-mcp/SKILL.md · 65 lines

How it starts

The opening of the file, as written. The whole thing — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GitWand MCP Server

Use GitWand's MCP server to automatically resolve Git merge conflicts from any AI agent (Claude, Claude Code, Cursor, Windsurf, etc.).

Install

npx @gitwand/mcp

Or add to your MCP client config (Claude Desktop, Claude Code, etc.):

{
  "mcpServers": {
    "gitwand": {
      "command": "npx",
      "args": ["@gitwand/mcp"]
    }
  }
}

Tools

Tool Description
gitwand_status List conflicted files with complexity scores and auto-resolvability percentages
gitwand_resolve_conflicts Auto-resolve trivial conflicts. Returns DecisionTrace + pendingHunks for complex ones
gitwand_preview_merge Dry-run — assess resolvability without modifying files
gitwand_explain_hunk Explain why a specific hunk is complex (full DecisionTrace)
gitwand_apply_resolution Apply a custom resolution you provide to a specific hunk

Resources

URI Description
gitwand://repo/conflicts Live conflict state — files, counts, and auto-resolvability
gitwand://repo/policy Current .gitwandrc config (merge policies, confidence thresholds)
gitwand://hunk/{file}/{line} Raw ours/theirs/base content + confidence for a specific hunk
  1. gitwand_preview_merge — check what can be auto-resolved vs. needs attention
  2. gitwand_resolve_conflicts — auto-resolve trivial conflicts (writes files)
  3. For each hunk in pendingHunks:
    • gitwand_explain_hunk — understand why it's complex (DecisionTrace, ours/theirs/base)
    • Decide on resolution, then gitwand_apply_resolution to write it

Merge Policies

Pass policy to gitwand_resolve_conflicts:

  • prefer-theirs (default) — take the incoming branch's version when safe
  • prefer-ours — favour the current branch
  • prefer-merge — attempt a three-way merge
  • prefer-safety — only resolve with very high confidence
  • strict — resolve only non-overlapping / whitespace-only conflicts

Read the full file on GitHub · 65 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 65 lines · 0 tokens per session scan A 103f15461aa8

Subscribe to this mod's changes

gitwand-mcp is a skill published in the GitHub repository devlint/GitWand (167 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 574 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

hunk-extensions

Maps the hunkdiff/extension authoring surface for Hunk, the terminal diff viewer — hiding or reordering reviewed files, docked panes, alternate file views, commands and key bindings, dialogs, workspace writes, themes, syntax languages, VCS backends, lifecycle events. Use when writing, debugging, or installing a Hunk…

modem-dev/hunk · 105 tokens

hunk-launch-video

Produces Hunk videos by driving the real TUI headlessly in a PTY, compositing captioned 1080p frames in Chromium, and encoding with ffmpeg. Use for feature demos, workflow explainers, announcements, launch videos, and full-release roundups.

modem-dev/hunk · 60 tokens

hunk-review

Interacts with live Hunk diff review sessions via CLI. Inspects review focus, navigates files, hunks, and exact lines, reloads session contents, adds inline review comments, and paints attention marks on character ranges. Use when the user has a Hunk session running or wants to review diffs interactively.

modem-dev/hunk · 69 tokens

hunk-release

Prepares, publishes, verifies, and curates Hunk releases. Use for release metadata, benchmarks, tags, publishing, release videos, backports, or recovery.

modem-dev/hunk · 38 tokens

mobile-app

像素级 iPhone 15 Pro 边框, 一屏 app 截图.

nexu-io/html-anything · 21 tokens

git-machete

Use whenever invoking the git machete CLI to organize branch chains, compute fork points, run stacked rebases/merges, or manage GitHub/GitLab PR/MR chains - especially in a repo that already has a .git/machete file. Lists which subcommands modify .git/machete, run rebase/merge, run hooks, or read stdin, so the agent…

VirtusLab/git-machete · 165 tokens