json8e44aa49
| 1 | { |
| 2 | "schema_version" 1, |
| 3 | "mcp_id" "git-mcp", |
| 4 | "title" "Git MCP", |
| 5 | "tools" [ |
| 6 | { |
| 7 | "name" "git_status", |
| 8 | "description" "Состояние репозитория: ветка, изменённые/добавленные/удалённые файлы. workspace_path — корень репо (каталог .git или файл .git у субмодуля)." |
| 9 | }, |
| 10 | { |
| 11 | "name" "git_diff", |
| 12 | "description" "Дифф: не застейдженные изменения (или --staged по опции). Опционально path — один файл/путь." |
| 13 | }, |
| 14 | { |
| 15 | "name" "git_log", |
| 16 | "description" "Лог коммитов (git log -n N --oneline). По умолчанию последние 20." |
| 17 | }, |
| 18 | { |
| 19 | "name" "git_commit", |
| 20 | "description" "Сделать коммит: git add (указанные пути или всё), затем git commit -m. Вызывать только по решению пользователя (логические коммиты)." |
| 21 | }, |
| 22 | { |
| 23 | "name" "git_push", |
| 24 | "description" "Отправить коммиты: git push [remote] [branch]. По умолчанию origin и текущая ветка. dry_run=true — git push --dry-run (без отправки). Вызывать по решению пользователя." |
| 25 | }, |
| 26 | { |
| 27 | "name" "git_fetch", |
| 28 | "description" "git fetch: обновить ссылки remote (refs/remotes). Опционально remote, --all или --prune. dry_run=true — git fetch --dry-run. Без слияния в рабочее дерево." |
| 29 | }, |
| 30 | { |
| 31 | "name" "git_pull", |
| 32 | "description" "git pull: подтянуть и слить в текущую ветку. По умолчанию --ff-only (без merge-коммита от агента). dry_run=true — git pull --dry-run (Git 2.27+). Явно: remote + branch. Иначе — upstream текущей ветки." |
| 33 | }, |
| 34 | { |
| 35 | "name" "git_branch", |
| 36 | "description" "Ветки: action=list (ветки -vv), create (git branch name [start_point]), delete (-d или -D при force). По умолчанию list." |
| 37 | }, |
| 38 | { |
| 39 | "name" "git_show", |
| 40 | "description" "git show: содержимое коммита или объекта (rev: HEAD, хеш, ветка~1). Опционально path — файл в этой ревизии; stat_only — только --stat." |
| 41 | }, |
| 42 | { |
| 43 | "name" "git_submodule", |
| 44 | "description" "Субмодули: action=status (git submodule status) или update (git submodule update --init [--recursive], опционально path)." |
| 45 | }, |
| 46 | { |
| 47 | "name" "git_preflight", |
| 48 | "description" "Preflight перед коммитом: классифицирует изменения на semantic/whitespace-only/eol-only/bom-only и возвращает safe-fix подсказки." |
| 49 | }, |
| 50 | { |
| 51 | "name" "git_preflight_fix_safe", |
| 52 | "description" "Применить безопасные preflight-фиксы: git add --renormalize . и вернуть обновлённый preflight-отчёт." |
| 53 | } |
| 54 | ] |
| 55 | } |
| 56 | |