Resharper CLI MCP logo

Resharper CLI MCP

Run ReSharper CLI inspections, cleanup, and cache management through MCP for .NET solutions.

Install Resharper CLI MCP

Run the project’s own setup commands, in order.

Setup steps from the project

resharper-cli-mcp installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    dotnet tool install -g Zphil.ReSharperCli
    

Overview

resharper-cli-mcp connects coding agents to JetBrains ReSharper command-line tools through MCP. It exposes inspection, cleanup, and cache-reset operations, using the solution's ReSharper settings and editor configuration. Runs analyze the complete solution, queue concurrent requests, report progress, and enforce a configurable timeout. Reach for it when an agent needs ReSharper-compatible diagnostics or automated style cleanup in a .NET codebase.

Use cases

  • Inspect a .NET solution for ReSharper issues
  • Filter inspection results by severity or file glob
  • Apply a configured ReSharper cleanup profile to selected files
  • Reset stale ReSharper caches after changing checkouts

Key features

  • ReSharper inspection results grouped by file
  • Configurable severity and report detail
  • Profile-based cleanup with changed-file reporting
  • Solution cache prewarming and reset
  • Queued runs with progress reporting
  • Configurable ten-minute default timeout

Tools3

What Resharper CLI MCP lets your agent do. Expand a tool for its parameters.

Self-reported~79 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/19 checks healthy over the last 111d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commit2d agoMost recent push to the default branch.
Tools exposed3Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Resharper CLI MCP works

What resharper-cli-mcp does

resharper-cli-mcp lets an MCP-compatible coding agent invoke JetBrains ReSharper Command Line Tools for a .NET solution. It provides inspection results, applies ReSharper cleanup rules to selected files, and manages the solution's ReSharper cache. The project is unofficial and is not affiliated with or endorsed by JetBrains.

Inspection follows the solution's .DotSettings and .editorconfig, so reported severities and cleanup behavior reflect the configuration used by ReSharper. Cleanup changes formatting and style rather than program behavior, including using directives, var usage, modifier order, redundant syntax, parentheses, braces, and related style rules.

How it works

The server starts as the resharper-cli-mcp command and communicates over standard input and output. It uses the .sln or .slnx file in its working directory when exactly one solution is present. Set JB_SOLUTION_PATH when the directory contains no solution or contains multiple solutions.

Each operation analyzes the full solution because symbol resolution requires the complete solution model. The files argument limits which files are reported or rewritten; it does not reduce the scope of analysis. The first run normally builds ReSharper caches and can take minutes, while later runs using a warm cache are faster. Requests for a solution are queued to avoid competing cache builds, and progress is reported every ten seconds.

The cache is warmed when a client connects by default. A new checkout or worktree can be seeded from another checkout's warm cache. Set RESHARPER_MCP_PREWARM=off to disable connection-time prewarming. Each run has a timeout controlled by RESHARPER_MCP_TIMEOUT_SECS, which defaults to ten minutes.

Setup and configuration

Install the .NET 10 SDK, JetBrains ReSharper Command Line Tools, and the server's .NET global tool:

bash
dotnet tool install -g JetBrains.ReSharper.GlobalTools
dotnet tool install -g Zphil.ReSharperCli

Register resharper-cli-mcp as a standard MCP stdio server. A typical Claude Code entry uses the command without arguments:

config.json
{
  "mcpServers": {
    "resharper": {
      "command": "resharper-cli-mcp"
    }
  }
}

The ReSharper command-line tools are free and do not require a ReSharper license. Claude Desktop can use the downloadable .mcpb extension, where the solution path is configured in the extension settings. The bundle still requires the .NET 10 runtime and ReSharper command-line tools. A Claude Code plugin installation is also available through the repository's marketplace, and Codex CLI can register the command with codex mcp add resharper -- resharper-cli-mcp.

Tools and capabilities

  • resharper_inspect runs jb inspectcode and returns issues grouped by file. It accepts solution-relative or absolute file globs, plus Suggestion, Warning, or Error severity filtering. Warning is the default. Markdown reports can write full issue details to a temporary file, while a detail setting can reduce output to a compact survey.
  • resharper_cleanup runs jb cleanupcode against specified files and reports which files changed on disk. It uses the solution's SilentCleanupProfile when available, otherwise Built-in: Full Cleanup. A narrower profile can be supplied to avoid unnecessary changes in legacy code.
  • resharper_reset_cache removes the solution's ReSharper cache so the next run starts cold, and can reclaim cache data left by a deleted checkout.

Limitations and notes

Inspection and cleanup still analyze the entire solution, even when file arguments narrow the output or rewrite set. Cold runs may exceed a client's own tool-call timeout, so that timeout may need to be raised alongside the server's run cap. Cleanup mutates files; inspection does not. In Rider, built-in IDE analysis already supplies inspection results to agents, so this server's distinct use is running the cleanup profile through resharper_cleanup.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Resharper CLI MCP

resharper-cli-mcp is an MCP server that connects coding agents to JetBrains ReSharper Command Line Tools. Its main tools run `jb inspectcode` for grouped diagnostics, run `jb cleanupcode` on selected files, and reset ReSharper solution caches. It uses the solution's settings and editor configuration.

Install the .NET 10 SDK, JetBrains ReSharper Command Line Tools, and the server's .NET global tool, then register `resharper-cli-mcp` as an MCP stdio command. The required commands are `dotnet tool install -g JetBrains.ReSharper.GlobalTools` and `dotnet tool install -g Zphil.ReSharperCli`.

It uses the only `.sln` or `.slnx` file in its working directory. Set `JB_SOLUTION_PATH` when the directory contains no solution or more than one solution. Claude Desktop requires the solution file to be configured because it starts the server outside the repository.

Yes, it works with Cursor as a standard MCP stdio server. Add `resharper-cli-mcp` in `.cursor/mcp.json` for one project or `~/.cursor/mcp.json` for all projects, after installing the .NET runtime, ReSharper command-line tools, and the server.

Yes, `resharper_cleanup` accepts the files to process and reports which of them changed on disk. The complete solution is still analyzed for symbol resolution. Without an explicit profile, cleanup uses the solution's `SilentCleanupProfile`, falling back to `Built-in: Full Cleanup`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewResharper CLI MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/resharper-cli-mcp?style=directory)](https://allmcps.com/mcp/resharper-cli-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/resharper-cli-mcp"><img src="https://allmcps.com/api/badge/resharper-cli-mcp?style=directory" alt="Resharper CLI MCP on AllMCPs" /></a>