tech-debt-mcp
v2.1.0MCP 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute path to the project root directory |
categories | array | Optional: filter by debt categories |
languages | array | Optional: specific languages to analyze |
maxFiles | integer | Optional: maximum number of files to analyze (minimum: 1) |
severity | string | Optional: minimum severity level |
analyze_file
Analyze a single file for technical debt issues.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute path to the file to analyze |
get_debt_summary
Get a quick summary of technical debt in a project.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute path to the project root directory |
get_sqale_metrics
Get SQALE technical debt metrics including remediation time, debt ratio, and rating.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute path to the project root directory |
developmentTime | number | Optional: 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute path to the project root directory |
limit | integer | Optional: maximum number of recommendations to return (default: 5, minimum: 1) |
get_issues_by_severity
Get all issues of a specific severity level.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute path to the project root directory |
severity * | string | Severity level to filter by |
get_issues_by_category
Get all issues of a specific category.
| Parameter | Type | Description |
|---|---|---|
category * | string | Category to filter by |
path * | string | Absolute path to the project root directory |
add_custom_rule
Add a custom pattern-based tech debt rule.
| Parameter | Type | Description |
|---|---|---|
category * | string | Debt category |
id * | string | Unique identifier for the rule |
message * | string | Issue title/message |
pattern * | string | Regex pattern to match |
severity * | string | Issue severity level |
flags | string | Optional: regex flags (g, i, m, s, etc.) |
languages | array | Optional: apply only to specific languages |
suggestion | string | Optional: how to fix the issue |
remove_custom_rule
Remove a custom rule by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | ID 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.
| Parameter | Type | Description |
|---|---|---|
code | string | Source code content to analyze directly (maximum 500000 characters; alternative to path). Either path or code must be provided. |
language | string | Optional: programming language for filtering rules |
path | string | Absolute 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.
| Parameter | Type | Description |
|---|---|---|
category * | string | Debt category |
id * | string | Unique identifier for the rule |
message * | string | Issue title/message |
pattern * | string | Regex pattern to validate |
severity * | string | Issue severity level |
check_dependencies
Analyze project dependencies across multiple package managers.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute path to the project root directory |
includeDev | boolean | Optional: include development dependencies (default: true) |
validate_config
Validate a .techdebtrc.json configuration file for syntax and schema correctness.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute path to the project root directory |
includeDev | boolean | Optional: include development dependencies (default: false) |