self_update
Check the install mode and compare current npm package version against the registry, or update to the latest published version. Refuses update on dev links and does not hot-swap code; a reconnect is required after updating.
Instructions
Check or apply a self-update of the comfyui-mcp npm package against the npm registry. The server also auto-checks on start (opt out with COMFYUI_MCP_AUTOUPDATE=0). Detects the install mode: a dev install (npm link / source checkout) is NEVER updated; global/local installs are updated via npm; npx fetches latest on next run. The running process cannot hot-swap its own code — after an update you must RECONNECT (/mcp) or restart the orchestrator to load the new version. This tool does not auto-restart.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | status: report install mode + current vs latest version + dev-link note (never errors). update: update to the latest published version (refuses on a dev link; no-op when already up to date or for npx). | status |