Skip to main content
Glama
Heretek-RE

re-binary-diff

by Heretek-RE

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
check_binary_diffA

Return server status + version. Always status: OKre-binary-diff has no external system dependencies.

unified_diffA

Compute a unified-style diff between path_a and path_b.

For small files (<= 8 MiB per side) the function runs difflib.unified_diff over the byte streams (decoded as latin-1). For large files it falls back to a per-chunk SHA-256 diff.

Args: path_a: first file (the "before" or "original") path_b: second file (the "after" or "patched")

Returns::

{
  "path_a": "...",
  "path_b": "...",
  "size_a": N,
  "size_b": N,
  "mode": "sha256_equal" | "inline_unified_diff" | "chunk_sha256_diff",
  "equal": bool,
  "diff_lines": ["...", ...],   (inline mode)
  "chunk_diff": [{...}, ...],   (chunk mode)
}

The function is read-only. The "patched" copy at path_b is not modified.

fingerprint_sectionsA

Return a per-chunk SHA-256 + offset + size fingerprint of path.

Useful for finding the structural delta between two versions of a binary without loading either into memory. Pair with unified_diff (chunk mode) for large files.

Args: path: file to fingerprint chunk_size: bytes per chunk (default 1 MiB) max_chunks: 0 = no cap; > 0 = return at most N chunks

Returns::

{
  "path": "...",
  "size": N,
  "chunk_size": N,
  "truncated": bool,
  "chunks": [
    {"index": 0, "offset": 0, "size": 1048576, "sha256": "..."},
    ...
  ],
}

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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-binary-diff'

If you have feedback or need assistance with the MCP directory API, please join our Discord server