{"at":"2026-11-23T01:41:13.611Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T01:41:14.005Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T01:41:14.106Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T01:41:14.492Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"resources":{"listChanged":true},"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"tech-debt-mcp","version":"2.1.0"}}}}
{"at":"2026-11-23T01:41:14.492Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T01:41:14.492Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T01:41:14.493Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"readOnlyHint":true},"description":"Analyze an entire project for technical debt. Scans all supported files and returns a comprehensive report with issues, metrics, and recommendations.","inputSchema":{"properties":{"categories":{"description":"Optional: filter by debt categories","items":{"type":"string"},"type":"array"},"languages":{"description":"Optional: specific languages to analyze","items":{"type":"string"},"type":"array"},"maxFiles":{"description":"Optional: maximum number of files to analyze (minimum: 1)","minimum":1,"type":"integer"},"path":{"description":"Absolute path to the project root directory","type":"string"},"severity":{"description":"Optional: minimum severity level","enum":["low","medium","high","critical"],"type":"string"}},"required":["path"],"type":"object"},"name":"analyze_project"},{"annotations":{"readOnlyHint":true},"description":"Analyze a single file for technical debt issues.","inputSchema":{"properties":{"path":{"description":"Absolute path to the file to analyze","type":"string"}},"required":["path"],"type":"object"},"name":"analyze_file"},{"annotations":{"readOnlyHint":true},"description":"Get a quick summary of technical debt in a project.","inputSchema":{"properties":{"path":{"description":"Absolute path to the project root directory","type":"string"}},"required":["path"],"type":"object"},"name":"get_debt_summary"},{"annotations":{"readOnlyHint":true},"description":"Get SQALE technical debt metrics including remediation time, debt ratio, and rating.","inputSchema":{"properties":{"developmentTime":{"description":"Optional: estimated development time in hours for debt ratio calculation","type":"number"},"path":{"description":"Absolute path to the project root directory","type":"string"}},"required":["path"],"type":"object"},"name":"get_sqale_metrics"},{"annotations":{"readOnlyHint":true},"description":"List all programming languages supported by the analyzer.","inputSchema":{"properties":{},"type":"object"},"name":"list_supported_languages"},{"annotations":{"readOnlyHint":true},"description":"Get prioritized recommendations for addressing technical debt.","inputSchema":{"properties":{"limit":{"description":"Optional: maximum number of recommendations to return (default: 5, minimum: 1)","minimum":1,"type":"integer"},"path":{"description":"Absolute path to the project root directory","type":"string"}},"required":["path"],"type":"object"},"name":"get_recommendations"},{"annotations":{"readOnlyHint":true},"description":"Get all issues of a specific severity level.","inputSchema":{"properties":{"path":{"description":"Absolute path to the project root directory","type":"string"},"severity":{"description":"Severity level to filter by","enum":["low","medium","high","critical"],"type":"string"}},"required":["path","severity"],"type":"object"},"name":"get_issues_by_severity"},{"annotations":{"readOnlyHint":true},"description":"Get all issues of a specific category.","inputSchema":{"properties":{"category":{"description":"Category to filter by","enum":["dependency","code-quality","architecture","documentation","testing","security","performance","maintainability"],"type":"string"},"path":{"description":"Absolute path to the project root directory","type":"string"}},"required":["path","category"],"type":"object"},"name":"get_issues_by_category"},{"annotations":{"destructiveHint":true},"description":"Add a custom pattern-based tech debt rule.","inputSchema":{"properties":{"category":{"description":"Debt category","enum":["dependency","code-quality","architecture","documentation","testing","security","performance","maintainability"],"type":"string"},"flags":{"description":"Optional: regex flags (g, i, m, s, etc.)","type":"string"},"id":{"description":"Unique identifier for the rule","type":"string"},"languages":{"description":"Optional: apply only to specific languages","items":{"type":"string"},"type":"array"},"message":{"description":"Issue title/message","type":"string"},"pattern":{"description":"Regex pattern to match","type":"string"},"severity":{"description":"Issue severity level","enum":["low","medium","high","critical"],"type":"string"},"suggestion":{"description":"Optional: how to fix the issue","type":"string"}},"required":["id","pattern","message","severity","category"],"type":"object"},"name":"add_custom_rule"},{"annotations":{"destructiveHint":true},"description":"Remove a custom rule by ID.","inputSchema":{"properties":{"id":{"description":"ID of the rule to remove","type":"string"}},"required":["id"],"type":"object"},"name":"remove_custom_rule"},{"annotations":{"readOnlyHint":true},"description":"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.","inputSchema":{"properties":{},"type":"object"},"name":"list_session_custom_rules"},{"annotations":{"readOnlyHint":true},"description":"Execute all custom rules against code or a file.","inputSchema":{"properties":{"code":{"description":"Source code content to analyze directly (maximum 500000 characters; alternative to path). Either path or code must be provided.","maxLength":500000,"minLength":1,"type":"string"},"language":{"description":"Optional: programming language for filtering rules","type":"string"},"path":{"description":"Absolute filesystem path to the file to analyze (maximum 500000 bytes). An empty string is treated the same as omitting the field.","type":"string"}},"type":"object"},"name":"execute_custom_rules"},{"annotations":{"readOnlyHint":true},"description":"Validate a custom pattern before adding it as a rule.","inputSchema":{"properties":{"category":{"description":"Debt category","enum":["dependency","code-quality","architecture","documentation","testing","security","performance","maintainability"],"type":"string"},"id":{"description":"Unique identifier for the rule","type":"string"},"message":{"description":"Issue title/message","type":"string"},"pattern":{"description":"Regex pattern to validate","type":"string"},"severity":{"description":"Issue severity level","enum":["low","medium","high","critical"],"type":"string"}},"required":["id","pattern","message","severity","category"],"type":"object"},"name":"validate_custom_pattern"},{"annotations":{"readOnlyHint":true},"description":"Analyze project dependencies across multiple package managers.","inputSchema":{"properties":{"includeDev":{"description":"Optional: include development dependencies (default: true)","type":"boolean"},"path":{"description":"Absolute path to the project root directory","type":"string"}},"required":["path"],"type":"object"},"name":"check_dependencies"},{"annotations":{"readOnlyHint":true},"description":"Validate a .techdebtrc.json configuration file for syntax and schema correctness.","inputSchema":{"properties":{"path":{"description":"Absolute path to the project root directory or directly to a .techdebtrc.json file","type":"string"}},"required":["path"],"type":"object"},"name":"validate_config"},{"annotations":{"readOnlyHint":true},"description":"Generate an offline dependency report listing all project dependencies for vulnerability review. Note: actual CVE lookups require Phase 2b online integration.","inputSchema":{"properties":{"includeDev":{"description":"Optional: include development dependencies (default: false)","type":"boolean"},"path":{"description":"Absolute path to the project root directory","type":"string"}},"required":["path"],"type":"object"},"name":"get_vulnerability_report"}]}}}
