
Conflictfix
io.github.CloudCorpRecordsPublished by GitHub account CloudCorpRecordsv0.1.0Updated Nov 3, 2026
Classify merge-conflict hunks as safe mechanical resolutions or risky; risky hunks stay manual.
Overview
Conflictfix's local MCP server; no sign-in required; STDIO.
No AI overview yet: these facts come from the registry entry and the server itself.
Installation
In SourceWeft
- Open Conflictfix in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
conflictfix
A merge conflict already exists, and the question for
each hunk in it is narrow: can this one be resolved
mechanically, or does a human need to look at it?
conflictfix answers hunk by hunk. You supply the file
path and, for every hunk, the three line lists a
three-way merge works from — the common ancestor's
lines (base), your side's lines (ours), and their
side's lines (theirs) — and it classifies each hunk,
returning the resolved lines for the ones that are safe
and leaving the risky ones alone.
Four classes are safe. When ours and theirs are
exactly the same, the hunk is identical and resolves
to those lines, however they differ from base. When
only one side moved — ours still equals base, so
the hunk is theirs_only and resolves to theirs, or
theirs still equals base, so the hunk is
ours_only and resolves to ours — the side that
changed wins outright, including when it deleted every
line. When the two sides differ only in whitespace,
the hunk is whitespace_only and resolves to ours
echoed verbatim, spacing and all: normalization decides
the class, it never rewrites the lines. Everything
else is conflict: not safe, resolution null, and
never auto-merged by this tool.
The checks run in that fixed order and the first match
wins, so a hunk where all three lists agree is
identical, not ours_only, and a one-sided change
that also happens to be whitespace-equal is reported
as the one-sided change it is. Whitespace normalization
trims each line, drops leading and trailing entries
that are empty after trimming, and joins what remains
with newlines. Interior blank lines are preserved by
that process, so a blank line appearing in the middle
of one side only is a real difference and the hunk is
a conflict, not a whitespace difference.
The result echoes the path, carries one entry per
input hunk with its 0-based index, class, safe
flag, and resolution, and totals the outcome:
safe_count, risky_count, and fully_resolvable,
which is true exactly when no hunk is risky. Malformed
input — a missing, empty, or non-string path, a
missing, non-array, or empty hunks list, a hunk that
is not an object, a missing or non-array base,
ours, or theirs, or any line that is not a string —
is a validation error naming the offending path, such
as hunks[2].ours[0] must be a string, with no partial
result. Unknown extra fields are ignored, including
inside hunk items. The computation is pure and local:
no repository is read, no merge is performed, and no
files are touched.
CLI
args.json contains the full arguments object:
The result is printed as JSON:
Exit codes: 0 on success, 1 on a runtime error
(including an unreadable or invalid input file, or
invalid input), 2 on a usage error.
MCP server
MCP client config:
Tools
-
triage_conflicts— Triage a three-way merge conflict: classify each hunk as a safe mechanical resolution or risky from caller-supplied base, ours, and theirs lines. Safe hunks return their resolved lines; risky hunks are never auto-merged.path(string, required, non-empty) — file path the conflict hunks belong tohunks(array, required, at least 1 item) — conflict hunks to triage; each item carries:base(array of strings, required, may be empty) — lines from the common ancestorours(array of strings, required, may be empty) — lines from our sidetheirs(array of strings, required, may be empty) — lines from their side
Returns
{path, hunks, safe_count, risky_count, fully_resolvable}, where each entry inhunksis{index, class, safe, resolution}withclassone ofidentical,theirs_only,ours_only,whitespace_only, orconflict.
Docker
Development
License
MIT — Copyright (c) 2026 Rene Turcios
Source: README.md at commit 5760fba
Tools
0Version history
1- v0.1.0LatestNov 3, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts