Tools Overview
mcilspy exposes 16 tools through the Model Context Protocol, powered by two complementary engines. Seven metadata tools parse PE headers directly via dnfile and work immediately with no .NET SDK. Nine decompilation tools use ilspycmd for full source recovery, diagrams, and project generation. Two diagnostics tools help you get set up.
Feature Matrix
Section titled “Feature Matrix”| Tool | Purpose | Engine | Category |
|---|---|---|---|
decompile_assembly | Full C# or IL source recovery with PDB support | ilspycmd | Decompilation |
decompile_method | Extract a single method from a type | ilspycmd | Decompilation |
list_types | Enumerate classes, interfaces, structs, enums, delegates | ilspycmd | Decompilation |
search_types | Find types by name pattern (regex supported) | ilspycmd | Decompilation |
search_strings | Find hardcoded strings in the UserString heap | dnfile | Decompilation |
generate_diagrammer | Interactive HTML type relationship diagram | ilspycmd | Decompilation |
dump_package | Extract assemblies from NuGet packages | ilspycmd | Decompilation |
get_assembly_info | Version, framework, signing, and debug info | ilspycmd | Decompilation |
search_methods | Find methods by name or pattern across all types | dnfile | Metadata |
search_fields | Find fields, constants, and their default values | dnfile | Metadata |
search_properties | Find properties by name pattern | dnfile | Metadata |
list_events | List all event definitions in an assembly | dnfile | Metadata |
list_resources | Find embedded files, images, and resource streams | dnfile | Metadata |
get_metadata_summary | Assembly statistics, references, and framework info | dnfile | Metadata |
check_ilspy_installation | Diagnose dotnet CLI and ilspycmd setup | built-in | Diagnostics |
install_ilspy | Auto-install .NET SDK and ilspycmd for your platform | built-in | Diagnostics |
Tools by Category
Section titled “Tools by Category”Decompilation Tools
Section titled “Decompilation Tools”Eight tools that use ilspycmd for deep analysis, plus search_strings which reads the UserString heap directly via dnfile. These cover full source recovery, type enumeration, diagram generation, and NuGet package extraction.
Metadata Tools
Section titled “Metadata Tools”Six tools that parse PE metadata tables directly. No .NET SDK required — these work on any machine with Python installed.
Diagnostics Tools
Section titled “Diagnostics Tools”Two tools for setup and troubleshooting. These detect your platform and package manager automatically.
Recommended Workflow
Section titled “Recommended Workflow”When approaching an unknown assembly, start broad and narrow down. The Quick Start guide walks through this sequence in detail:
- Reconnaissance —
get_metadata_summaryfor type counts, references, and framework target - Discovery —
list_typesorsearch_typesto find what exists - Search —
search_methods,search_fields,search_stringsto find specific patterns - Deep dive —
decompile_assemblyordecompile_methodfor full source code - Visualization —
generate_diagrammerfor type relationship diagrams - Resources —
list_resourcesto check for embedded files