{
"event": "PreToolUse",
"tool_name": "Write",
"tool_input": {
"file_path": "\/var\/www\/mcp-servers\/mcp_contracts\/infrastructure\/__init__.py",
"content": "\"\"\"Infrastructure Layer für MCP-Contracts.\"\"\"\n\n# Shared components\nfrom shared.infrastructure import ProtokollLogger, SimpleDbConnection, get_logger\n\n# Server-specific\nfrom .contract_repository import ContractRepository\n\n__all__ = [\n \"SimpleDbConnection\",\n \"ProtokollLogger\",\n \"get_logger\",\n \"ContractRepository\",\n]\n"
}
}
{
"tool_response": {
"type": "update",
"filePath": "\/var\/www\/mcp-servers\/mcp_contracts\/infrastructure\/__init__.py",
"content": "\"\"\"Infrastructure Layer für MCP-Contracts.\"\"\"\n\n# Shared components\nfrom shared.infrastructure import ProtokollLogger, SimpleDbConnection, get_logger\n\n# Server-specific\nfrom .contract_repository import ContractRepository\n\n__all__ = [\n \"SimpleDbConnection\",\n \"ProtokollLogger\",\n \"get_logger\",\n \"ContractRepository\",\n]\n",
"structuredPatch": [
{
"oldStart": 1,
"oldLines": 10,
"newStart": 1,
"newLines": 13,
"lines": [
"-\"\"\"Infrastructure Layer für MCP-Contracts\"\"\"",
"-from .db_connection import DatabaseConnection",
"-from .protokoll_logger import ProtokollLogger, get_logger",
"+\"\"\"Infrastructure Layer für MCP-Contracts.\"\"\"",
"+",
"+# Shared components",
"+from shared.infrastructure import ProtokollLogger, SimpleDbConnection, get_logger",
"+",
"+# Server-specific",
" from .contract_repository import ContractRepository",
" ",
" __all__ = [",
"- \"DatabaseConnection\",",
"+ \"SimpleDbConnection\",",
" \"ProtokollLogger\",",
" \"get_logger\",",
" \"ContractRepository\","
]
}
],
"originalFile": "\"\"\"Infrastructure Layer für MCP-Contracts\"\"\"\nfrom .db_connection import DatabaseConnection\nfrom .protokoll_logger import ProtokollLogger, get_logger\nfrom .contract_repository import ContractRepository\n\n__all__ = [\n \"DatabaseConnection\",\n \"ProtokollLogger\",\n \"get_logger\",\n \"ContractRepository\",\n]\n"
}
}