drio
Open app

Win-10-MCP-Server---Simple-persistant-logging

Source

Catalog onlyCatalog onlySTDIO

Overview

Win-10-MCP-Server - Simple Persistent Logging is a project designed to enhance the logging capabilities of MCP Servers by creating persistent logs on the hard drive, addressing issues with incomplete file writes.

To use this project, modify the index.js file in the specified directory to implement the logging functionality and ensure that the logger.mjs file is created in the project root to handle log file management.

  • Automatic backup creation of files before writing new content. - Persistent logging of file operations with timestamps. - Error handling and logging for file access issues.
  1. Ensuring data integrity by backing up files before modifications.
  2. Monitoring file operations for debugging and auditing purposes.
  3. Providing a reliable logging mechanism for MCP Server operations.

Add to your AI client

Use these steps to connect Win-10-MCP-Server---Simple-persistant-logging in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "win-10-mcp-server-simple-persistant-logging-trevorwilkerson": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-win-10-mcp-server-simple-persistant-logging-trevorwilkerson"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "win-10-mcp-server-simple-persistant-logging-trevorwilkerson": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-win-10-mcp-server-simple-persistant-logging-trevorwilkerson"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "win-10-mcp-server-simple-persistant-logging-trevorwilkerson": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-win-10-mcp-server-simple-persistant-logging-trevorwilkerson"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "win-10-mcp-server-simple-persistant-logging-trevorwilkerson": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-win-10-mcp-server-simple-persistant-logging-trevorwilkerson"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "win-10-mcp-server-simple-persistant-logging-trevorwilkerson": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-win-10-mcp-server-simple-persistant-logging-trevorwilkerson"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "win-10-mcp-server-simple-persistant-logging-trevorwilkerson": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-win-10-mcp-server-simple-persistant-logging-trevorwilkerson"
      ]
    }
  }
}

FAQ

Can this project handle all file types?

Yes, it can manage any file type as long as the path is validated.

Is there a limit to the number of backups created?

No, backups are created each time a file is modified, but you may want to implement a cleanup mechanism for old backups.

How does the logging mechanism work?

The logging mechanism appends log entries to a specified log file, capturing the operation details and any errors encountered.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1131,"uuid":"5415c0e3-1ec1-4be0-9f91-a28b34eb943f","name":"Win-10-MCP-Server---Simple-persistant-logging","title":"Win-10-MCP-Server---Simple-persistant-logging","description":null,"avatar_url":"https://avatars.githubusercontent.com/u/140319159?v=4","created_at":"2025-01-28T02:33:49.306Z","updated_at":"2025-02-23T07:20:08.734Z","status":"created","author_name":"trevorwilkerson","author_avatar_url":"https://avatars.githubusercontent.com/u/140319159?v=4","tags":"logging,file-management,backup","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/trevorwilkerson/Win-10-MCP-Server---Simple-persistant-logging","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]