workspace
Manage local ComfyUI installations: get the active path, set a default, or list detected instances.
Instructions
Inspect and manage ComfyUI workspaces (local installs). Driven by the action parameter:
action:"get" — Report the active ComfyUI workspace (mirrors
comfy-cli which): the local installation path being used (from COMFYUI_PATH or auto-detection), the source of that path, any persisted default workspace, and the resolved API target the MCP server talks to.action:"set_default" — Persist a default ComfyUI workspace path to the MCP config file (mirrors
comfy-cli set-default). The value is stored under the OS config dir (e.g. ~/.config/comfyui-mcp/workspace.json) and reported by action:"get"/action:"list". Does NOT change the live API target.pathis REQUIRED, e.g. {action:"set_default", path:"/opt/ComfyUI"}.action:"list" — List known/auto-detected ComfyUI installations on this machine. Scans common install locations across macOS, Linux, and Windows and marks which one is active and which is the saved default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | action:"set_default" — REQUIRED absolute path to a ComfyUI installation directory to remember as the default workspace. | |
| action | Yes | Which workspace operation to perform. "get" and "list" take no other parameters; "set_default" requires `path`. |