Git Flow Actions
git_flowDrives the git-flow-next CLI to initialize and configure Git Flow workflows and manage topic, feature, release, and hotfix branches, including finish recovery.
Instructions
Drives the git-flow-next CLI. The CLI owns the workflow semantics — the finish state machine, conflict recovery, and worktree lifecycle — so it must be installed and on PATH; this tool only builds argv. Prefer operation=config/topic/control with subactions; the legacy action aliases remain for compatibility.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "git_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ff | No | Use fast-forward behavior when the selected strategy allows it. | |
| tag | No | Create an annotated tag when finishing a release or hotfix (default: true). | |
| name | No | Branch short name, branch type name, or release/hotfix version depending on the action. | |
| fetch | No | Fetch the remote before finish when a remote is configured. | |
| force | No | Force re-initialization even if git-flow is already configured. | |
| scope | No | Git config scope used for init writes. | local |
| topic | No | Topic branch type for generalized actions such as topic-start, topic-list, or topic-publish. | |
| action | No | Legacy-compatible action alias. | |
| parent | No | Parent/base branch for flow config mutations. | |
| prefix | No | Branch prefix for topic type definitions, such as "feature/". | |
| preset | No | git-flow-next preset to initialize. | classic |
| remote | No | Remote name for publish operations (default: "origin"). | |
| shared | No | Write a committable .gitflow file (init, or config edit). | |
| publish | No | Publish parent/backmerge branches after finish. | |
| recover | No | Which in-progress operation control_action targets (default: finish). | finish |
| base_ref | No | Explicit starting ref for topic-start. | |
| new_name | No | New short name or branch type name for rename operations. | |
| strategy | No | Integration strategy for finish/update operations. | |
| worktree | No | Worktree handling for the branch. finish/delete expose only --keep-worktree and --force-worktree; start and checkout expose --worktree/--no-worktree/--worktree-path. Using the wrong pair raises rather than being silently ignored. | |
| operation | No | Canonical git_flow operation. | |
| repo_path | No | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. | |
| worktrees | No | Append a worktree column to a list (only valid with topic_action=list). | |
| tag_prefix | No | Tag prefix for flow config mutations. | |
| auto_update | No | Enable auto-update on base branch definitions. | |
| branch_kind | No | Whether a flow config operation targets a base branch or topic branch type. | |
| config_file | No | Path to a git config file when scope is "file". | |
| keep_branch | No | Keep the topic branch after finish. | |
| main_branch | No | Override the main branch name (default: gitflow.branch.master config or "main"). | |
| start_point | No | Configured start point for a topic type. | |
| tag_message | No | Message for the version tag. | |
| force_delete | No | Force deletion for topic-delete and config flags. | |
| topic_action | No | Topic branch lifecycle operation. | |
| config_action | No | config_action is required for operation=config. | |
| keep_worktree | No | On finish/delete, keep the branch worktree detached instead of removing it. | |
| worktree_path | No | Create the worktree at this path instead of the computed one. | |
| control_action | No | Continue or abort an in-progress flow finish operation. | |
| develop_branch | No | Override the develop branch name (default: gitflow.branch.develop config or "develop"). | |
| force_worktree | No | On finish/delete, remove a git-flow-created worktree even with uncommitted changes. | |
| staging_branch | No | NOT SUPPORTED by git-flow-next 2.1.0 init; use preset=gitlab instead. | |
| preserve_merges | No | Preserve merges during rebase-based finish flows. | |
| response_format | No | Output format for the response. | markdown |
| production_branch | No | NOT SUPPORTED by git-flow-next 2.1.0 init; use preset=gitlab instead. | |
| upstream_strategy | No | Merge strategy for flow branch integration. | |
| no_create_branches | No | Skip base branch creation during init and only write configuration. | |
| downstream_strategy | No | Merge strategy for flow branch integration. | |
| rebase_before_finish | No | Rebase the topic branch onto its parent before finishing. |