Windows Service Management
Production-ready HTTP server automation for Windows
Added
- Windows Task Scheduler Support for HTTP server (
scripts/service/windows/)install_scheduled_task.ps1: Creates scheduled task that runs at user loginuninstall_scheduled_task.ps1: Removes scheduled task cleanlymanage_service.ps1: Status, start, stop, restart, logs, health commandsrun_http_server_background.ps1: Wrapper with logging and automatic restart logicadd_watchdog_trigger.ps1: Adds repeating trigger (every N minutes, default 5)- Automatic startup at user login with skip-if-running logic
- Watchdog trigger checks every 5 minutes (configurable)
- Structured logging to
%LOCALAPPDATA%\mcp-memory\logs\ - PID file tracking for process management
- Health endpoint verification
- 819 lines of PowerShell automation for production-ready Windows service management
- Addresses Windows service management gap (no native systemd/launchd equivalent)
Quick Start
# Install scheduled task
.\scripts\service\windows\install_scheduled_task.ps1
# Manage service
.\scripts\service\windows\manage_service.ps1 status
.\scripts\service\windows\manage_service.ps1 start
.\scripts\service\windows\manage_service.ps1 logs
# Add watchdog (automatic restart every 5 minutes)
.\scripts\service\windows\add_watchdog_trigger.ps1What's Changed
Full Changelog: v8.52.2...v8.53.0