{
"event": "PreToolUse",
"tool_name": "Write",
"tool_input": {
"file_path": "\/opt\/mcp-servers\/mcp-db\/ruff.toml",
"content": "# 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"
}
}
{
"tool_response": {
"type": "update",
"filePath": "\/opt\/mcp-servers\/mcp-db\/ruff.toml",
"content": "# 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": 1,
"oldLines": 10,
"newStart": 1,
"newLines": 9,
"lines": [
" # Ruff configuration for MCP-DB Server",
"+line-length = 120",
"+",
" [lint]",
" select = [\"E\", \"W\", \"F\", \"I\", \"B\", \"C4\", \"UP\", \"SIM\"]",
" ignore = [",
" \"E402\", # module level import not at top (required for MCP path setup)",
" \"E501\", # line too long",
" ]",
"-",
"-[format]",
"-line-length = 120"
]
}
],
"originalFile": "# Ruff configuration for MCP-DB Server\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\n[format]\nline-length = 120\n"
}
}