comfyui-mcp 0.52.67 → 0.52.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comfyui-mcp",
3
- "version": "0.52.67",
3
+ "version": "0.52.68",
4
4
  "mcpName": "io.github.artokun/comfyui-mcp",
5
5
  "description": "Local-first, agent-native control plane for ComfyUI — MCP server + autonomous sidebar agent that drives your live graph in natural language on ANY LLM: Claude/ChatGPT/Gemini on your subscription (no API key), free local models via Ollama (fully offline), or any hosted model via an OpenAI-compatible endpoint (DeepSeek, GLM, MiMo, OpenRouter). Generate images, video & audio, author and run workflows, manage models and custom nodes; a compact tool-router mode keeps even 4B models effective, and a built-in LLM Arena benchmarks them on real ComfyUI tasks. Also a Claude Code plugin with skills, slash commands, and installer packs. Local, LAN, VPS, or Comfy Cloud.",
6
6
  "homepage": "https://comfyui-mcp.artokun.io/docs",
@@ -131,12 +131,23 @@ is a widget named **`lora_1`, `lora_2`, …** whose value is a composite object
131
131
  identified by the **presence of a `lora` key**, and the node's control widgets are
132
132
  appended *after* them, so do not index positionally — **address the row by name**.
133
133
 
134
- **You can only edit rows that ALREADY EXIST.** A freshly added Power Lora Loader has
135
- **no `lora_N` widgets at all** — rows are created by the node's on-canvas "➕ Add Lora"
136
- button, which opens a chooser on a mouse event. No panel tool can press it, so
137
- `panel_set_widget` on `lora_1` right after `panel_add_node` fails with `has no widget`.
138
- Read the node's real widget list first (`panel_query_graph`), and to build a stack from
139
- scratch either ask the user to add the rows, or wire plain `LoraLoader` nodes instead.
134
+ **Rows CAN be created programmatically.** A freshly added Power Lora Loader has
135
+ **no `lora_N` widgets at all** — the on-canvas "➕ Add Lora" button opens a chooser on a
136
+ mouse event that no panel tool can press, but `panel_set_widget` does not need it:
137
+ writing `lora_1` (then `lora_2`, …) with a **JSON object STRING** creates the row and
138
+ the reply carries `created_widget: "lora_1"`. Create rows **in order**, one call each:
139
+
140
+ ```
141
+ panel_set_widget(node_id=<id>, widget="lora_1",
142
+ value='{"on":true,"lora":"subdir/turbo.safetensors","strength":1,"strengthTwo":null}')
143
+
144
+ # A Windows subdir separator is a JSON escape — write it DOUBLED in the string:
145
+ # "lora":"Anima\\Tools\\turbo.safetensors"
146
+ ```
147
+
148
+ Re-read with `panel_query_graph {ids:[<id>], fields:'detail'}` to confirm the row
149
+ landed. If you need a stack from scratch, create `lora_1`, then `lora_2`, and so on;
150
+ do not assume a skipped number is the next row.
140
151
 
141
152
  On an existing row, write ONE field with **dotted sub-field addressing** — it merges
142
153
  onto the current object and preserves every other field: