{
"event": "PreToolUse",
"tool_name": "mcp__mcp-db__db_execute",
"tool_input": {
"statement": "CREATE TABLE IF NOT EXISTS audit_log (\n id BIGINT AUTO_INCREMENT PRIMARY KEY,\n correlation_id VARCHAR(32) NOT NULL,\n event VARCHAR(100) NOT NULL,\n entity_type VARCHAR(50) NULL,\n entity_id INT NULL,\n context JSON NULL,\n level ENUM('debug', 'info', 'warning', 'error') DEFAULT 'info',\n user_id INT NULL,\n ip_address VARCHAR(45) NULL,\n created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,\n INDEX idx_correlation (correlation_id),\n INDEX idx_event (event),\n INDEX idx_entity (entity_type, entity_id),\n INDEX idx_created (created_at),\n INDEX idx_level (level)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci",
"database": "ki_dev"
}
}
{
"tool_response": [
{
"type": "text",
"text": "{\n \"status\": \"success\",\n \"affected_rows\": 0,\n \"error\": null,\n \"execution_ms\": 2\n}"
}
]
}