tech-debt-mcp

v2.1.0
io.github.PierreJanineh/tech-debt-mcp Checked 20 hours ago Published 4 months ago

MCP Server for analyzing technical debt across multiple programming languages

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

analyze_project

Analyze an entire project for technical debt. Scans all supported files and returns a comprehensive report with issues, metrics, and recommendations.

ParameterTypeDescription
path *stringAbsolute path to the project root directory
categoriesarrayOptional: filter by debt categories
languagesarrayOptional: specific languages to analyze
maxFilesintegerOptional: maximum number of files to analyze (minimum: 1)
severitystringOptional: minimum severity level

analyze_file

Analyze a single file for technical debt issues.

ParameterTypeDescription
path *stringAbsolute path to the file to analyze

get_debt_summary

Get a quick summary of technical debt in a project.

ParameterTypeDescription
path *stringAbsolute path to the project root directory

get_sqale_metrics

Get SQALE technical debt metrics including remediation time, debt ratio, and rating.

ParameterTypeDescription
path *stringAbsolute path to the project root directory
developmentTimenumberOptional: estimated development time in hours for debt ratio calculation

list_supported_languages

List all programming languages supported by the analyzer.

get_recommendations

Get prioritized recommendations for addressing technical debt.

ParameterTypeDescription
path *stringAbsolute path to the project root directory
limitintegerOptional: maximum number of recommendations to return (default: 5, minimum: 1)

get_issues_by_severity

Get all issues of a specific severity level.

ParameterTypeDescription
path *stringAbsolute path to the project root directory
severity *stringSeverity level to filter by

get_issues_by_category

Get all issues of a specific category.

ParameterTypeDescription
category *stringCategory to filter by
path *stringAbsolute path to the project root directory

add_custom_rule

Add a custom pattern-based tech debt rule.

ParameterTypeDescription
category *stringDebt category
id *stringUnique identifier for the rule
message *stringIssue title/message
pattern *stringRegex pattern to match
severity *stringIssue severity level
flagsstringOptional: regex flags (g, i, m, s, etc.)
languagesarrayOptional: apply only to specific languages
suggestionstringOptional: how to fix the issue

remove_custom_rule

Remove a custom rule by ID.

ParameterTypeDescription
id *stringID of the rule to remove

list_session_custom_rules

List 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.

execute_custom_rules

Execute all custom rules against code or a file.

ParameterTypeDescription
codestringSource code content to analyze directly (maximum 500000 characters; alternative to path). Either path or code must be provided.
languagestringOptional: programming language for filtering rules
pathstringAbsolute filesystem path to the file to analyze (maximum 500000 bytes). An empty string is treated the same as omitting the field.

validate_custom_pattern

Validate a custom pattern before adding it as a rule.

ParameterTypeDescription
category *stringDebt category
id *stringUnique identifier for the rule
message *stringIssue title/message
pattern *stringRegex pattern to validate
severity *stringIssue severity level

check_dependencies

Analyze project dependencies across multiple package managers.

ParameterTypeDescription
path *stringAbsolute path to the project root directory
includeDevbooleanOptional: include development dependencies (default: true)

validate_config

Validate a .techdebtrc.json configuration file for syntax and schema correctness.

ParameterTypeDescription
path *stringAbsolute path to the project root directory or directly to a .techdebtrc.json file

get_vulnerability_report

Generate an offline dependency report listing all project dependencies for vulnerability review. Note: actual CVE lookups require Phase 2b online integration.

ParameterTypeDescription
path *stringAbsolute path to the project root directory
includeDevbooleanOptional: include development dependencies (default: false)