Add HL MES manager with AI assistant service
This commit is contained in:
13
ai-mcp-service/status.ps1
Normal file
13
ai-mcp-service/status.ps1
Normal file
@@ -0,0 +1,13 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
$port = if ($env:PORT) { [int]$env:PORT } else { 8787 }
|
||||
$url = "http://127.0.0.1:$port/health"
|
||||
|
||||
try {
|
||||
$health = Invoke-RestMethod -Uri $url -Method Get -TimeoutSec 3
|
||||
Write-Host "AI MCP service is running: $url"
|
||||
$health | ConvertTo-Json -Depth 5
|
||||
} catch {
|
||||
Write-Host "AI MCP service is not running on $url"
|
||||
exit 1
|
||||
}
|
||||
Reference in New Issue
Block a user