workspace
Manage local ComfyUI installations: inspect the active one, list detected ones, and set a default path for the MCP server.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "workspace"
}
}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`. |