About Techdebtdiscoveragent
Techdebtdiscoveragent is an MCP server published by RafaelGorski in the AI category: techDebt Discover Agent. It has been installed 0 times through Conduid.
The repository has 2 stars and 0 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues (0) before depending on it in production.
Install
npx techdebtdiscoveragentThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Ask AI
Ask AI about Techdebtdiscoveragent
Powered by Claude · Grounded in docs
Security checks
- ·README presentNot checked yet.
- ·License declaredNot checked yet.
- ·Tests presentNot checked yet.
- ·Dependencies pinnedNot checked yet.
- ·No dynamic code executionNot checked yet.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
README
🔍 Technical Debt Discovery MCP Server
An advanced Model Context Protocol (MCP) server for automated technical debt analysis. This TypeScript-based server intelligently scans your codebase to identify common debt patterns and provides actionable insights for code improvement.
✨ Features
- 🎯 Smart Pattern Detection: Identifies TODO/FIXME comments, TypeScript
anyusage, console statements, deprecated APIs, and more - 📊 Severity Classification: Categorizes findings as low, medium, or high severity
- 🎨 Rich Reporting: Provides formatted reports with emojis, severity indicators, and file statistics
- ⚙️ Configurable Filtering: Filter by debt type, severity level, or specific patterns
- 🚀 Performance Optimized: Efficiently skips irrelevant directories (node_modules, .git, etc.)
- 📁 Multi-Language Support: Supports .js, .ts, .jsx, .tsx files
📋 Features Overview
For a comprehensive list of all features, implementation status, and technical details, see FUNCTIONALITY.md.
Quick Feature Summary
- 🔍 Pattern Detection: TODO comments, TypeScript
anyusage, console statements, deprecated APIs - 📁 Smart Scanning: Recursive directory traversal with intelligent filtering
- 🎯 Severity Levels: High/Medium/Low categorization with visual indicators
- ⚙️ Configurable: Filter by type, severity, and target directory
- 🔌 MCP Integration: Ready for LLM integration via Model Context Protocol
🔧 Technical Debt Patterns Detected
| Pattern | Severity | Description |
|---|---|---|
| TODO/FIXME Comments | Medium | Unfinished work markers |
TypeScript any Usage |
High | Type safety violations |
| Console Statements | Low | Debug code left in production |
var Declarations |
Medium | Outdated variable declarations |
| Deprecated APIs | High | Usage of deprecated functions |
| Complex Conditions | Medium | Overly complex if statements |
| Large Files | Medium | Files exceeding size thresholds |
🚀 Getting Started
Prerequisites
- Node.js 16+ and npm
- TypeScript (for development)
Installation & Setup
-
Install dependencies
npm install -
Build the project
npm run build -
Start the MCP server
npm start
The server runs using stdio transport for seamless MCP client integration.
📖 Usage
Basic Scan
Scan the current directory for all technical debt:
{
"tool": "list-tech-debt"
}
Advanced Filtering
Scan with specific criteria:
{
"tool": "list-tech-debt",
"arguments": {
"directory": "/path/to/project",
"severity": "medium",
"includeTypes": ["typing", "complexity", "deprecation"]
}
}
Sample Output
🔍 Technical Debt Report
📊 Found 5 issues in 3 files (scanned 12 total)
📁 **src/components/UserForm.tsx**
🔴 [typing] Uses 'any' type (TypeScript anti-pattern)
🟡 [complexity] Contains complex conditional statements
📁 **src/utils/helpers.js**
🟡 [modernization] Uses 'var' instead of 'let' or 'const'
🔵 [debugging] Contains console.log statements
🔧 Configuration
The server supports the following parameters:
| Parameter | Type | Description | Default |
|---|---|---|---|
directory |
string | Directory to scan | Current working directory |
includeTypes |
string[] | Debt types to include | All types |
severity |
enum | Minimum severity level | "low" |
Supported Debt Types
comments- TODO/FIXME/HACK commentstyping- TypeScript any usagedebugging- Console statementsmodernization- Outdated syntaxdeprecation- Deprecated APIscomplexity- Complex conditionssize- Large files
🔗 MCP Integration
VS Code Integration
This server integrates seamlessly with VS Code through MCP:
- Configuration available in
.vscode/mcp.json - Use with GitHub Copilot for enhanced code analysis
- Real-time technical debt detection during development
Client Integration
For other MCP clients, connect using stdio transport:
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
// Server automatically handles MCP protocol communication
🛠️ Development
Project Structure
src/
├── index.ts # Main MCP server implementation
├── index.js # Compiled JavaScript (generated)
build/ # Build output directory
test.js # Test utilities
Key Components
- Pattern Detection Engine: Configurable regex patterns for debt identification
- File Scanner: Recursive directory traversal with intelligent filtering
- Report Generator: Rich formatting with severity-based sorting
- MCP Tool Handler: Protocol-compliant tool registration and execution
Extending Debt Patterns
Add new patterns to the DEBT_PATTERNS constant:
const DEBT_PATTERNS = {
// Existing patterns...
newPattern: /your-regex-here/g,
} as const;
📚 Resources
- Model Context Protocol Documentation - Complete MCP guide
- MCP SDK Reference - SDK examples and patterns
- Technical Debt Best Practices - Industry guidelines
🤝 Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
📄 License
This project is open source and available under the MIT License.
Custom Copilot Instructions: See .github/copilot-instructions.md for workspace-specific AI guidance.
README mirrored from the source repository 3 months ago. The original is authoritative.