{
"event": "PreToolUse",
"tool_name": "Edit",
"tool_input": {
"file_path": "\/opt\/mcp-servers\/mcp-db\/ruff.toml",
"old_string": "# Ruff configuration for MCP-DB Server\nline-length = 120\n\n[lint]\nselect = [\"E\", \"W\", \"F\", \"I\", \"B\", \"C4\", \"UP\", \"SIM\"]\nignore = [\n \"E402\", # module level import not at top (required for MCP path setup)\n \"E501\", # line too long\n]",
"new_string": "# Ruff configuration for MCP-DB Server\nline-length = 120\n\n[lint]\nselect = [\"E\", \"W\", \"F\", \"I\", \"B\", \"C4\", \"UP\", \"SIM\"]\nignore = [\n \"E402\", # module level import not at top (required for MCP path setup)\n \"E501\", # line too long\n \"SIM105\", # contextlib.suppress - we use try-except-pass intentionally for logging\n]"
}
}
{
"tool_response": {
"filePath": "\/opt\/mcp-servers\/mcp-db\/ruff.toml",
"oldString": "# Ruff configuration for MCP-DB Server\nline-length = 120\n\n[lint]\nselect = [\"E\", \"W\", \"F\", \"I\", \"B\", \"C4\", \"UP\", \"SIM\"]\nignore = [\n \"E402\", # module level import not at top (required for MCP path setup)\n \"E501\", # line too long\n]",
"newString": "# Ruff configuration for MCP-DB Server\nline-length = 120\n\n[lint]\nselect = [\"E\", \"W\", \"F\", \"I\", \"B\", \"C4\", \"UP\", \"SIM\"]\nignore = [\n \"E402\", # module level import not at top (required for MCP path setup)\n \"E501\", # line too long\n \"SIM105\", # contextlib.suppress - we use try-except-pass intentionally for logging\n]",
"originalFile": "# Ruff configuration for MCP-DB Server\nline-length = 120\n\n[lint]\nselect = [\"E\", \"W\", \"F\", \"I\", \"B\", \"C4\", \"UP\", \"SIM\"]\nignore = [\n \"E402\", # module level import not at top (required for MCP path setup)\n \"E501\", # line too long\n]\n",
"structuredPatch": [
{
"oldStart": 6,
"oldLines": 4,
"newStart": 6,
"newLines": 5,
"lines": [
" ignore = [",
" \"E402\", # module level import not at top (required for MCP path setup)",
" \"E501\", # line too long",
"+ \"SIM105\", # contextlib.suppress - we use try-except-pass intentionally for logging",
" ]"
]
}
],
"userModified": false,
"replaceAll": false
}
}