re-patch
re-patch
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 resultManifest-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 inReversible — 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 |
| Health check — |
| Return the SHA-256 of path (hex-encoded) |
| Copy |
| Copy |
Install
Part of the RE-AI plugin; ./install.sh installs the package. To
install standalone:
pip install -e ./servers/re-patchRun
re-patch # stdio transport (default for MCP)
python -m re_patch # equivalentLatest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Heretek-RE/re-patch'
If you have feedback or need assistance with the MCP directory API, please join our Discord server