MCP directory

Resharper Cli Mcp

by github.com/andypgray · v1.8.1 · updated Nov 15, 2026

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

NuGet

Run it locally

Install the package and point your AI client at it.

NuGet

dnx Zphil.ReSharperCli --yes

Environment variables

  • JB_SOLUTION_PATH

    Solution to analyse when the working directory holds zero or several. The solutionPath tool argument overrides it for one call.

  • JB_SETTINGS_PATH

    Explicit .DotSettings file for jb, mounted as a Custom layer above the solution's and every project's own settings.

  • JB_CACHE_HOME

    ReSharper cache directory. Defaults to ~/.jb-cache.

  • JB_EXTENSIONS

    Semicolon-separated ReSharper plugin IDs to load.

  • JB_EXTENSION_SOURCE

    Custom NuGet source for those ReSharper plugins.

  • RESHARPER_MCP_TIMEOUT_SECS

    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

    Set to off to stop the background cache pre-warm that runs when a client connects.

  • RESHARPER_MCP_CLEANUP_FILTER

    Set to off to run every cleanup against the whole solution rather than a filter of the files' projects.

  • RESHARPER_MCP_LOG_LEVEL

    Minimum level for the rolling file log. Defaults to Warning.

  • MAX_MCP_OUTPUT_TOKENS

    Output budget the response is rendered to fit. Set by the MCP client rather than by hand; 25,000 characters when unset.

More from github.com/andypgray

More MCP servers