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

Resharper Cli MCP

作者:andypgray版本 1.8.0i★ –i在你的电脑上运行
注册名称io.github.andypgray/resharper-cli-mcp

安装

概览

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

ReSharper CLI inspection/cleanup via MCP. Unofficial: not affiliated with or endorsed by JetBrains.

PopNx MCP 的三大支柱

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

它能帮你做什么

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

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

安装

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

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: JB_SOLUTION_PATH, JB_SETTINGS_PATH, JB_CACHE_HOME, JB_EXTENSIONS, JB_EXTENSION_SOURCE, RESHARPER_MCP_TIMEOUT_SECS, RESHARPER_MCP_PREWARM, RESHARPER_MCP_CLEANUP_FILTER, RESHARPER_MCP_LOG_LEVEL, MAX_MCP_OUTPUT_TOKENS

你用的是哪个应用?

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

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

{
  "mcpServers": {
    "resharper-cli": {
      "command": "dnx",
      "args": [
        "Zphil.ReSharperCli",
        "--yes"
      ],
      "env": {
        "JB_SOLUTION_PATH": "your-value",
        "JB_SETTINGS_PATH": "your-value",
        "JB_CACHE_HOME": "your-value",
        "JB_EXTENSIONS": "your-value",
        "JB_EXTENSION_SOURCE": "your-value",
        "RESHARPER_MCP_TIMEOUT_SECS": "your-value",
        "RESHARPER_MCP_PREWARM": "your-value",
        "RESHARPER_MCP_CLEANUP_FILTER": "your-value",
        "RESHARPER_MCP_LOG_LEVEL": "your-value",
        "MAX_MCP_OUTPUT_TOKENS": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add resharper-cli --env JB_SOLUTION_PATH=your-value --env JB_SETTINGS_PATH=your-value --env JB_CACHE_HOME=your-value --env JB_EXTENSIONS=your-value --env JB_EXTENSION_SOURCE=your-value --env RESHARPER_MCP_TIMEOUT_SECS=your-value --env RESHARPER_MCP_PREWARM=your-value --env RESHARPER_MCP_CLEANUP_FILTER=your-value --env RESHARPER_MCP_LOG_LEVEL=your-value --env MAX_MCP_OUTPUT_TOKENS=your-value -- dnx Zphil.ReSharperCli --yes

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

在 Cursor 中打开

或者自己复制设置

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

{
  "mcpServers": {
    "resharper-cli": {
      "command": "dnx",
      "args": [
        "Zphil.ReSharperCli",
        "--yes"
      ],
      "env": {
        "JB_SOLUTION_PATH": "your-value",
        "JB_SETTINGS_PATH": "your-value",
        "JB_CACHE_HOME": "your-value",
        "JB_EXTENSIONS": "your-value",
        "JB_EXTENSION_SOURCE": "your-value",
        "RESHARPER_MCP_TIMEOUT_SECS": "your-value",
        "RESHARPER_MCP_PREWARM": "your-value",
        "RESHARPER_MCP_CLEANUP_FILTER": "your-value",
        "RESHARPER_MCP_LOG_LEVEL": "your-value",
        "MAX_MCP_OUTPUT_TOKENS": "your-value"
      }
    }
  }
}

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

在 VS Code 中打开

或者自己复制设置

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

{
  "servers": {
    "resharper-cli": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "Zphil.ReSharperCli",
        "--yes"
      ],
      "env": {
        "JB_SOLUTION_PATH": "your-value",
        "JB_SETTINGS_PATH": "your-value",
        "JB_CACHE_HOME": "your-value",
        "JB_EXTENSIONS": "your-value",
        "JB_EXTENSION_SOURCE": "your-value",
        "RESHARPER_MCP_TIMEOUT_SECS": "your-value",
        "RESHARPER_MCP_PREWARM": "your-value",
        "RESHARPER_MCP_CLEANUP_FILTER": "your-value",
        "RESHARPER_MCP_LOG_LEVEL": "your-value",
        "MAX_MCP_OUTPUT_TOKENS": "your-value"
      }
    }
  }
}

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

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

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

需要你填写的值

  • JB_SOLUTION_PATH env
    Solution to analyse when the working directory holds zero or several. The solutionPath tool argument overrides it for one call.
  • JB_SETTINGS_PATH env
    Explicit .DotSettings file for jb, mounted as a Custom layer above the solution's and every project's own settings.
  • JB_CACHE_HOME env
    ReSharper cache directory. Defaults to ~/.jb-cache.
  • JB_EXTENSIONS env
    Semicolon-separated ReSharper plugin IDs to load.
  • JB_EXTENSION_SOURCE env
    Custom NuGet source for those ReSharper plugins.
  • RESHARPER_MCP_TIMEOUT_SECS env
    Cap in seconds on one jb run, and on the wait for one already in flight. Defaults to 600, clamped to 60-86,400.
  • RESHARPER_MCP_PREWARM env
    Set to off to stop the background cache pre-warm that runs when a client connects.
  • RESHARPER_MCP_CLEANUP_FILTER env
    Set to off to run every cleanup against the whole solution rather than a filter of the files' projects.
  • RESHARPER_MCP_LOG_LEVEL env
    Minimum level for the rolling file log. Defaults to Warning.
  • MAX_MCP_OUTPUT_TOKENS env
    Output budget the response is rendered to fit. Set by the MCP client rather than by hand; 25,000 characters when unset.

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

它能做什么

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

基础检查i

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

  • ✓ 通过

    作者与仓库一致

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

  • … 尚未检查

    仍在维护

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

  • … 尚未检查

    有许可证

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

  • – 不适用

    端点有响应

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

  • – 不适用

    使用 OAuth 登录

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

  • … 尚未检查

    工具描述中没有隐藏指令

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

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

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

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

常见问题

Resharper Cli MCP 安全吗?

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

它需要哪些密钥或代码?

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

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

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

它还在维护吗?

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

哪些应用可以使用它?

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

有什么可以替代它?

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

替代选择

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

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

Spec Driven Development

作者:formulahendry

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

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

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

在云端运行★ 211昨天更新
安装

Recta

作者:RectaBuild

Cheaper cross-chain stablecoin routes for AI agents; 5 % of the verified saving, nothing if none.

电脑或云端今天更新
安装

作者的 README

打开 README

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

resharper-cli-mcp

resharper-cli-mcp is an MCP server that runs JetBrains' ReSharper command-line tools for a coding agent. Its resharper_inspect tool runs jb inspectcode and returns the issues, and resharper_cleanup runs jb cleanupcode over the files the agent names. jb reads the solution's .DotSettings and .editorconfig as ReSharper does in the IDE, so the agent is held to the same severities and code style. The server is unofficial, not affiliated with or endorsed by JetBrains, and it runs a jb you install yourself.

Why not call jb directly?

An agent can run jb from a shell. It then gets a report file that can list thousands of issues, a cleanup profile it must name on every call, and a cold cache in each new checkout. The server handles each of these:

  • Issues come back as markdown grouped by file, re-rendered at lower detail until they fit the client's output budget.
  • jb cleanupcode runs Built-in: Full Cleanup unless it is given --profile, whatever the solution's settings say. The server passes the profile the solution names under SilentCleanupProfile, and reports which files cleanup changed.
  • The cache is warmed when a client connects, unless RESHARPER_MCP_PREWARM=off. A new worktree or clone is seeded from another checkout's warm cache.
  • Runs are queued, because otherwise a second concurrent jb on one solution builds a cold cache of its own.
  • A run reports progress every ten seconds, with the elapsed time and the cap.

Run times

An inspect analyses the whole solution, because resolving symbols needs the full solution model, so files narrows what is reported, not what is analysed. A cleanup loads only the projects its files belong to and every project those reference, through a solution filter the server writes, and on a warm cache it takes longer the more files it is given. RESHARPER_MCP_CLEANUP_FILTER=off makes it load the whole solution. The first run against a solution builds ReSharper's caches and typically takes minutes, then later runs against the same cache are several times faster.

Each run is capped at RESHARPER_MCP_TIMEOUT_SECS, defaulting to 10 minutes. If your client's own tool-call timeout is shorter than a cold run, raise that too.

Quickstart

The server needs the .NET 10 SDK and JetBrains' ReSharper Command Line Tools, which are free and need no ReSharper license. Both install as .NET global tools:

dotnet tool install -g JetBrains.ReSharper.GlobalTools

dotnet tool install -g Zphil.ReSharperCli

Register the command resharper-cli-mcp, which takes no arguments, with your MCP client. For Claude Code, add it to .mcp.json:

{

"mcpServers": { "resharper": { "command": "resharper-cli-mcp" } } }

The server uses the one .sln or .slnx in its working directory. When there are none or several, set JB_SOLUTION_PATH in the config's env block.

Other clients differ only in where the entry goes and the key around it:

ClientWhere the entry goesTop-level key
Visual Studio 2022 17.14+ and 2026.mcp.json beside the solutionservers, with "type": "stdio"
VS Code.vscode/mcp.jsonservers, with "type": "stdio"
Cursor.cursor/mcp.json, or ~/.cursor/mcp.json for every projectmcpServers
Rider AI AssistantSettings \Tools \AI Assistant \MCPmcpServers
Junie.junie/mcp/mcp.json, or ~/.junie/mcp/mcp.json for every projectmcpServers
Clinecline_mcp_settings.json, under Configure MCP ServersmcpServers

Inside Rider, the IDE's own analysis already gives its agents the inspection results, and resharper_inspect would run a second analysis of the solution alongside it. There the server's sole use is resharper_cleanup, because Rider's MCP tools can reformat a file but cannot run a cleanup profile.

For Codex CLI, run codex mcp add resharper -- resharper-cli-mcp. llms-install.md has the full entry for each client as a checklist, so you can point an agent at it to do the install.

VS Code, Visual Studio, Cursor and LM Studio can add the server in one click once both tools are installed:

Install as a Claude Code plugin

This repository is also a Claude Code plugin marketplace with one plugin:

/plugin marketplace add andypgray/resharper-cli-mcp

/plugin install resharper-cli-mcp@resharper-cli-mcp

The plugin starts the server with dotnet dnx, pinned to one release, and claude plugin update resharper-cli-mcp@resharper-cli-mcp moves the pin to the latest. You still install the .NET 10 SDK and jb, and ReSharper's caches live in the plugin's data directory.

Install as a Claude Desktop extension

Download resharper-cli-mcp- .mcpb from the latest release, double-click it, and set Solution file to the .sln or .slnx to analyse. Claude Desktop starts the server outside your repository, so it has no working directory to find a solution in. The bundle carries only the server, so install the .NET 10 runtime and the ReSharper Command Line Tools first. Run cap moves the 10-minute limit on one run.

Tools

ToolMutates filesWhat it does
resharper_inspectnoRuns jb inspectcode and returns the issues, grouped by file.
resharper_cleanupyesRuns jb cleanupcode on the given files and reports which ones changed on disk.
resharper_reset_cacheno (deletes caches)Drops the solution's ReSharper cache so the next run starts cold, or reclaims the cache a deleted checkout left behind.

resharper_inspect takes files globs, solution-relative or absolute, and a severity of Suggestion, Warning (the default) or Error. At severity=Suggestion a response reads:

Found 2 issue(s) across 1 file(s):
/repo/src/HomeController.cs
  • Line 8 [WARNING] RedundantUsingDirective: Using directive is not required by the code and can be safely removed.
  • Line 24 [SUGGESTION] FieldCanBeMadeReadOnly.Local: Field can be made readonly.

report=Markdown writes every issue with its own message to a file under the system temp directory. The response names the file, and the server deletes it after seven days. detail caps how detailed the response may be, down to a one-line Minimal, so detail=Minimal report=Markdown surveys a legacy solution in one call.

resharper_cleanup changes style, never behaviour: formatting, using directives, var style, modifier order, redundant qualifiers and parentheses, braces. Without a profile argument it uses the profile named under SilentCleanupProfile in the solution's settings, then Built-in: Full Cleanup. Where Full Cleanup would churn legacy code, name a narrower profile there. Every call then uses it, including calls from an agent that does not know it exists.

For a codebase with no style settings yet, start from ReSharper's Detect Code Style Settings, or in Rider Auto-Detect Code Style Rules. The derive_style_guide prompt walks an agent through the same job without an IDE.

Configuration

Set these in the client config's env block. All are optional. The JB_ variables are passed on to jb, and the RESHARPER_MCP_ ones govern the server itself.

VariableDefaultPurpose
JB_SOLUTION_PATHdiscoveredSolution to use when the working directory has none or several; the solutionPath tool argument overrides it for one call.
JB_SETTINGS_PATHnoneA .DotSettings file outside the solution's own, mounted as a Custom layer above the solution's and every project's settings.
JB_CACHE_HOME~/.jb-cacheReSharper cache directory.
JB_EXTENSIONSnoneSemicolon-separated ReSharper plugin IDs to load.
JB_EXTENSION_SOURCEjb's ownCustom NuGet source for those plugins.
RESHARPER_MCP_TIMEOUT_SECS600Cap in seconds on one jb run, and on the wait for one already in flight, clamped to 60–86,400.
RESHARPER_MCP_PREWARMonoff disables the cache pre-warm when a client connects.
RESHARPER_MCP_CLEANUP_FILTERonoff makes every cleanup load the whole solution rather than a solution filter of the files' projects.
RESHARPER_MCP_LOG_LEVELWarningLevel for the rolling file log: Verbose, Debug, Information, Warning, Error or Fatal. The Microsoft names Trace and Critical also work, and any value it does not recognise falls back to Warning.
MAX_MCP_OUTPUT_TOKENS25,000 charactersClient output budget that responses are reduced to fit, at 2.5 characters per token.

The solution comes from the solutionPath argument, then JB_SOLUTION_PATH, then the one .sln or .slnx in the working directory, with no walk up to a parent. The first two also accept a solution filter (.slnf), whose settings are read from the solution it names. Logs roll daily under %LOCALAPPDATA%\Zphil.ReSharperCli\logs on Windows, and the platform equivalent elsewhere.

Two guides go deeper, and the server serves both as MCP resources for an agent to read. The setup guide (resharper://guides/setup) covers discovery, the cache, run times and output limits. The configuration guide (resharper://guides/configuration) covers settings layers, cleanup profiles, and keeping a deliberate style from being reverted.

Cleanup reminde

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

问 PopNx