Skip to main content
Glama
Heretek-RE

re-dotnet-patch

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_dnlibA

Probe for the dnlib / Mono.Cecil backend.

v2.8.0: always returns status: WARN (stub backend). v2.8.1 replaces this with a real backend probe.

nop_methodA

Replace a method body with a NOP-sled (return default).

The patched copy is written to dst (must differ from path); the original is never modified. The round-trip preserves the type graph outside the NOPed method (counts of types / methods / fields / properties / events all unchanged).

Args: path: source .NET assembly method_fqn: e.g. "Namespace.Type::Method" dst: destination path for the patched copy confirm_legal: free-text audit-trail justification

Use case: stub a store-gate / license-gate / telemetry-gate method in a Mono / .NET launcher. Closes the CD-3 patch path (see See the RE-AI output directory. MainWindow.cs for the canonical example).

v2.8.0: returns status: not_implemented with a schema_for_replay descriptor; v2.8.1 lands the round-trip backend.

replace_method_bodyC

Replace a method body with caller-supplied IL bytes.

v2.8.0: returns status: not_implemented.

replace_string_ldstrB

Replace a specific ldstr operand within a method body.

v2.8.0: returns status: not_implemented.

patch_assemblyD

Apply a list of operations atomically.

v2.8.0: returns status: not_implemented.

rollback_patchC

Delegate to re-patch.restore_original for the byte-restore step.

re-dotnet-patch does not duplicate the byte-level restore primitive; this stub returns status: delegate with a remediation hint pointing at re-patch.restore_original.

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-dotnet-patch'

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