v1.1.2 Released – Native MCP CLR Intelligence Bridge

CLR Intelligence & Runtime Forensic Bridge for AI Coding Agents

Eliminate runtime blindness. Equip Cursor, Claude Code, and Windsurf with low-level CLR diagnostics, cross-platform memory crash dump root-cause analysis, and surgical CIL bytecode decompilation.

dotnet tool install -g Sharphy.Cli

Architectural Pillars

Deterministic CLR runtime diagnostics exposed directly to LLM semantic reasoning

Memory Crash Dump Forensics

Powered by Microsoft ClrMD. Automatically inspects Windows and Linux crash dumps, analyzes managed heap fragmentation, and constructs thread synchronization Wait-For Graphs.

High-Fidelity CIL Decompilation

Embedded ILSpy decompiler engine transforms raw CIL opcode streams into modern, idiomatic C# source code, complete with async state machine and compiler attribute reconstruction.

Bytecode Mutation & Sandbox

Mono.Cecil metadata inspection, surgical opcode patching, and dynamic reflection safely encapsulated within collectible AssemblyLoadContext sandboxes.

10 MCP Tools Catalog

Standardized Model Context Protocol tool endpoints available via JSON-RPC 2.0 Stdio

sharphy_analyze_dumpDiagnostics

Automatic Root Cause Analysis (RCA) on Windows and Linux crash dumps. Extracts thread callstacks and exception objects.

sharphy_inspect_heapDiagnostics

Deep managed heap analysis, GC generation allocations, ephemeral/LOH/POH pinned handle telemetry, and Compaction Resistance Risk Scoring.

sharphy_deadlock_detectorDiagnostics

Traces thread Monitor locks and SyncBlock synchronization caches to detect deadlock cycles.

sharphy_decompile_methodDecompiler

High-fidelity decompilation of CIL bytecode into idiomatic modern C# using the embedded ILSpy engine.

sharphy_diff_assembliesDecompiler

Semantic ECMA-335 assembly comparison, overload & generic signature tracking, and unified LCS CIL instruction diffing.

sharphy_clean_obfuscationDecompiler

Control Flow Graph (CFG) switch flattening detection, multi-pattern decryptor classification, and branch/EH-safe redundant NOP trimming.

sharphy_inspect_metadataBytecode

ECMA-335 metadata hierarchy inspector, decoding TypeDef, MethodDef, FieldDef, custom attributes, and P/Invoke imports.

sharphy_extract_tokensBytecode

Dynamic reflection inside an isolated, collectible AssemblyLoadContext without file locking or process pollution.

sharphy_patch_ilBytecode

Surgical CIL instruction patching, opcode replacement, branch offset adjustments, and re-emitting patched assemblies.

sharphy_generate_wrapperBytecode

Synthesizes zero-overhead C# wrappers accessing private members and fields using .NET 8+ [UnsafeAccessor].

Agent Setup Guide

Integrate Sharphy with Cursor, Claude Code, Windsurf, or Claude Desktop in seconds

Add the following JSON-RPC configuration to your agent config file:

{
  "mcpServers": {
    "sharphy": {
      "command": "sharphy",
      "args": ["mcp", "start"]
    }
  }
}

Multi-Targeting .NET & Automated GitHub Actions

Sharphy delivers native multi-targeting across .NET 8.0 (LTS), .NET 9.0 (STS), and .NET 10.0 (Latest). Build checks, unit test suites, NuGet packaging, and web docs deployments are orchestrated through the Release Orchestrator workflow.