What is Win-10-MCP-Server---Simple-persistant-logging?
A customized version of the official @modelcontextprotocol/server-filesystem MCP server that adds persistent logging and automatic file backups. Created to combat Claude Desktop’s tendency to write incomplete files, it logs all write_file operations and creates timestamped backups before overwriting existing files.
How to use Win-10-MCP-Server---Simple-persistant-logging?
Replace the standard index.js inside server-filesystem/dist with the provided modified version and place logger.mjs in your project root. The server will then log all write_file calls to logs/KAN_server.log and create a backup of any existing target file with a .MMDDYY_HH_MM__CLDBak suffix before writing.
Key features of Win-10-MCP-Server---Simple-persistant-logging
- Creates a timestamped backup of the target file before every
write_file call
- Logs all file operations to a persistent
logs/KAN_server.log file
- Returns the backup filename in the response for immediate user notification
- Validates file paths to restrict writing to a controlled directory
- Runs on Node.js without any additional dependencies
Use cases of Win-10-MCP-Server---Simple-persistant-logging
- Recovering when Claude Desktop writes incomplete files due to lazy output
- Auditing file change history for MCP-driven file editing sessions
- Providing a simple diff-based workflow to verify and fix Claude’s changes
Comments