Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Re Patch

FreeNot checked

MCP server for on-disk patching of binary artifacts with SHA-256 manifest, byte-level patch application, and manifest-driven restore, ensuring auditability and

GitHubEmbed

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_bytes at offset, 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_legal text the analyst must type in
  • Reversible — the SHA-256 manifest + restore_original tool let the analyst roll back to the exact original bytes
  • Non-destructiveapply_patch writes a copy at dst, not in place; the original at src is 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

from github.com/Heretek-RE/re-patch

Install Re Patch in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install re-patch

Installs 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-patch

FAQ

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

Compare 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