Sharphy MCP Server
CLR Intelligence and Runtime Forensic Bridge for AI Coding Agents.
Sharphy scores 68 (Good), licensed Apache-2.0 and written in C#. It installs as a local process. It declares 10 tools. Filed under Uncategorized. GitHub shows 3 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
68 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: apache-2.0.
License, quality and maintenance
Quality: Grade B
70/100 for listing completeness. Lost points: 10 of 10 tools barely described, short summary, no docs link.
How quality is graded
Where the 68 comes from
22 + 20 + 2 + 10 + 4 + 10 = 68. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 2 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "baharmaulidiii-sharphy": { "command": "dnx", "args": [ "Sharphy.Cli" ] } }}
Environment variables
This server does not declare environment variables.
Tools10Tool docs quality grade F
All capabilities1.
7.
3.
4.
5.
8.
10.
2.
6.
sharphy_patch_iltool9.
About
Sharphy: CLR Intelligence & Runtime Forensic Bridge
Native Model Context Protocol (MCP) Server Empowering AI Coding Agents as Advanced .NET Runtime Diagnosticians, Memory Forensic Analysts, and Binary Architects.
Leveraging ECMA-335 Metadata Semantics, Cross-Platform Crash Dump Telemetry, and Rigid CIL Bytecode Navigation.
[!CAUTION] Legal Disclaimer & Limitation of Liability Sharphy is engineered exclusively for good-faith security research, production crash dump diagnostics, vulnerability assessments, incident response, and lawful software engineering. Users bear sole civil and criminal responsibility for complying with applicable territorial cyber laws, third-party End User License Agreements (EULAs), and intellectual property rights. The developer disclaims any liability for malicious misuse or unlawful reverse engineering. Full details: DISCLAIMER.md.
[!IMPORTANT] Install and execute Sharphy only from official distribution channels: verified NuGet packages (
Sharphy.Cliunder the verifiedSharphy.*reserved prefix), official Model Context Protocol (MCP) Registry (io.github.baharmaulidiii/sharphy), or direct compilation from the official repository at github.com/baharmaulidiii/sharphy.
Architecture Overview & Philosophy
Mainstream AI coding agents (Cursor, Claude Code, Windsurf, Copilot) operate primarily on raw source code heuristics in an editor. They suffer from runtime blindness when confronting:
- Production memory crashes and unhandled fatal exceptions
- Multi-threaded synchronization deadlocks and lock cycle contention
- Large Object Heap (LOH) fragmentation and memory leaks
- Compiled third-party binaries lacking source code availability
Sharphy serves as a deterministic runtime forensic bridge implementing the open Model Context Protocol (MCP) specification. Over an isolated JSON-RPC 2.0 Stdio channel, Sharphy exposes Microsoft low-level diagnostics and decompilation engines directly to semantic AI reasoning loops.
┌─────────────────────────────────────────────────────────────┐
│ AI Coding Agent Client │
│ (Cursor / Claude Code / Windsurf / LLM) │
└──────────────────────────────┬──────────────────────────────┘
│ JSON-RPC 2.0 over Stdio
▼
┌─────────────────────────────────────────────────────────────┐
│ Sharphy.Server (Host) │
│ ┌─────────────────────────────────────────────────────┐ │
│ │ Pure Stdio Channel (stdout: Payloads / stderr: Log)│ │
│ │ JSON-RPC Dispatcher & Tool Registry (10 Tools) │ │
│ └──────────────────────────┬──────────────────────────┘ │
└──────────────────────────────┼──────────────────────────────┘
│ Strongly-Typed In-Process Calls
▼
┌─────────────────────────────────────────────────────────────┐
│ Sharphy.Core Engine │
│ ┌───────────────────────┐ ┌───────────────────────┐ │
│ │ ClrMD Forensics │ │ ILSpy Engine │ │
│ │ (Crash Dump & Heap) │ │ (C# Decompilation) │ │
│ ├───────────────────────┤ ├───────────────────────┤ │
│ │ Mono.Cecil Engine │ │ Roslyn & Sandbox │ │
│ │ (Metadata & Mutation) │ │ (UnsafeAccessor & ALC)│ │
│ └───────────────────────┘ └───────────────────────┘ │
└──────────────────────────────┬──────────────────────────────┘
│ Deterministic Low-Level Inspection
▼
┌─────────────────────────────────────────────────────────────┐
│ Runtime Analysis Target │
│ • Windows / Linux Crash Dump Files (.dmp / ELF core dump) │
│ • Compiled Binary Assemblies (.dll / .exe ECMA-335) │
│ • Active Runtime Processes & Isolated AssemblyLoadContext │
└─────────────────────────────────────────────────────────────┘
Package Ecosystem & Roles
The Sharphy solution is organized into three modular projects with distinct boundaries:
| Package / Module | Distribution | Target Audience | Architectural Role & Technical Scope |
|---|---|---|---|
Sharphy.Cli | .NET Global Tool | End Users & Agents | Command-line entry point. Operates as an instant zero-configuration launcher for the MCP host server (sharphy mcp start) or quick inspection utilities. |
Sharphy.Server | Class Library / Host | Agent Frameworks & Hosts | Implements the official Model Context Protocol (MCP) using JSON-RPC 2.0. Enforces pure Stdio stream separation: stdout is dedicated to JSON-RPC payloads, while all internal diagnostic logging is routed to stderr. |
Sharphy.Core | Class Library Engine | CLR Engineers & Builders | Pure analytical engine with no MCP protocol dependencies. Abstacts low-level libraries: Microsoft.Diagnostics.Runtime (ClrMD), ICSharpCode.Decompiler (ILSpy), Mono.Cecil, and Microsoft.CodeAnalysis.CSharp (Roslyn). |
Operational Architecture: Zero-Footprint Production Forensics
A common enterprise architectural question is whether diagnostic servers must be deployed to live production machines.
Does Sharphy need to be installed on your production servers? NO.
Sharphy follows a Zero-Footprint, Post-Mortem Forensic Workflow. The analytical engines, decompilers, and AI agents run strictly in isolated development, CI/CD, or security analyst workstations:
┌──────────────────────────────────────────────┐
│ PRODUCTION ENVIRONMENT │
│ (Zero Sharphy Footprint Required) │
│ │
│ 1. Unhandled crash / freeze occurs │
│ 2. Collect memory dump via official CLI: │
│ dotnet-dump collect -p <PID> │
│ 3. Output: crash.dmp (Windows) / core (ELF) │
└──────────────────────┬───────────────────────┘
│ Secure SCP / S3 Dump Transfer
▼
┌──────────────────────────────────────────────┐
│ ANALYST WORKSTATION / AI ENVIRONMENT │
│ (Isolated Off-Site Inspection) │
│ │
│ • AI Coding Agent (Cursor / Claude Code) │
│ • Sharphy MCP Server (Sharphy.Cli / Server) │
│ • Automated RCA: │
│ - sharphy_analyze_dump │
│ - sharphy_inspect_heap │
│ - sharphy_deadlock_detector │
└──────────────────────────────────────────────┘
Key Operational Benefits:
- Zero Production Risk: No third-party daemons, background agents, or persistent listeners are installed on mission-critical production servers.
- Standard Microsoft Tooling: Dump collection uses standard, officially supported Microsoft utilities (
dotnet-dump,createdump, or OS crash reporting). - Regulatory & Audit Compliance: Keeps production environments compliant with strict compliance standards (PCI-DSS, ISO/IEC 27001, SOC 2) by avoiding intrusive monitoring hooks.
- Air-Gapped & Offline Ready: Analysis can be performed in completely isolated, offline lab environments without remote runtime connectivity.
10 MCP Tools Catalog
Sharphy exposes ten specialized tools covering the full spectrum of .NET runtime analysis:
┌────────────────────────────────────────────────────────────────────────────┐
│ SHARPHY 10 MCP TOOLS CATALOG │
├────────────────────────┬─────────────────────────┬─────────────────────────┤
│ Memory & Forensics │ Decompilation & Diff │ Bytecode & Metadata │
├────────────────────────┼─────────────────────────┼─────────────────────────┤
│ • sharphy_analyze_dump │ • sharphy_decompile_... │ • sharphy_inspect_me... │
│ • sharphy_inspect_heap │ • sharphy_diff_assem... │ • sharphy_extract_to... │
│ • sharphy_deadlock_... │ • sharphy_clean_obfu... │ • sharphy_patch_il │
│ │ │ • sharphy_generate_w... │
└────────────────────────┴─────────────────────────┴─────────────────────────┘
1. sharphy_analyze_dump
Automated Root Cause Analysis (RCA) on Windows (.dmp) and Linux (ELF core dump) CoreCLR memory crash dumps. Extracts crashing thread call stacks, unhandled exception objects, and faulty HRESULT codes.
2. sharphy_inspect_heap
Deep managed heap inspection, traversing GC segments, measuring generation distribution (Gen 0, Gen 1, Gen 2, LOH, POH), calculating fragmentation, and pinpointing memory leak retainers.
3. sharphy_deadlock_detector
Traverses the CLR SyncBlock synchronization cache and active thread Monitor locks, building a Wait-For Graph (WFG) to detect thread synchronization deadlock cycles.
4. sharphy_decompile_method
Reconstructs clean, modern idiomatic C# source code from compiled CIL bytecode using the embedded ILSpy engine, reconstructing async state machines and lambda captures.
5. sharphy_diff_assemblies
Performs semantic binary comparisons between two versions of an assembly, flagging added/removed types, breaking changes to public/protected APIs, and CIL instruction size shifts.
6. sharphy_inspect_metadata
Inspects ECMA-335 metadata tables, decoding TypeDef, MethodDef, FieldDef, custom attributes, P/Invoke native imports, and embedded resources.
7. sharphy_clean_obfuscation
Analyzes obfuscated assemblies, demangling Control Flow Graph (CFG) switch-flattening patterns, trimming excessive NOP sleds, and identifying dynamic proxy delegates.
8. sharphy_extract_tokens
Extracts tokens and types by loading assemblies into an isolated, collectible AssemblyLoadContext (isCollectible: true) without locking files on disk or polluting the host process.
9. sharphy_patch_il
Surgically modifies CIL bytecode instructions by replacing target opcodes, adjusting branch offsets, and re-emitting patched binary assemblies.
10. sharphy_generate_wrapper
Generates zero-overhead, strongly-typed C# wrapper code leveraging .NET 8+ [UnsafeAccessor] attributes to access private members and fields without reflection overhead.
Installation & Agent Integration
Quick Start
Install the global CLI tool via the .NET SDK:
dotnet tool install -g Sharphy.Cli
Agent Configuration (MCP Setup)
Add Sharphy to your AI coding client configuration:
Cursor (~/.cursor/mcp.json) or Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"sharphy": {
"command": "sharphy",
"args": ["mcp", "start"]
}
}
}
Multi-Targeting Architecture
Sharphy is engineered with native multi-targeting without emulation layers:
- .NET 8.0 (LTS): Long-term enterprise stability.
- .NET 9.0 (STS): Modern GC and performance optimizations.
- .NET 10.0 (Latest): Cutting-edge compiler APIs and runtime features.
Community Standards, Security & Legal Policies
- Engineering standards and workflows in CONTRIBUTING.md.
- Community code of conduct in CODE_OF_CONDUCT.md.
- Threat modeling and vulnerability reporting in SECURITY.md.
- Accessibility commitments in ACCESSIBILITY.md.
- Trademark and brand guidelines in TRADEMARK.md.
- Liability limitations in DISCLAIMER.md.
- Third-party attributions and licensing in THIRD_PARTY_NOTICE.md.
License
Sharphy is distributed under the Apache License, Version 2.0. Copyright (c) 2026 Moh. Baharudin Yuda Maulidi. All rights reserved.
Frequently asked questions
What is Sharphy MCP Server?
CLR Intelligence and Runtime Forensic Bridge for AI Coding Agents.
How do I install Sharphy MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Sharphy MCP Server runs locally from the NuGet package Sharphy.Cli with the command dnx Sharphy.Cli.
Is Sharphy MCP Server free and open source?
Yes. Sharphy MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Sharphy MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Sharphy MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does Sharphy MCP Server provide?
Sharphy MCP Server provides 10 tools, including sharphy_analyze_dump, sharphy_clean_obfuscation, sharphy_deadlock_detector, and sharphy_decompile_method. See the full tool list for descriptions and parameters.
How is Sharphy MCP Server's trust score calculated?
Sharphy MCP Server scores 68 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.