原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Dotnet Sherlock MCP

作者:jcucci版本 2.15.0i★ –i在你的电脑上运行
注册名称io.github.jcucci/dotnet-sherlock-mcp

安装

概览

作者提供的说明(英文原文)

.NET assembly introspection MCP server with advanced reflection and type analysis capabilities

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: SHERLOCK_TOOL_PROFILE, SHERLOCK_SOURCE_FETCH

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "dotnet-sherlock": {
      "command": "dnx",
      "args": [
        "Sherlock.MCP.Server",
        "--yes"
      ],
      "env": {
        "SHERLOCK_TOOL_PROFILE": "your-value",
        "SHERLOCK_SOURCE_FETCH": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add dotnet-sherlock --env SHERLOCK_TOOL_PROFILE=your-value --env SHERLOCK_SOURCE_FETCH=your-value -- dnx Sherlock.MCP.Server --yes

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "dotnet-sherlock": {
      "command": "dnx",
      "args": [
        "Sherlock.MCP.Server",
        "--yes"
      ],
      "env": {
        "SHERLOCK_TOOL_PROFILE": "your-value",
        "SHERLOCK_SOURCE_FETCH": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "dotnet-sherlock": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "Sherlock.MCP.Server",
        "--yes"
      ],
      "env": {
        "SHERLOCK_TOOL_PROFILE": "your-value",
        "SHERLOCK_SOURCE_FETCH": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • SHERLOCK_TOOL_PROFILE env
    Tool profile to expose: 'full' (default, every tool) or 'core' (21 essential tools).
  • SHERLOCK_SOURCE_FETCH env
    Where get_member_source may fetch Source Link files from: 'known-hosts' (default; GitHub, GitLab, Bitbucket and Azure DevOps), 'any' host, or 'off'.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 jcucci 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 18474 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 18474 个服务器的 59% 更新
  • 基础检查结果等于或优于此分类中其他 18474 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Dotnet Sherlock MCP 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(2.15.0)于34天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 .NET。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, SwarmMemo

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

作者:formulahendry起步阶段↓ 66/周★ 44014个月前更新

在你的电脑上运行

Remote Desktop Commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

作者:desktop-commander正在增长★ 2113天前更新

在云端运行✓ desktopcommander.app

SwarmMemo

Talk with agent swarms: rooms, private messages and paid tasks for AI agents

作者:Hugo0非常新今天更新

在云端运行✓ swarmmemo.com

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Sherlock MCP for .NET

Sherlock MCP for .NET is a comprehensive Model Context Protocol (MCP) server that provides deep introspection capabilities for .NET assemblies. It enables Language Learning Models (LLMs) to analyze and understand your .NET code with precision, delivering accurate and context-aware responses for complex development scenarios.

This tool is essential for developers who want to harness LLM capabilities for:

  • Deep codebase analysis - Understanding complex .NET architectures and dependencies
  • Precise type information - Getting detailed metadata about types, members, and their signatures
  • Automated documentation - Extracting and utilizing XML documentation and attributes
  • Custom tooling - Building sophisticated tools that interact with .NET assemblies
  • Code generation - Creating accurate code based on existing type structures

Key Features

  • Comprehensive MCP Server: Provides 47 specialized tools for .NET assembly analysis, with an optional 24-tool core profile whose other tools load on demand in groups
  • Advanced Assembly Introspection: Deep reflection-based analysis of types, members, and metadata
  • Rich Member Analysis: Detailed inspection of methods, properties, fields, events, and constructors
  • Smart Filtering & Pagination: Advanced filtering by name/attributes with efficient pagination for large datasets
  • XML Documentation Integration: Automatic extraction of summary, parameters, returns, and remarks
  • Performance Optimized: Caching, pagination, and memory-efficient processing
  • Stable JSON API: Consistent envelopes with versioning and structured error codes
  • Modern .NET: Targets .NET 8, 9 and 10
  • Project Integration: Solution and project file analysis with dependency resolution
  • Workflow Prompts: explore_package, explain_type and who_calls prompts give one-click entry points into common analysis workflows
  • Current MCP SDK: Built on ModelContextProtocol 2.1.0 (GA)
  • Current MCP Specification: Speaks protocol revision 2026-07-28, and negotiates down automatically for clients on earlier revisions

What's New in 2.15.0

  • Read and compare code: get_member_source returns a member's original source through its PDB or Source Link, decompile_member / decompile_type decompile to C#, and compare_api_surface diffs two assembly or package versions and flags breaking changes.
  • Framework patterns: find_endpoints, find_service_registrations, find_ef_entities and find_handlers list ASP.NET Core endpoints, DI registrations, EF Core entities and MediatR handlers.
  • Accurate resolution: framework types resolve against the target framework's reference pack, dependencies resolve from the project's project.assets.json (get_package_graph shows the restored graph), and project tools evaluate projects with MSBuild.
  • Agent ergonomics: open_assembly handles, workflow prompts (explore_package, explain_type, who_calls), Mermaid diagrams for hierarchies and call graphs, and on-demand tool groups with discovery hints under the core profile.
  • Windows-friendly: inspected assemblies are no longer locked, so rebuilds succeed while the server is running. See CHANGELOG.md for full details.

Installation

Run with dnx (.NET 10 SDK)

With the .NET 10 SDK, dnx downloads the package from NuGet and runs it directly — no install step:

dnx -v q --yes Sherlock.MCP.Server@2.15.0

--yes skips the interactive confirmation prompt, which an MCP client launching the server over stdio can't answer. -v q stops dnx from printing a "Skipping NuGet package signature verification." notice to stdout the first time it downloads a version, which would otherwise corrupt the MCP stream and fail that first connection. Both are dnx options, so they must come before the package id; anything after it is passed to the server. Pinning the version keeps launches reproducible; bump it when you want to upgrade. The package is published with the McpServer package type, so it is also listed as an MCP server on NuGet.org.

Install as a global tool

On any supported SDK (.NET 8 or later), install the global tool from NuGet (adds sherlock-mcp to your PATH):

dotnet tool install -g Sherlock.MCP.Server

Alternatively, during development you can run the server locally:

dotnet run --project src/server/Sherlock.MCP.Server.csproj

Configure Your MCP Client

Sherlock runs as a standard MCP server that communicates over stdio.

Claude Code plugin

This repository is also a Claude Code plugin marketplace. The sherlock plugin bundles the server (launched with dnx, so it needs the .NET 10 SDK) and a skill that teaches the agent the locate → orient → drill-in → relationships workflow:

/plugin marketplace add jcucci/dotnet-sherlock-mcp

/plugin install sherlock@dotnet-sherlock-mcp

The plugin starts the server with the core tool profile, which matches the tools the skill covers. The agent can add the other tools by group with load_tools when it needs them (see Tool groups). To expose every tool from the start, set SHERLOCK_TOOL_PROFILE=full in the environment Claude Code is launched from.

Each user runs these commands once; restart Claude Code (or run /reload-plugins) afterwards. To pick up a new release, run /plugin marketplace update dotnet-sherlock-mcp. If you previously registered Sherlock with claude mcp add, remove that entry (claude mcp remove sherlock) so the tools aren't loaded twice.

Team setup

To offer the plugin to everyone working in a repository, commit the following to that repository's .claude/settings.json. Claude Code prompts each teammate to install it when they trust the folder, so nobody has to type the commands above:

{

"extraKnownMarketplaces": { "dotnet-sherlock-mcp": { "source": { "source": "github", "repo": "jcucci/dotnet-sherlock-mcp" } } }, "enabledPlugins": { "sherlock@dotnet-sherlock-mcp": true } }

Teammates still need the .NET 10 SDK on their PATH for dnx.

Using dnx
  • Claude Code:
claude mcp add sherlock -- dnx -v q --yes Sherlock.MCP.Server@2.15.0
  • VS Code (.vscode/mcp.json):
{

"servers": { "sherlock": { "type": "stdio", "command": "dnx", "args": ["-v", "q", "--yes", "Sherlock.MCP.Server@2.15.0"] } } }

Using the global tool
  • Cursor: Settings → MCP / Custom tools → Add tool → Command: sherlock-mcp
  • Claude Desktop / other MCP clients: Add a server entry pointing to the sherlock-mcp command. Example JSON entry (refer to your client’s docs for exact file location/format):
{

"servers": { "sherlock": { "command": "sherlock-mcp" } } }

No arguments are required. The server self-registers all tools when launched.

Tool profiles

Large tool lists cost agents context and discoverability (Claude Code switches to deferred Tool Search once tool descriptions grow past roughly 10% of the context window). Sherlock can start with a smaller surface:

ProfileToolsContents
full (default)47Every tool, including the deprecated per-kind member tools
core24load_tools and invoke_tool (see Tool groups), discovery (find_assembly_by_class_name, find_assembly_by_file_name, find_assembly_by_nuget_package, get_project_output_paths, open_assembly), orientation (get_assembly_info, get_types_from_assembly, get_type_info, get_type_hierarchy), members and docs (get_type_members, search_members, analyze_method, get_xml_docs_for_type, get_xml_docs_for_member) and relationships (find_implementations_of, find_methods_returning, find_extension_methods_for, find_references_to, get_method_calls), source (get_member_source, decompile_member) and API diffs (compare_api_surface)

Select a profile with the --profile argument or the SHERLOCK_TOOL_PROFILE environment variable (the argument wins). An unknown profile name stops the server with an error.

{

"servers": { "sherlock": { "command": "sherlock-mcp", "args": ["--profile", "core"] // or: "env": { "SHERLOCK_TOOL_PROFILE": "core" } } } }

Tool groups

Under the core profile every other tool belongs to a group that the agent can load when it needs it:

GroupTools
frameworksfind_endpoints, find_service_registrations, find_ef_entities, find_handlers
projectanalyze_solution, analyze_project, resolve_package_references, get_package_graph, find_deps_json_dependencies
metadataanalyze_assembly, get_generic_type_info, get_nested_types, get_type_attributes, get_member_attributes, get_parameter_attributes
decompiledecompile_type
configget_runtime_options, update_runtime_options
legacythe deprecated analyze_type, get_all_type_members and get_type_{methods,properties,fields,events,constructors}
  • `load_tools`: with no arguments, lists every group, its tools and whether it is loaded. With groups=['frameworks', …], it adds those tools to the server's tool list and returns each loaded tool's name, description and input schema. The server then sends notifications/tools/list_changed. Under protocol revision 2026-07-28 that only reaches clients that asked for it through subscriptions/listen.
  • `invoke_tool`: calls a loaded tool by name with its arguments object and returns that tool's own result. Clients that never refresh their tool list can still use loaded groups this way. Calling a tool whose group isn't loaded fails with ToolNotLoaded and names the group.
  • Discovery hints: core results can carry hints[], each { tool, reason, group }, pointing at a related tool. Examples:
  • get_type_info on a type with nested types or generic parameters, or one that is a DbContext, controller or MediatR handler;
  • find_implementations_of / find_references_to / find_extension_methods_for on those framework types or IServiceCollection;
  • decompile_member → decompile_type;
  • get_project_output_paths → analyze_project and get_package_graph.

Dependency errors suggest get_package_graph. group is null for core tools.

  • Tool list caching: under core, tools/list is marked cacheScope: private, since a session's tool list grows as groups load. Under full, it stays public.

The full profile lists every tool and omits load_tools and invoke_tool.

Auto-Configure for .NET Projects

You usually don't need to paste anything. Sherlock ships its usage guidance in the MCP instructions field returned at initialize, and most MCP clients (including Claude Code) surface that to the agent automatically — so the guidance stays correct and versioned with the package, with no copy-paste to maintain.

The snippets below are optional reinforcement. Keep them short and principle-based rather than enumerating tool names and workflows: a static list pasted into your repo will drift as Sherlock's tools evolve, whereas the tools' own descriptions (and the server instructions) always match the version you're running.

Tool names are exposed in snake_case (get_type_members, search_members, …); argument names stay camelCase (projection, nameContains).

Claude Code (CLAUDE.md)

If you installed the Claude Code plugin, its skill already covers this. Otherwise, you can add a short, optional pointer to your project's CLAUDE.md:

## .NET Assembly Analysis

Use the Sherlock MCP tools (get_type_members, search_members, …) for .NET type/assembly questions instead of guessing. Locate DLLs with the find_assembly_by_* / `get_project_outp

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx