-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-gateway-manager.cmd
More file actions
38 lines (30 loc) · 946 Bytes
/
start-gateway-manager.cmd
File metadata and controls
38 lines (30 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@echo off
title Common MCP Gateway Manager
echo Starting Common MCP Gateway Manager...
echo.
cd /d "%~dp0"
echo [1/2] Starting Backend (port 1525)...
start "Gateway Backend" cmd /k "cd gateway-manager\backend && npm run dev"
timeout /t 3 /nobreak > nul
echo [2/2] Starting Frontend (port 5173)...
start "Gateway Frontend" cmd /k "cd gateway-manager\frontend && npm run dev"
timeout /t 3 /nobreak > nul
echo.
echo ===================================
echo Common MCP Gateway Manager starting!
echo ===================================
echo.
echo Backend: http://127.0.0.1:1525
echo Frontend: http://localhost:5173
echo.
echo Opening browser in 5 seconds...
timeout /t 5 /nobreak > nul
start http://localhost:5173
echo.
echo Press any key to stop all services...
pause > nul
echo.
echo Stopping services...
taskkill /FI "WINDOWTITLE eq Gateway Backend*" /F > nul 2>&1
taskkill /FI "WINDOWTITLE eq Gateway Frontend*" /F > nul 2>&1
echo Done!