- Added package.json to manage development scripts. - Updated restart-services.ps1 to call the new dev script for starting services. - Refactored start-admin.ps1, start-backend.ps1, start-frontend.ps1, and start-mcp.ps1 to utilize the dev script for starting respective services. - Enhanced stop-services.ps1 to improve process termination logic by matching command patterns.
15 lines
420 B
PowerShell
15 lines
420 B
PowerShell
param(
|
|
[switch]$Install,
|
|
[string]$ApiKey = "termi-mcp-local-dev-key",
|
|
[string]$BackendApiBase = "http://127.0.0.1:5150/api",
|
|
[int]$Port = 5151
|
|
)
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
$repoRoot = Split-Path -Parent $MyInvocation.MyCommand.Path
|
|
$devScript = Join-Path $repoRoot "dev.ps1"
|
|
|
|
& $devScript -Only mcp -Install:$Install -McpApiKey $ApiKey -McpBackendApiBase $BackendApiBase -McpPort $Port
|
|
exit $LASTEXITCODE
|