Add DeepSeek AI MCP assistant
This commit is contained in:
13
MES-Manager_View/scripts/stop-ai.ps1
Normal file
13
MES-Manager_View/scripts/stop-ai.ps1
Normal file
@@ -0,0 +1,13 @@
|
||||
$connections = Get-NetTCPConnection -LocalPort 3100 -State Listen -ErrorAction SilentlyContinue
|
||||
if (-not $connections) {
|
||||
Write-Output "AI MCP service is not running on port 3100."
|
||||
exit 0
|
||||
}
|
||||
|
||||
$connections | ForEach-Object {
|
||||
$pidValue = $_.OwningProcess
|
||||
if ($pidValue) {
|
||||
Stop-Process -Id $pidValue -Force
|
||||
Write-Output "Stopped AI MCP process $pidValue."
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user