launch_comfyui
Starts the local ComfyUI server in the background and returns once it is ready. Specify extra arguments, with network-exposing flags requiring user confirmation. Prevents duplicate launches on the same port.
Instructions
Start the LOCAL ComfyUI server, detached, and return once it is up.
Wraps comfy launch --background, recording its pid so stop_comfyui
can shut it down. extra_args forward to ComfyUI after a --
separator. Call server_info first — a second launch fails on the port.
Network-exposing flags need the USER's confirmation. ComfyUI has no
auth, so a non-loopback --listen (bare included) or
--enable-cors-header publishes its full API to anything that can
reach this machine. Those flags raise an MCP elicitation; a decline
starts nothing, even with confirm_network_exposure=True. On a client
that cannot prompt, that flag is the fallback — set it ONLY when the
user has actually agreed. --listen 127.0.0.1/::1/localhost
needs no confirmation.
Prints text with no JSON envelope; success returns a synthesized
{"ok": True, ...}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| extra_args | No | ||
| confirm_network_exposure | No |