Keep/mcp-server/start-mcp.ps1
sepehr ddb67ba9e5 fix: unify theme system - fix theme switching persistence
- Unified localStorage key to 'theme-preference' across all components
- Fixed header.tsx using wrong localStorage key ('theme' instead of 'theme-preference')
- Added localStorage hybrid persistence for instant theme changes
- Removed router.refresh() which was causing stale data revert
- Replaced Blue theme with Sepia
- Consolidated auth() calls to prevent race conditions
- Updated UserSettingsData types to include all themes
2026-01-18 22:33:41 +01:00

44 lines
1.7 KiB
PowerShell

# Script pour démarrer le serveur MCP Keep Notes
# Mode: Stdio (par défaut)
Write-Host ""
Write-Host "==========================================" -ForegroundColor Cyan
Write-Host " 🚀 Keep Notes MCP Server" -ForegroundColor Cyan
Write-Host "==========================================" -ForegroundColor Cyan
Write-Host ""
Write-Host "📌 Mode: Stdio" -ForegroundColor Yellow
Write-Host "📌 Chemin: $PSScriptRoot" -ForegroundColor Yellow
Write-Host ""
Write-Host "⏳ Démarrage du serveur..." -ForegroundColor Green
Write-Host "🛑 Appuyez sur Ctrl+C pour arrêter" -ForegroundColor Red
Write-Host ""
# Vérifier si Prisma est généré
if (-not (Test-Path "node_modules\.prisma\client")) {
Write-Host "⚠️ Client Prisma non trouvé, génération en cours..." -ForegroundColor Yellow
npx prisma generate
Write-Host "✅ Client Prisma généré" -ForegroundColor Green
}
# Vérifier que Keep Notes est en cours d'exécution
try {
$response = Invoke-WebRequest -Uri "http://localhost:3000" -UseBasicParsing -TimeoutSec 2
Write-Host "✅ Keep Notes est en cours d'exécution" -ForegroundColor Green
} catch {
Write-Host "⚠️ Attention: Keep Notes n'est pas accessible sur localhost:3000" -ForegroundColor Yellow
Write-Host " Le serveur MCP risque de ne pas fonctionner correctement" -ForegroundColor Yellow
Write-Host ""
$continue = Read-Host "Voulez-vous continuer quand même? (O/N)"
if ($continue -ne "O" -and $continue -ne "o") {
Write-Host "❌ Annulation" -ForegroundColor Red
exit 1
}
}
Write-Host ""
Write-Host "🚀 Démarrage du serveur MCP..." -ForegroundColor Green
Write-Host ""
# Démarrer le serveur
node index.js