MCP Server Studio

Resharper Cli MCP MCP server

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

Registry name: io.github.andypgray/resharper-cli-mcp

Publisher
andypgray
Runs
Runs locally
Package
NuGet
Version
1.8.1
Category
Developer tools
Updated
2026-11-15

Source code on GitHub

Set up Resharper Cli MCP (run locally)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "resharper-cli-mcp": {
      "command": "dnx",
      "args": [
        "[email protected]",
        "--yes"
      ],
      "env": {
        "JB_SOLUTION_PATH": "<JB_SOLUTION_PATH>",
        "JB_SETTINGS_PATH": "<JB_SETTINGS_PATH>",
        "JB_CACHE_HOME": "<JB_CACHE_HOME>",
        "JB_EXTENSIONS": "<JB_EXTENSIONS>",
        "JB_EXTENSION_SOURCE": "<JB_EXTENSION_SOURCE>",
        "RESHARPER_MCP_TIMEOUT_SECS": "<RESHARPER_MCP_TIMEOUT_SECS>",
        "RESHARPER_MCP_PREWARM": "<RESHARPER_MCP_PREWARM>",
        "RESHARPER_MCP_CLEANUP_FILTER": "<RESHARPER_MCP_CLEANUP_FILTER>",
        "RESHARPER_MCP_LOG_LEVEL": "<RESHARPER_MCP_LOG_LEVEL>",
        "MAX_MCP_OUTPUT_TOKENS": "<MAX_MCP_OUTPUT_TOKENS>"
      }
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add resharper-cli-mcp -e JB_SOLUTION_PATH='<JB_SOLUTION_PATH>' -e JB_SETTINGS_PATH='<JB_SETTINGS_PATH>' -e JB_CACHE_HOME='<JB_CACHE_HOME>' -e JB_EXTENSIONS='<JB_EXTENSIONS>' -e JB_EXTENSION_SOURCE='<JB_EXTENSION_SOURCE>' -e RESHARPER_MCP_TIMEOUT_SECS='<RESHARPER_MCP_TIMEOUT_SECS>' -e RESHARPER_MCP_PREWARM='<RESHARPER_MCP_PREWARM>' -e RESHARPER_MCP_CLEANUP_FILTER='<RESHARPER_MCP_CLEANUP_FILTER>' -e RESHARPER_MCP_LOG_LEVEL='<RESHARPER_MCP_LOG_LEVEL>' -e MAX_MCP_OUTPUT_TOKENS='<MAX_MCP_OUTPUT_TOKENS>' -- dnx [email protected] --yes

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "resharper-cli-mcp": {
      "command": "dnx",
      "args": [
        "[email protected]",
        "--yes"
      ],
      "env": {
        "JB_SOLUTION_PATH": "<JB_SOLUTION_PATH>",
        "JB_SETTINGS_PATH": "<JB_SETTINGS_PATH>",
        "JB_CACHE_HOME": "<JB_CACHE_HOME>",
        "JB_EXTENSIONS": "<JB_EXTENSIONS>",
        "JB_EXTENSION_SOURCE": "<JB_EXTENSION_SOURCE>",
        "RESHARPER_MCP_TIMEOUT_SECS": "<RESHARPER_MCP_TIMEOUT_SECS>",
        "RESHARPER_MCP_PREWARM": "<RESHARPER_MCP_PREWARM>",
        "RESHARPER_MCP_CLEANUP_FILTER": "<RESHARPER_MCP_CLEANUP_FILTER>",
        "RESHARPER_MCP_LOG_LEVEL": "<RESHARPER_MCP_LOG_LEVEL>",
        "MAX_MCP_OUTPUT_TOKENS": "<MAX_MCP_OUTPUT_TOKENS>"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "resharper-cli-mcp": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "[email protected]",
        "--yes"
      ],
      "env": {
        "JB_SOLUTION_PATH": "<JB_SOLUTION_PATH>",
        "JB_SETTINGS_PATH": "<JB_SETTINGS_PATH>",
        "JB_CACHE_HOME": "<JB_CACHE_HOME>",
        "JB_EXTENSIONS": "<JB_EXTENSIONS>",
        "JB_EXTENSION_SOURCE": "<JB_EXTENSION_SOURCE>",
        "RESHARPER_MCP_TIMEOUT_SECS": "<RESHARPER_MCP_TIMEOUT_SECS>",
        "RESHARPER_MCP_PREWARM": "<RESHARPER_MCP_PREWARM>",
        "RESHARPER_MCP_CLEANUP_FILTER": "<RESHARPER_MCP_CLEANUP_FILTER>",
        "RESHARPER_MCP_LOG_LEVEL": "<RESHARPER_MCP_LOG_LEVEL>",
        "MAX_MCP_OUTPUT_TOKENS": "<MAX_MCP_OUTPUT_TOKENS>"
      }
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "resharper-cli-mcp": {
      "command": "dnx",
      "args": [
        "[email protected]",
        "--yes"
      ],
      "env": {
        "JB_SOLUTION_PATH": "<JB_SOLUTION_PATH>",
        "JB_SETTINGS_PATH": "<JB_SETTINGS_PATH>",
        "JB_CACHE_HOME": "<JB_CACHE_HOME>",
        "JB_EXTENSIONS": "<JB_EXTENSIONS>",
        "JB_EXTENSION_SOURCE": "<JB_EXTENSION_SOURCE>",
        "RESHARPER_MCP_TIMEOUT_SECS": "<RESHARPER_MCP_TIMEOUT_SECS>",
        "RESHARPER_MCP_PREWARM": "<RESHARPER_MCP_PREWARM>",
        "RESHARPER_MCP_CLEANUP_FILTER": "<RESHARPER_MCP_CLEANUP_FILTER>",
        "RESHARPER_MCP_LOG_LEVEL": "<RESHARPER_MCP_LOG_LEVEL>",
        "MAX_MCP_OUTPUT_TOKENS": "<MAX_MCP_OUTPUT_TOKENS>"
      }
    }
  }
}

Settings

NameRequiredWhat it is
JB_SOLUTION_PATHNoSolution to analyse when the working directory holds zero or several. The solutionPath tool argument overrides it for one call.
JB_SETTINGS_PATHNoExplicit .DotSettings file for jb, mounted as a Custom layer above the solution's and every project's own settings.
JB_CACHE_HOMENoReSharper cache directory. Defaults to ~/.jb-cache.
JB_EXTENSIONSNoSemicolon-separated ReSharper plugin IDs to load.
JB_EXTENSION_SOURCENoCustom NuGet source for those ReSharper plugins.
RESHARPER_MCP_TIMEOUT_SECSNoCap 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_PREWARMNoSet to off to stop the background cache pre-warm that runs when a client connects.
RESHARPER_MCP_CLEANUP_FILTERNoSet to off to run every cleanup against the whole solution rather than a filter of the files' projects.
RESHARPER_MCP_LOG_LEVELNoMinimum level for the rolling file log. Defaults to Warning.
MAX_MCP_OUTPUT_TOKENSNoOutput budget the response is rendered to fit. Set by the MCP client rather than by hand; 25,000 characters when unset.

More developer tools MCP servers