Prepare review folder (worktree + install)
gitlab_prepare_reviewSet up a local review environment for a GitLab merge request by creating a worktree and installing dependencies automatically.
Instructions
Creates a worktree from local repo (repo_path) or shallow HTTPS clone with token. Runs npm ci or composer install by default.
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": "gitlab_prepare_review"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | No | Absolute local clone path; resolves project and MR from current branch. | |
| project_id | No | Numeric ID or group/repo path on GitLab. | |
| install_command | No | Shell command at worktree root (e.g. npm ci). Omit to auto-detect. | |
| merge_request_iid | No | Merge request IID. Omit with repo_path to resolve from current branch. |