Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
JB_CACHE_HOMENoReSharper cache directory. Defaults to ~/.jb-cache.
JB_EXTENSIONSNoSemicolon-separated ReSharper plugin IDs to load.
JB_SETTINGS_PATHNoExplicit .DotSettings file for jb, mounted as a Custom layer above the solution's and every project's own settings.
JB_SOLUTION_PATHNoSolution to analyse when the working directory holds zero or several. The solutionPath tool argument overrides it for one call.
JB_EXTENSION_SOURCENoCustom NuGet source for those ReSharper plugins.
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.
RESHARPER_MCP_PREWARMNoSet to off to stop the background cache pre-warm that runs when a client connects.
RESHARPER_MCP_LOG_LEVELNoMinimum level for the rolling file log. Defaults to Warning.
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.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
resharper_inspectA

Run ReSharper code inspection (static analysis, lint) over a C# solution and return the warnings, errors and suggestions it finds.

resharper_cleanupA

Run ReSharper code cleanup to format files in place, fixing formatting, code style, unused usings, var usage, modifier order and braces. Each call loads the files' projects and their references before it rewrites anything, so make one call per task with every modified file in it.

resharper_reset_cacheA

Delete this solution's ReSharper analysis cache so the next inspect or cleanup rebuilds it from cold. The cure for inspect reporting compilation errors a successful build does not: a stale index serves those until the cache is dropped. Build first, because on a checkout that was never built or restored the errors are real and a reset only adds a cold analysis to the build it still needs. Costs the next call a full cold analysis, so it is not routine maintenance. A deleted checkout's cache outlives it: pass its old solution path as solutionPath to reclaim it.

Prompts

Interactive templates invoked by user choice

NameDescription
derive_style_guideDerive an intentional ReSharper/editorconfig style guide from an existing (legacy) C# codebase, reconcile it with tooling already present (StyleCop, analyzers), and validate it with the resharper_inspect loop. The server does not infer settings; this recipe guides you to.

Resources

Contextual data attached and managed by the client

NameDescription
resharper_configuration_guideHow ReSharper configuration works for this server: inspection severities drive resharper_inspect while the cleanup profile drives resharper_cleanup (they never share a switch), how to protect a deliberate style from cleanup, where settings and .editorconfig are read from, and the DotSettings key shapes. Load this before changing what ReSharper enforces. It does not cover running the server: for a call that cannot find the solution, times out, or comes back shortened, read resharper://guides/setup instead.
resharper_setup_guideHow to run this server and diagnose a failing call: installing and locating jb (PATH, then ~/.dotnet/tools), which solution a call runs against (the solutionPath argument, JB_SOLUTION_PATH, then a single .sln/.slnx in the working directory with no parent walk), why the first call is slow, the run cap (this server's own, and raisable) and why calls against one solution queue, how MAX_MCP_OUTPUT_TOKENS caps output, how a reduced result differs from a truncated one and how to get the complete itemised findings written to a file instead, the JB_SETTINGS_PATH, JB_CACHE_HOME, JB_EXTENSIONS, JB_EXTENSION_SOURCE, RESHARPER_MCP_TIMEOUT_SECS, RESHARPER_MCP_PREWARM, RESHARPER_MCP_CLEANUP_FILTER, and RESHARPER_MCP_LOG_LEVEL variables, and where logs go. Load this when a call cannot find jb or the solution, times out, reports another run already in flight, comes back shortened, or is slower than the queue explains alongside a jb run outside this server — which is also how an unexpected extra cache generation appears.

TDQS

A4.2/5.0

Scored across 3 tools

Disambiguation5/5

Each tool has a clearly distinct action: inspect reports findings, cleanup rewrites files in place, and reset_cache clears analysis state. There is no meaningful overlap in purpose, and the descriptions make the boundaries between them explicit.

Naming Consistency5/5

All tools use the same resharper_ prefix and snake_case naming convention. The verbs inspect, cleanup, and reset_cache are readable and consistent enough for predictable selection.

Tool Count5/5

A focused ReSharper CLI wrapper naturally needs only a few operations, and these three each earn their place. The count is well-scoped rather than thin, because the tools cover inspection, cleanup, and cache recovery.

Completeness4/5

The surface covers the core lifecycle for this domain: analyze code, apply formatting/style cleanup, and recover from stale cache. Minor gaps exist, such as no tool for inspecting or cleaning a subset of files or explicitly reporting cache state, but the main workflows are supported.

Maintenance

ActivityActive
ResponsivenessNo recent community issues