resharper cli mcp for VS Code
io.github.andypgray/resharper-cli-mcp
ReSharper CLI inspection/cleanup via MCP. Unofficial: not affiliated with or endorsed by JetBrains.
client:VS Code
transport:stdio
runtime:nuget
Install resharper cli mcp in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "jb-solution-path",
"description": "JB_SOLUTION_PATH",
"password": true
},
{
"type": "promptString",
"id": "jb-settings-path",
"description": "JB_SETTINGS_PATH",
"password": true
},
{
"type": "promptString",
"id": "jb-cache-home",
"description": "JB_CACHE_HOME",
"password": true
},
{
"type": "promptString",
"id": "jb-extensions",
"description": "JB_EXTENSIONS",
"password": true
},
{
"type": "promptString",
"id": "jb-extension-source",
"description": "JB_EXTENSION_SOURCE",
"password": true
},
{
"type": "promptString",
"id": "resharper-mcp-timeout-secs",
"description": "RESHARPER_MCP_TIMEOUT_SECS",
"password": true
},
{
"type": "promptString",
"id": "resharper-mcp-prewarm",
"description": "RESHARPER_MCP_PREWARM",
"password": true
},
{
"type": "promptString",
"id": "resharper-mcp-log-level",
"description": "RESHARPER_MCP_LOG_LEVEL",
"password": true
},
{
"type": "promptString",
"id": "max-mcp-output-tokens",
"description": "MAX_MCP_OUTPUT_TOKENS",
"password": true
}
],
"servers": {
"resharper-cli-mcp": {
"type": "stdio",
"command": "dnx",
"args": [
"Zphil.ReSharperCli",
"--yes"
],
"env": {
"JB_SOLUTION_PATH": "${input:jb-solution-path}",
"JB_SETTINGS_PATH": "${input:jb-settings-path}",
"JB_CACHE_HOME": "${input:jb-cache-home}",
"JB_EXTENSIONS": "${input:jb-extensions}",
"JB_EXTENSION_SOURCE": "${input:jb-extension-source}",
"RESHARPER_MCP_TIMEOUT_SECS": "${input:resharper-mcp-timeout-secs}",
"RESHARPER_MCP_PREWARM": "${input:resharper-mcp-prewarm}",
"RESHARPER_MCP_LOG_LEVEL": "${input:resharper-mcp-log-level}",
"MAX_MCP_OUTPUT_TOKENS": "${input:max-mcp-output-tokens}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs