Overview
Handles repo creation/cloning via MCP tools. Use git_action for custom init/clone.
Key Tools
- •
clone_project: Clone single. Params: git_project (URL required), repository_directory?, threads?, set_to_default_branch?. - •
clone_projects: Clone multiple. Params: projects? (list), projects_file?, repository_directory?. - •
git_action: Custom (e.g., "git init", "git clone <url>"). Params: command (required), repository_directory?.
Usage Instructions
- •For init:
git_actionwith "git init". - •Clone: Prefer dedicated tools; fallback to
git_actionfor options (e.g., "git clone --depth 1 <url>"). - •Chain: Clone -> pull (from pull skill).
Examples
- •Init:
git_actionwith command="git init", repository_directory="/path". - •Clone single:
clone_projectwith git_project="https://github.com/user/repo". - •Clone multiple:
clone_projectswith projects=["url1", "url2"].
Error Handling
- •Exists: Check dir first.
- •Auth: Ensure URL has creds if private.