Quick installation
Install only the surface your workflow needs. The packages are independent.
Roslyn Analyzer
Section titled “Roslyn Analyzer”dotnet add package ComplexityAnalysis.AnalyzersRoslyn loads the analyzer during builds and IDE analysis. Your application does not call it and receives no analyzer runtime dependency.
The documented 1.0.0 command applies after that version is published on NuGet.org:
dotnet tool install --global ComplexityAnalysis.Tool --version 1.0.0complexity-analysis --versionFor reproducible repositories, prefer a local tool manifest and commit .config/dotnet-tools.json.
MCP server
Section titled “MCP server”The documented 1.0.0 command applies after that version is published on NuGet.org:
dotnet tool install --global ComplexityAnalysis.Mcp --version 1.0.0complexity-mcp --versionMCP clients start complexity-mcp over stdio with an explicit read boundary:
complexity-mcp --root /absolute/path/to/project