SourceExplorerMcp.linux-arm64
1.0.2
dotnet add package SourceExplorerMcp.linux-arm64 --version 1.0.2
NuGet\Install-Package SourceExplorerMcp.linux-arm64 -Version 1.0.2
<PackageReference Include="SourceExplorerMcp.linux-arm64" Version="1.0.2" />
<PackageVersion Include="SourceExplorerMcp.linux-arm64" Version="1.0.2" />
<PackageReference Include="SourceExplorerMcp.linux-arm64" />
paket add SourceExplorerMcp.linux-arm64 --version 1.0.2
#r "nuget: SourceExplorerMcp.linux-arm64, 1.0.2"
#:package SourceExplorerMcp.linux-arm64@1.0.2
#addin nuget:?package=SourceExplorerMcp.linux-arm64&version=1.0.2
#tool nuget:?package=SourceExplorerMcp.linux-arm64&version=1.0.2
SourceExplorerMcp
MCP tools for exploring source code of .NET assemblies via decompilation
What is SourceExplorerMcp
SourceExplorerMcp is a Model Context Protocol (MCP) server distributed as a dotnet tool. It lets AI agents explore and decompile .NET types from a project's dependency graph — NuGet packages and framework assemblies — without needing the original source code.
Point it at any .NET project directory, and the server will resolve the project's dependencies, scan for assemblies, and expose tools that let an agent search for types and decompile them into readable C# source.
How it works
- Parses
project.assets.jsonto map DLL filenames to NuGet packages. - Scans
bin/directories for matching.dllfiles. - Indexes types via
System.Reflection.Metadata. - Decompiles on demand via
ICSharpCode.Decompiler.
Assembly and type data are cached in memory, so repeated tool calls against the same project are fast.
Available tools
| Tool | Description |
|---|---|
| search-types | Search for .NET types across all assemblies in a project's dependency graph using wildcard patterns (e.g. *HttpClient*, Microsoft.Extensions.*Options). Returns type summaries including fully-qualified names. |
| decompile-type | Decompile a .NET type into C# source code. Supports full mode (complete source with method bodies) and signatures mode (API surface only). Large outputs are automatically offloaded to a temporary file. |
Installation
Prerequisites
Configure the MCP server in your client
Claude Code:
claude mcp add source-explorer -- dotnet dnx SourceExplorerMcp --yes
You can also add
--scope local,--scope useror--scope projectto the above command. It defaults tolocalif not specified.
Standard Config (works in most MCP clients):
{
"mcpServers": {
"source-explorer": {
"type": "stdio",
"command": "dotnet",
"args": [
"dnx",
"SourceExplorerMcp",
"--yes"
]
}
}
}
Configuration
| Environment Variable | Default | Description |
|---|---|---|
SOURCE_EXPLORER_MAX_INLINE_CHARS |
10000 |
Character threshold before decompiled source is offloaded to a temporary file instead of returned inline. |
Changelog
See CHANGELOG.md for a full list of changes between versions.
Licence
This project is licenced under the MIT Licence.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.