ndepend-search-code-metrics
Collect and analyze code metrics for quality assessment.
How to use it
ndepend-search-code-metrics is exposed by the NDepend.MCP.Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the ndepend-search-code-metrics tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
FULL NDEPEND.MCP.SERVER LISTINGOther tools in NDepend.MCP.Server (25)
(ALWAYS REQUIRED)
Returns collection of code elements with properties
Returns single numeric value
Quality rule identifying violations
, naming, attribute, source-file-declaration
, constructor-instantiation
, maintainability, complexity, coverage, comment
Invokes NDepend's diff action to compare a source file's current content against its baseline using the configured source compare tool.
Provide prompts to the LLM to make it an expert in code queries and rule generation. The LLM first identifies the code querying features it needs based on the user’s request, then it calls this tool to obtain a prompt for each feature choosen.
Retrieve comprehensive diagnostic information for a specific issue.
Retrieve source code as raw text from NDepend.
Initialize the NDepend analysis session with a .NET solution file. If an NDepend project (.ndproj file) is attached to the solution, use it. Else create an NDepend project side-by-side with the solution and analyze it.
Return hierarchical categorized summary of all rules in the current project, with each the number of issues found.
Collect and present dependencies for code elements with comprehensive context. Also generate a HTML SVG diagram of the required dependency.
List issues scoped by user's request with comprehensive details.
Return status of each quality gate to assess code quality standards.
Return paginated list of rules with descriptions and fix guidance.
Run the NDepend analysis on the initialized workspace and update all session data (dependencies, issues, metrics, etc...). Returns analysis data loaded (snapshot date, baseline snapshot date, .ndar analysis result file...).
Run the NDepend analysis, update all session data, and build a web report, open it in the browser.
Compile and execute code query or rule against the session's analysis result and baseline.
Quality criterion with WARN/FAIL thresholds
Selects issues and rules
, clean-architecture, encapsulation-and-visibility, state-mutability
Scalar value stored over time to plot chart
, parent-children-relationship, inheritance-and-base-class, interface