{
"event": "PreToolUse",
"tool_name": "mcp__mcp-db__db_select",
"tool_input": {
"query": "SELECT ca.file_path, cq.hygiene_score, cq.issues_count, cq.issues_json\nFROM code_quality cq\nJOIN code_analysis ca ON ca.id = cq.analysis_id\nWHERE ca.file_path LIKE '%ClaudeService%' \n OR ca.file_path LIKE '%CredentialService%'\n OR ca.file_path LIKE '%Task.php'\n OR ca.file_path LIKE '%TaskResult.php'\n OR ca.file_path LIKE '%ChatMessage.php'\nORDER BY cq.hygiene_score ASC\nLIMIT 15",
"database": "ki_dev"
}
}
{
"tool_response": [
{
"type": "text",
"text": "{\n \"status\": \"success\",\n \"data\": [\n {\n \"file_path\": \"\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Entity\/Task.php\",\n \"hygiene_score\": 60,\n \"issues_count\": 2,\n \"issues_json\": \"[{\\\"type\\\":\\\"complexity\\\",\\\"rule\\\":\\\"file-too-long\\\",\\\"message\\\":\\\"Datei hat 347 Zeilen (max: 300)\\\",\\\"severity\\\":\\\"warning\\\"},{\\\"type\\\":\\\"srp\\\",\\\"rule\\\":\\\"too-many-methods\\\",\\\"message\\\":\\\"Klasse hat 37 Methoden (max: 30)\\\",\\\"severity\\\":\\\"warning\\\"}]\"\n },\n {\n \"file_path\": \"\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Entity\/TaskResult.php\",\n \"hygiene_score\": 60,\n \"issues_count\": 2,\n \"issues_json\": \"[{\\\"type\\\":\\\"complexity\\\",\\\"rule\\\":\\\"file-too-long\\\",\\\"message\\\":\\\"Datei hat 316 Zeilen (max: 300)\\\",\\\"severity\\\":\\\"warning\\\"},{\\\"type\\\":\\\"srp\\\",\\\"rule\\\":\\\"too-many-methods\\\",\\\"message\\\":\\\"Klasse hat 40 Methoden (max: 30)\\\",\\\"severity\\\":\\\"warning\\\"}]\"\n },\n {\n \"file_path\": \"\/var\/www\/dev.campus.systemische-tools.de\/src\/Domain\/Entity\/ChatMessage.php\",\n \"hygiene_score\": 64,\n \"issues_count\": 1,\n \"issues_json\": \"[{\\\"type\\\":\\\"complexity\\\",\\\"rule\\\":\\\"file-too-long\\\",\\\"message\\\":\\\"Datei hat 302 Zeilen (max: 300)\\\",\\\"severity\\\":\\\"warning\\\"}]\"\n },\n {\n \"file_path\": \"\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/AI\/ClaudeService.php\",\n \"hygiene_score\": 83,\n \"issues_count\": 0,\n \"issues_json\": \"[]\"\n },\n {\n \"file_path\": \"\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Config\/CredentialService.php\",\n \"hygiene_score\": 100,\n \"issues_count\": 0,\n \"issues_json\": \"[]\"\n }\n ],\n \"row_count\": 5,\n \"error\": null,\n \"execution_ms\": 3\n}"
}
]
}