GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
CLR Intelligence and Runtime Forensic Bridge for AI Coding Agents.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"sharphy": {
"command": "dnx",
"args": [
"Sharphy.Cli",
"--yes"
]
}
}
}在终端中运行这条命令
claude mcp add sharphy -- dnx Sharphy.Cli --yes粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"sharphy": {
"command": "dnx",
"args": [
"Sharphy.Cli",
"--yes"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"sharphy": {
"type": "stdio",
"command": "dnx",
"args": [
"Sharphy.Cli",
"--yes"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 baharmaulidiii 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.1.1)于8天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 .NET。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Leveraging ECMA-335 Metadata Semantics, Cross-Platform Crash Dump Telemetry, and Rigid CIL Bytecode Navigation.
Architecture · Ecosystem · MCP Catalog · Agent Setup · Policies & Legal · Changelog · Contributing · Code of Conduct
[!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.
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:
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 │ └─────────────────────────────────────────────────────────────┘
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). |
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 │ │ 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 │ └──────────────────────────────────────────────┘
dotnet-dump, createdump, or OS crash reporting).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... │ └────────────────────────┴─────────────────────────┴─────────────────────────┘
sharphy_analyze_dumpAutomated 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.
sharphy_inspect_heapDeep managed heap inspection, traversing GC segments, measuring generation distribution (Gen 0, Gen 1, Gen 2, LOH, POH), calculating fragmentation, and pinpointing memory leak retainers.
sharphy_deadlock_detectorTraverses the CLR SyncBlock synchronization cache and active thread Monitor locks, building a Wait-For Graph (WFG) to detect thread synchronization deadlock cycles.
sharphy_decompile_methodReconstructs clean, modern idiomatic C# source code from compiled CIL bytecode using the embedded ILSpy engine, reconstructing async state machines and lambda captures.
sharphy_diff_assembliesPerforms semantic binary comparisons between two versions of an assembly, flagging added/removed types, breaking changes to public/protected APIs, and CIL instruction size shifts.
sharphy_inspect_metadataInspects ECMA-335 metadata tables, decoding TypeDef, MethodDef, FieldDef, custom attributes, P/Invoke native imports, and embedded resources.
sharphy_clean_obfuscationAnalyzes obfuscated assemblies, demangling Control Flow Graph (CFG) switch-flattening patterns, trimming excessi
只显示了开头部分;其余内容请在仓库中阅读