Re Patch
FreeNot checkedMCP server for on-disk patching of binary artifacts with SHA-256 manifest, byte-level patch application, and manifest-driven restore, ensuring auditability and
About
MCP server for on-disk patching of binary artifacts with SHA-256 manifest, byte-level patch application, and manifest-driven restore, ensuring auditability and reversibility.
README
MCP server for on-disk patching of binary artifacts. Provides:
- SHA-256 manifest of a binary (so the original can be verified / restored)
- Byte-level patch application: copy a file, write
new_bytesatoffset, save the result - Manifest-driven restore: read the manifest, copy the original back
The server does not enforce policy — it surfaces an audit log
(confirm_legal parameter) so the calling agent records the
justification for every patch. The user / run policy is the
caller's responsibility.
Why
The 2026-06-05 stress test surfaced a need for an on-disk patch primitive that's:
- Auditable — every call carries a
confirm_legaltext the analyst must type in - Reversible — the SHA-256 manifest + restore_original tool let the analyst roll back to the exact original bytes
- Non-destructive —
apply_patchwrites a copy atdst, not in place; the original atsrcis never modified
Tools
| Tool | What it does |
|---|---|
check_patch |
Health check — re-patch has no system dependencies; always status: OK |
sha256_manifest |
Return the SHA-256 of path (hex-encoded) |
apply_patch |
Copy src to dst, write new_bytes_b64 at offset in dst |
restore_original |
Copy original (whose SHA-256 matches the manifest) to restore_target |
Install
Part of the RE-AI plugin; ./install.sh installs the package. To
install standalone:
pip install -e ./servers/re-patch
Run
re-patch # stdio transport (default for MCP)
python -m re_patch # equivalent
Install Re Patch in Claude Desktop, Claude Code & Cursor
unyly install re-patchInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add re-patch -- uvx --from git+https://github.com/Heretek-RE/re-patch re-patchFAQ
Is Re Patch MCP free?
Yes, Re Patch MCP is free — one-click install via Unyly at no cost.
Does Re Patch need an API key?
No, Re Patch runs without API keys or environment variables.
Is Re Patch hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Re Patch in Claude Desktop, Claude Code or Cursor?
Open Re Patch on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare Re Patch with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
