rriesco-mcp-git
v0.1.6MCP server for local git operations - commit, branch, push, pull, sync
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
git_create_branch
Create and checkout a git branch. Naming: branch_name (explicit) OR issue_number/description (auto: issue-N-desc or feature-desc). Options: from_branch (default: HEAD or main if auto-naming), pull_latest (default: False). Returns: {branch_name, previous_branch, sha, based_on}
| Parameter | Type | Description |
|---|---|---|
branch_name | ||
description | ||
from_branch | ||
issue_number | ||
pull_latest | boolean |
git_commit
Create conventional commit (type: message) with Claude attribution. Types: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert Options: - files: commit specific files only (default: all changes) - skip_hooks: bypass pre-commit hooks via --no-verify Returns: {sha, stats: {files_changed, insertions, deletions}, message}
| Parameter | Type | Description |
|---|---|---|
message * | string | |
type * | string | |
files | ||
skip_hooks | boolean |
git_push
Push commits to remote. Uses GITHUB_TOKEN from env if available. Options: - branch: specific branch (default: current) - set_upstream: track new branches (default: True) - force: force push (use with caution!) Returns: {branch, remote, sha, commits_pushed, is_new_branch, force}
| Parameter | Type | Description |
|---|---|---|
branch | ||
force | boolean | |
remote | string | |
set_upstream | boolean |
git_pull
Pull commits from remote. Uses GITHUB_TOKEN from env if available. Fails if there are uncommitted changes (commit or stash first). Returns: {branch, remote, sha_before, sha_after, commits_pulled, files_changed, up_to_date}
| Parameter | Type | Description |
|---|---|---|
branch | ||
remote | string |
git_status
Get repository status: branch, tracking info, and file changes. Returns: {branch, tracking, ahead, behind, staged, modified, untracked, clean} clean=True means no staged, modified, or untracked files.
git_sync_with_main
Sync current branch with main. Fetches latest and merges/rebases. Options: - main_branch: branch to sync from (default: "main") - strategy: "merge" (default) or "rebase" Fails if on main branch or has uncommitted changes. Returns: {branch, main_branch, strategy, sha_before, sha_after, commits_added, up_to_date, files_changed}
| Parameter | Type | Description |
|---|---|---|
main_branch | string | |
strategy | string |