comfy_stop_server
Stop a specific ComfyUI server instance via comfy-cli, specifying workspace, instance ID, or PID to precisely target non-Desktop servers.
Instructions
Stop an explicitly selected non-Desktop ComfyUI server via comfy-cli.
Desktop-supervised instances are never handed to comfy stop because
that can target a different comfy-cli workspace. Use Comfy Desktop itself
for a full stop, or comfy_restart for Manager V2 restart.
Args:
workspace: Optional --workspace path passed to comfy-cli (selects
which ComfyUI install to stop when multiple are present).
expected_instance_id: Optional Desktop instance selector from
comfy_instance_doctor.
expected_pid: Optional listener PID selector.
confirm: Explicit confirmation; otherwise MCP elicitation is used.
Returns: JSON with one of three shapes: - {status: "stopped", comfy_cli_returncode: 0, stdout, stderr} on successful shutdown. - {status: "failed", comfy_cli_returncode: N, stdout, stderr} when the binary is present but the call exits non-zero (most commonly: no server was running to stop). - {error: "...install hints..."} when comfy-cli is not on PATH.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| workspace | No | ||
| expected_pid | No | ||
| expected_instance_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |