Repository navigation
DecompilerServer now uses ILSpy 11.2. Comparison and symbol lookup now tell a type apart from its generic twin, such as IFoo and IFoo<T>. An empty caller search now says where to look next.
Comparison
compare_contextsno longer fails on assemblies that declare a type next to its generic twin. Before, the whole call failed with "An item with the same key has already been added".compare_contextsitems use the reflection name astypeName, for exampleN.IFoo`1orN.Outer+Inner. v1.4.0 used the full name, which drops the generic arity. You can passtypeNameunchanged tocompare_symbols.compare_symbolsresolves one type for both contexts, so it never diffs two different types. A plain name such asN.IFoomeans the non-generic type.N.IFoo`1selects the generic one. If a name matches more than one type,resolutionlists the candidates and names the type it compared.- Malformed or obfuscated metadata can repeat a type name. The repeats get
#2,#3suffixes, andtypeNameCollisionsreports them.
Lookup
- Symbols such as
N.IFoo:Methodresolve to the non-generic type, whatever the declaration order.N.IFoo`1:Methodselects the generic type. - If
find_callersorfind_usagesfinds nothing in assembly scope, the response hashints. When other contexts are loaded, the hint repeats the call withscope: "workspace". Otherwise it suggests that you load the dependent assemblies first.
Dependencies
- ICSharpCode.Decompiler 11.2.0.10050, up from 10.0.1.8346. ILSpy 11 writes newer C# in places, for example
defaultinstead ofdefault(T). Body diffs between two server versions can show these changes. - ModelContextProtocol 1.4.2 and Microsoft.Extensions.Hosting 10.0.15.
Updating
Restart or reconnect your MCP client after you replace the executable. If a script matches compare_contexts typeName against full names, change it to use reflection names.
Thanks to @konstant16-Z for #54, #55 and #56.
All 253 Release tests pass locally. A freshly launched server also passed an MCP smoke test.
Requires the .NET 10 runtime. Downloads are available for Windows x64, macOS Apple Silicon and Intel, and Linux x64 and ARM64.