# resharper-cli-mcp [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/andypgray/resharper-cli-mcp  
**GitHub Stars:** 1  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/resharper-cli-mcp

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

## Tools
Capabilities this server exposes over MCP:

- **resharper_inspect** — Runs `jb inspectcode` and returns the issues, grouped by file.
- **resharper_cleanup** — Runs `jb cleanupcode` on the given files and reports which ones changed on disk.
- **resharper_reset_cache** — Drops the solution's ReSharper cache so the next run starts cold, or reclaims the cache a deleted checkout left behind.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/andypgray/resharper-cli-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
dotnet tool install -g Zphil.ReSharperCli
```

## Documentation

## 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:

```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`.

_Full upstream README: https://allmcps.com/mcp/resharper-cli-mcp/readme_

