Rogue_Binary // Triage_Mode
Document_Viewer: /wiki/rbinilspy-tools Back_To_Index

Rogue Binary MCP

ILSpy MCP Tools Reference

Detailed tool listing and managed .NET disassembly schemas for rbinilspy server.

Section: Session and Metadata

Initialize assembly sessions, fetch versioning data, and read global resources.

  • dn_open: Loads a managed .NET assembly and starts a persistent ILSpy session.
  • dn_close: Closes an assembly session and cleans up worker resources.
  • dn_sessions: Lists all open assembly sessions registered with the worker.
  • dn_metadata: Returns assembly header metadata (CLR version, type count, dependency hashes).
  • dn_references: Lists dependent assembly names references by this target.
  • dn_resources: Lists resources embedded inside the managed executable.
Load assembly
                        {
  "tool": "dn_open",
  "arguments": {
    "binary_path": "/samples/NetApp.dll"
  }
}
                      
Section: Types and Members Outlines

Expose managed namespace lists, type hierarchies, and type definitions without dumping full code.

  • dn_namespaces: Lists distinct namespaces with type counts.
  • dn_types: Lists fully qualified type names in the loaded assembly with namespace or name filter.
  • dn_type_info: Renders base types, interfaces, modifiers, and attributes.
  • dn_members: Returns a token-efficient list of member methods, fields, and properties of a type.
  • dn_search: Searches type or member definitions matching a substring pattern.
List namespaces
                        {
  "tool": "dn_namespaces",
  "arguments": {
    "session_id": "NetApp.dll"
  }
}
                      
Section: Source Decompilation

Extract clean C# source code or raw Intermediate Language (IL) instructions.

  • dn_decompile: Decompile a full type to standard C# source code.
  • dn_decompile_method: Decompile a single selected method to C# (highly token-efficient).
  • dn_il: Renders the raw Intermediate Language (IL) disassembly for a targeted type.
  • dn_search_source: Greps through the decompiled C# source of a type for a target string.
  • dn_usages: Traces references to a specific pattern across all assembly types.
  • dn_raw_cmd: Pass-through for custom or raw ilspycmd CLI arguments.
Tool Scope Target type Format
dn_decompile type level type_name C# source
dn_decompile_method method level type_name, method_name C# source
dn_il type level type_name IL instructions
dn_search_source substring grep type_name, pattern line matches