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