Skip to main content
Glama
Heretek-RE

re-patch

by Heretek-RE

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_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

Related MCP server: hashline-mcp

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 Server
A
license - permissive license
A
quality
C
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    -
    maintenance
    A deterministic MCP server that enforces auditable workflows by requiring AI agents to provide structured justifications and obtain human approval for file operations. It provides a secure, tamper-evident pipeline for tracking agent intent and codebase changes through cryptographic signatures and SQLite indexing.
  • F
    license
    -
    quality
    D
    maintenance
    An MCP server for precise, hash-referenced file editing that enables atomic edits using line:hash references instead of fragile line numbers or full content reproduction.
  • A
    license
    -
    quality
    B
    maintenance
    A filesystem MCP server that journals every file operation (write, delete, move, mkdir) and outbound commands (exec, http) into an append-only ledger, enabling undo and compensation of actions.
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    A local-first, model-neutral MCP server for collecting and normalizing change-scoped release evidence. It provides deterministic Git change summaries, evidence collection, and review bundles for agent review.
    7
    18
    Apache 2.0

View all related MCP servers

Related MCP Connectors

  • A MCP server built for developers enabling Git based project management with project and personal…

  • Hosted MCP server for agent governance: MCP config audits, injection scans, scope-policy checks.

  • Static MCP manifest and tool-policy security preflight with signed input-redacted receipts

View all MCP Connectors

Latest Blog Posts

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