Resharper Cli MCP
概览
作者提供的说明(英文原文)
ReSharper CLI inspection/cleanup via MCP. Unofficial: not affiliated with or endorsed by JetBrains.
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 开发者工具
安装
选择你使用的 AI 应用,然后复制设置。
通过 2/2 项检查 · 在你的电脑上运行
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要 Resharper Cli MCP 的密钥(在开发者网站注册,可能收费) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
打开电脑版 Claude 应用的设置文件
SettingsDeveloperEdit Config
粘贴这些设置并保存文件
{ "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 再重新打开
试一试
用 Resharper Cli MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Resharper Cli MCP,或回答中出现 Resharper Cli MCP 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Resharper Cli MCP
Resharper Cli MCP 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 Resharper Cli MCP 的应用
- 需要 Resharper Cli MCP 的密钥(在开发者网站注册,可能收费) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
- 需要 Resharper Cli MCP 的密钥(在开发者网站注册,可能收费)
- 需要 Resharper Cli MCP 的密钥(在开发者网站注册,可能收费)
- 需要 Resharper Cli MCP 的密钥(在开发者网站注册,可能收费)
B · 开发者工具 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- Sentry✓ ChatGPT
- Front-End Checklist✓ ChatGPT
- Compiler Explorer✓ ChatGPT
可连接 Claude Code,但需要先准备
需要 Resharper Cli MCP 的密钥(在开发者网站注册,可能收费)
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
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按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Claude Code 中输入 /mcp
应能看到 Resharper Cli MCP 在列表中并显示已连接
试一试
用 Resharper Cli MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Resharper Cli MCP,或回答中出现 Resharper Cli MCP 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 Resharper Cli MCP 的密钥(在开发者网站注册,可能收费)
填写你的密钥
在 Resharper Cli MCP 的设置中,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 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 Resharper Cli MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Resharper Cli MCP,或回答中出现 Resharper Cli MCP 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 Resharper Cli MCP 的密钥(在开发者网站注册,可能收费)
填写你的密钥
在 Resharper Cli MCP 的设置中,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 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 Resharper Cli MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Resharper Cli MCP,或回答中出现 Resharper Cli MCP 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
安装在电脑上
Claude Code
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 --yesClaude Desktop (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"
}
}
}
}Cursor (~/.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 (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"
}
}
}
}需要你填写的值
JB_SOLUTION_PATHenvSolution to analyse when the working directory holds zero or several. The solutionPath tool argument overrides it for one call.JB_SETTINGS_PATHenvExplicit .DotSettings file for jb, mounted as a Custom layer above the solution's and every project's own settings.JB_CACHE_HOMEenvReSharper cache directory. Defaults to ~/.jb-cache.JB_EXTENSIONSenvSemicolon-separated ReSharper plugin IDs to load.JB_EXTENSION_SOURCEenvCustom NuGet source for those ReSharper plugins.RESHARPER_MCP_TIMEOUT_SECSenvCap 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_PREWARMenvSet to off to stop the background cache pre-warm that runs when a client connects.RESHARPER_MCP_CLEANUP_FILTERenvSet to off to run every cleanup against the whole solution rather than a filter of the files' projects.RESHARPER_MCP_LOG_LEVELenvMinimum level for the rolling file log. Defaults to Warning.MAX_MCP_OUTPUT_TOKENSenvOutput budget the response is rendered to fit. Set by the MCP client rather than by hand; 25,000 characters when unset.
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
一览
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月11日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 andypgray 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于昨天
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“开发者工具”中的其他服务器比较i
- 星标数多于此分类中其他 5747 个服务器的 69%
- 发布到注册中心的时间比此分类中其他 5747 个服务器的 68% 更新
- 基础检查结果等于或优于此分类中其他 5747 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Resharper Cli MCP 安全吗?
它在 2 项适用的基础检查中通过了 2 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于昨天,最新版本(1.8.0)于11天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 .NET。
有什么可以替代它?
同一分类中有:REA, Netdata, Front-End Checklist
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Netdata
Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.
Front-End Checklist
Review frontend code and live pages against 386 quality-gated web development rules.
作者的 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 cleanupcoderunsBuilt-in: Full Cleanupunless it is given--profile, whatever the solution's settings say. The server passes the profile the solution names underSilentCleanupProfile, 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
jbon 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:
| Client | Where the entry goes | Top-level key | |||
|---|---|---|---|---|---|
| Visual Studio 2022 17.14+ and 2026 | .mcp.json beside the solution | servers, with "type": "stdio" | |||
| VS Code | .vscode/mcp.json | servers, with "type": "stdio" | |||
| Cursor | .cursor/mcp.json, or ~/.cursor/mcp.json for every project | mcpServers | |||
| Rider AI Assistant | Settings \ | Tools \ | AI Assistant \ | MCP | mcpServers |
| Junie | .junie/mcp/mcp.json, or ~/.junie/mcp/mcp.json for every project | mcpServers | |||
| Cline | cline_mcp_settings.json, under Configure MCP Servers | mcpServers |
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
| Tool | Mutates files | What it does |
|---|---|---|
resharper_inspect | no | Runs jb inspectcode and returns the issues, grouped by file. |
resharper_cleanup | yes | Runs jb cleanupcode on the given files and reports which ones changed on disk. |
resharper_reset_cache | no (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.
| Variable | Default | Purpose |
|---|---|---|
JB_SOLUTION_PATH | discovered | Solution to use when the working directory has none or several; the solutionPath tool argument overrides it for one call. |
JB_SETTINGS_PATH | none | A .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-cache | ReSharper cache directory. |
JB_EXTENSIONS | none | Semicolon-separated ReSharper plugin IDs to load. |
JB_EXTENSION_SOURCE | jb's own | Custom NuGet source for those plugins. |
RESHARPER_MCP_TIMEOUT_SECS | 600 | Cap in seconds on one jb run, and on the wait for one already in flight, clamped to 60–86,400. |
RESHARPER_MCP_PREWARM | on | off disables the cache pre-warm when a client connects. |
RESHARPER_MCP_CLEANUP_FILTER | on | off makes every cleanup load the whole solution rather than a solution filter of the files' projects. |
RESHARPER_MCP_LOG_LEVEL | Warning | Level 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_TOKENS | 25,000 characters | Client 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.