add_custom_rule
Add a custom pattern-based tech debt rule.
Puts a number on technical debt — SQALE remediation time, debt ratio and an A-E rating — across fourteen languages and ten dependency ecosystems.
LABSCO SUMMARY
SQALE remediation time and a debt ratio give the conversation a unit, and recommendations come back already ranked. Two boundaries worth knowing: the dependency report lists what your project pulls in for review rather than looking up CVEs, and custom rules added during a session are tracked separately from the customPatterns declared in .techdebtrc.json.
A static analyser behind an MCP interface. It scans a project for debt, scores it, and returns issues you can slice by severity, category or language rather than one undifferentiated list.
Nothing to authorize — it reads the code you point it at. Run it over stdio with npx -y tech-debt-mcp@latest, or install it as a Claude Code plugin, or as an MCPB bundle for Claude Desktop that ships its dependencies and needs no network at runtime. Behaviour comes from a .techdebtrc.json in the project root: include and ignore globs, thresholds for file length, function length, complexity and nesting depth, per-rule severity overrides, per-path rule exclusions, and custom regex patterns.
One command — npx -y tech-debt-mcp@latest
USE CASES
Take the summary first, then the SQALE rating with your own development time as input.
Read the prioritised recommendations, then pull the issues at the severity you have time for.
Analyse just that file rather than waiting on a whole-project scan.
Validate the pattern first, then register it as a rule and run it against the code.
Parse the manifests across every ecosystem in the repo, then read the dependency report.
Validate the config file against the schema, and list the rules registered in this session.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
add_custom_ruleAdd a custom pattern-based tech debt rule.
analyze_fileAnalyze a single file for technical debt issues.
analyze_projectAnalyze an entire project for technical debt. Scans all supported files and returns a comprehensive report with issues, metrics, and recommendations.
check_dependenciesAnalyze project dependencies across multiple package managers.
execute_custom_rulesExecute all custom rules against code or a file.
get_debt_summaryGet a quick summary of technical debt in a project.
get_issues_by_categoryGet all issues of a specific category.
get_issues_by_severityGet all issues of a specific severity level.
get_recommendationsGet prioritized recommendations for addressing technical debt.
get_sqale_metricsGet SQALE technical debt metrics including remediation time, debt ratio, and rating.
get_vulnerability_reportGenerate an offline dependency report listing all project dependencies for vulnerability review. Note: actual CVE lookups require Phase 2b online integration.
list_session_custom_rulesList custom rules registered in this server session via add_custom_rule. Does NOT include customPatterns declared in .techdebtrc.json (those run inside analyze_project via AnalysisEngine but are not surfaced here). Renamed from list_custom_rules (TEC-51) for clarity; the old name is no longer registered.
list_supported_languagesList all programming languages supported by the analyzer.
remove_custom_ruleRemove a custom rule by ID.
validate_configValidate a .techdebtrc.json configuration file for syntax and schema correctness.
validate_custom_patternValidate a custom pattern before adding it as a rule.
BEFORE YOU INSTALL
16 tools when we connected.
npx on PATH
CONTEXT COST
Rated by the size of the 16 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx -y tech-debt-mcp@latestcode --add-mcp '{"name":"tech-debt-mcp","command":"npx","args":["-y","tech-debt-mcp@latest"]}'cursor --add-mcp '{"name":"tech-debt-mcp","command":"npx -y tech-debt-mcp@latest"}'claude mcp add tech-debt-mcp -- npx -y tech-debt-mcp@latest/plugin marketplace add PierreJanineh/TechDebtMCP
/plugin install tech-debt-mcp@techdebtmcp{
"mcpServers": {
"tech-debt-mcp": {
"command": "npx",
"args": [
"-y",
"tech-debt-mcp@latest"
]
}
}
}{
"servers": {
"tech-debt-mcp": {
"command": "npx",
"args": [
"-y",
"tech-debt-mcp@latest"
]
}
}
}