{
"event": "PreToolUse",
"tool_name": "Write",
"tool_input": {
"file_path": "\/var\/www\/mcp-servers\/mcp_tasks\/infrastructure\/__init__.py",
"content": "\"\"\"Infrastructure Layer - DB-Verbindung und Logger.\"\"\"\n\n# Shared components\nfrom shared.infrastructure import ProtokollLogger, SimpleDbConnection, get_logger\n\n# Server-specific\nfrom .task_repository import TaskRepository\n\n__all__ = [\n \"SimpleDbConnection\",\n \"ProtokollLogger\",\n \"get_logger\",\n \"TaskRepository\",\n]\n"
}
}
{
"tool_response": {
"type": "update",
"filePath": "\/var\/www\/mcp-servers\/mcp_tasks\/infrastructure\/__init__.py",
"content": "\"\"\"Infrastructure Layer - DB-Verbindung und Logger.\"\"\"\n\n# Shared components\nfrom shared.infrastructure import ProtokollLogger, SimpleDbConnection, get_logger\n\n# Server-specific\nfrom .task_repository import TaskRepository\n\n__all__ = [\n \"SimpleDbConnection\",\n \"ProtokollLogger\",\n \"get_logger\",\n \"TaskRepository\",\n]\n",
"structuredPatch": [
{
"oldStart": 1,
"oldLines": 10,
"newStart": 1,
"newLines": 14,
"lines": [
"-\"\"\"Infrastructure Layer - DB-Verbindung und Logger\"\"\"",
"-from .db_connection import DatabaseConnection",
"-from .protokoll_logger import ProtokollLogger",
"+\"\"\"Infrastructure Layer - DB-Verbindung und Logger.\"\"\"",
"+",
"+# Shared components",
"+from shared.infrastructure import ProtokollLogger, SimpleDbConnection, get_logger",
"+",
"+# Server-specific",
" from .task_repository import TaskRepository",
" ",
" __all__ = [",
"- \"DatabaseConnection\",",
"+ \"SimpleDbConnection\",",
" \"ProtokollLogger\",",
"+ \"get_logger\",",
" \"TaskRepository\",",
" ]"
]
}
],
"originalFile": "\"\"\"Infrastructure Layer - DB-Verbindung und Logger\"\"\"\nfrom .db_connection import DatabaseConnection\nfrom .protokoll_logger import ProtokollLogger\nfrom .task_repository import TaskRepository\n\n__all__ = [\n \"DatabaseConnection\",\n \"ProtokollLogger\",\n \"TaskRepository\",\n]\n"
}
}