{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/mcp-servers\/mcp-contracts\/tools\/contract_tools\/contract_reporter.py",
"limit": 25
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/mcp-servers\/mcp-contracts\/tools\/contract_tools\/contract_reporter.py",
"content": "\"\"\"Contract Reporting and Logging Module\"\"\"\nimport time\nimport json\nfrom typing import Optional, Any, Callable\n\nfrom domain.contracts import LogEntry\nfrom infrastructure.protokoll_logger import get_logger\n\nfrom .constants import (\n ERROR_MESSAGE_MAX_LENGTH,\n LOG_STATUS_SUCCESS,\n LOG_STATUS_ERROR,\n LOG_STATUS_DENIED\n)\n\n\nclass ContractReporter:\n \"\"\"Handles logging and response formatting for contract operations\"\"\"\n\n def __init__(self):\n \"\"\"Initialize reporter with logger\"\"\"\n self.logger = get_logger()\n\n def log_operation(\n self,",
"numLines": 25,
"startLine": 1,
"totalLines": 184
}
}
}