gateway Command
Use gateway to manage the OpenMCP Gateway service.
Subcommands
bash
omc gateway run # foreground
omc gateway start # background
omc gateway stop # stop service
omc gateway restart # restart service
omc gateway status # check statusCommon option:
-p, --port <port>: Gateway WebSocket port (default8282).
Examples
bash
omc gateway start -p 8282
omc gateway status -p 8282
omc gateway stop -p 8282Status & Stop Robustness
status and stop do not rely only on local PID files:
- Port reachability and WebSocket handshake are used.
statuscan still showRunningwhen PID is external/unknown.stopcan resolve PID by port and then terminate it when needed.