feat(mcp): Add 5 developer enhancements (git, logs, clipboard watcher, ast skeleton, nvim ghost text)

This commit is contained in:
Riz Ashraf committed 2026-09-30 05:29:50 +01:00
1 parent ccc268d807
commit 0e9748f797
27 files changed
+1401 -174

No files matched your search

+18 -10
View File
@@ -1,24 +1,32 @@
$Url = "http://127.0.0.1:3000/"
param (
[string]$Port = "3000"
)
$HealthUrl = "http://127.0.0.1:$Port/ping"
$UiUrl = "http://127.0.0.1:$Port/?t=$(Get-Random)"
$ExpectedContent = "open-color" # Basic sanity check that we are serving the updated UI
Write-Host "Verifying server at $Url..." -ForegroundColor Cyan
Write-Host "Verifying server HEALTH at $HealthUrl..." -ForegroundColor Cyan
for ($i = 1; $i -le 10; $i++) {
for ($i = 1; $i -le 40; $i++) {
try {
$response = Invoke-WebRequest -Uri $Url -UseBasicParsing -ErrorAction Stop
if ($response.StatusCode -eq 200) {
if ($response.Content -match $ExpectedContent) {
Write-Host "✅ Server is UP and serving the correct payload! (Attempt $i)" -ForegroundColor Green
$healthResponse = Invoke-WebRequest -Uri $HealthUrl -UseBasicParsing -ErrorAction Stop
if ($healthResponse.StatusCode -eq 200) {
Write-Host "✅ Server /ping is UP! (Attempt $i)" -ForegroundColor Green
Write-Host "Verifying UI payload at $UiUrl..." -ForegroundColor Cyan
$uiResponse = Invoke-WebRequest -Uri $UiUrl -UseBasicParsing -ErrorAction Stop
if ($uiResponse.Content -match $ExpectedContent) {
Write-Host "✅ Server is serving the correct UI payload!" -ForegroundColor Green
exit 0
} else {
Write-Host "⚠️ Server is up but serving old cached content. Retrying... (Attempt $i)" -ForegroundColor Yellow
Write-Host "⚠️ Server is healthy but UI serving old cached content. Retrying..." -ForegroundColor Yellow
}
}
} catch {
Write-Host "⏳ Server not responding yet... (Attempt $i)" -ForegroundColor Yellow
Write-Host "⏳ Server /ping not responding yet... (Attempt $i)" -ForegroundColor Yellow
}
Start-Sleep -Seconds 1
}
Write-Error "❌ Deployment verification failed! Server did not come up or did not serve correct content after 10 seconds."
Write-Error "❌ Deployment verification failed! /ping endpoint unreachable after 40 seconds."
exit 1