@echo off
setlocal ENABLEEXTENSIONS
chcp 65001 >nul
title Soar Word MCP — Uninstaller

set "HERE=%~dp0"
set "EXE=%HERE%launcher.dist\launcher.exe"

echo.
echo ============================================================
echo   Uninstall Soar Word MCP (V1.1)?
echo ============================================================
set /p "CONFIRM=  Really uninstall? (y/N): "
if /I not "%CONFIRM%"=="Y" (
    echo Cancelled.
    pause
    exit /b 0
)

rem 1. deregister MCP
if exist "%EXE%" (
    "%EXE%" --unregister-mcp 2>nul
)

echo.
echo Done. You may delete this folder manually:
echo    %HERE%
echo.
pause
endlocal
