node_pack_git
Run git commands on custom node packs. Check status, diff, log, or commit and push changes when write access is enabled.
Instructions
Run a git operation inside one custom-node pack (status/diff/log/commit/push). Reads (status/diff/log) are always allowed. Writes (commit/push) require the environment flag COMFYUI_MCP_ALLOW_GIT_WRITES=1 (default OFF) and otherwise return a structured DISABLED_BY_CONFIG refusal so you can self-correct. commit requires a message and stages either the given paths or all pack changes. This is the final step of the author loop after scaffold_custom_node → write_node_file/apply_node_patch → verify_custom_node → restart_comfyui, before publish_custom_node. LOCAL-ONLY (requires COMFYUI_PATH); the pack and any paths are jailed to custom_nodes/.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pack | Yes | Pack folder name under custom_nodes/. | |
| paths | No | Pack-relative paths to stage/scope (jail-checked). Defaults to all pack changes. | |
| action | Yes | Git action. status/diff/log are read-only; commit/push require COMFYUI_MCP_ALLOW_GIT_WRITES=1. | |
| message | No | Commit message (required for action 'commit'). | |
| max_chars | No | Maximum characters of git output to return (default 12000). |