# 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