mcp-win-stdio-git

v0.5.6
mcp-win-stdio-git Checked 21 hours ago Published 3 days ago

Unified Git & GitHub Model Context Protocol (MCP) server for Windows & Claude: 46 tools combining local Git repository management (init, remotes, restore…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

use_repo

Switch or display the active Git repository workspace. Supports directory paths or registered bookmark aliases (e.g. 'backend', 'C:/dev/project'). If repo_path is not specified, auto-detects from the current working directory. Args: repo_path: Path to repository workspace or registered bookmark alias.

ParameterTypeDescription
repo_path

list_repos

List all registered repository bookmarks, the currently active repository, and directory validity.

add_repo

Bookmark a repository path with an optional alias for instant switching across multi-project workspaces. Args: repo_path: Local filesystem path to the Git repository. alias: Optional friendly alias (e.g. 'backend', 'frontend', 'docs'). Defaults to directory name.

ParameterTypeDescription
repo_path *string
alias

remove_repo

Remove or drop a repository bookmark or alias from registered workspaces. Args: alias_or_path: Bookmark alias name (e.g. 'backend') or filesystem path to remove.

ParameterTypeDescription
alias_or_path *string

rename_alias

Rename an existing repository bookmark alias (e.g. rename 'backend' to 'api-service'). Args: old_alias: Current bookmark alias name. new_alias: New alias name to assign.

ParameterTypeDescription
new_alias *string
old_alias *string

git_init

Initialize a new local Git repository, configure default branch, and optionally connect a remote origin. Args: repo_path: Directory path where repository will be created (defaults to current working directory). initial_branch: Initial branch name (default 'main'). remote_url: Optional remote Git URL (e.g. 'https://github.com/owner/repo.git') to add as origin. alias: Optional bookmark alias to register in ~/.mcp-win-stdio/git_repos.json.

ParameterTypeDescription
alias
initial_branchstring
remote_url
repo_path

repo_overview

Unified 360-degree repository status: local branch, dirty status, ahead/behind tracking, open Pull Request for active branch, and latest CI/CD workflow runs. Gracefully degrades if GitHub CLI ('gh') is not installed or not logged in. Args: repo_path: Optional path to repository workspace or bookmark alias.

ParameterTypeDescription
repo_path

pr_quickstart

Seamless Hybrid Workflow: 1. Stages specified files (or all changes if files is omitted) 2. Commits with the specified title/body 3. Pushes branch to origin with upstream tracking 4. Creates a GitHub Pull Request via 'gh pr create' Args: title: Commit message and Pull Request title. body: Optional Pull Request description body. branch: Optional branch name to create/checkout. files: Optional list of specific files (relative or absolute) to stage. draft: Create Pull Request as draft (default False). repo_path: Optional re…

ParameterTypeDescription
title *string
body
branch
draftboolean
files
repo_path

issue_start_work

Issue-Driven Workflow: Fetches GitHub Issue details via 'gh issue view', extracts title, creates a clean local branch name (e.g. 'feature/42-fix-login-error'), and checks it out. Args: issue_number: GitHub issue number (e.g. 42). branch_prefix: Branch category prefix (default 'feature'). repo_path: Optional repository path or bookmark alias.

ParameterTypeDescription
issue_number *integer
branch_prefixstring
repo_path

git_status

Structured git status showing staged, unstaged, untracked files, and in-progress states. Args: repo_path: Optional repository path or bookmark alias.

ParameterTypeDescription
repo_path

git_diff

Token-safe git diff with pagination and line offset chunking. Inspect unstaged working tree diffs, staged index diffs, or diffs across commits/branches. Args: staged: If True, inspect staged changes in the index (--staged). target: Comparison target (e.g. branch name 'main', commit SHA 'HEAD~1', or 'origin/main...HEAD'). path: Single file path filter. files: Optional list of file paths (relative or absolute) to diff. offset_lines: Starting line index for chunked diff inspection of large diffs (default 0). max_lines: Maximum number o…

ParameterTypeDescription
files
max_linesinteger
offset_linesinteger
path
repo_path
stagedboolean
target

git_log

Structured commit history with hash, author, relative date, and subject. Capped to prevent context window blowout. Args: max_count: Maximum number of commits to retrieve (default 20, max 100). branch: Optional branch name or revision range (e.g. 'main', 'feature..main'). path: Optional file path filter to trace history of a specific file. repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
branch
max_countinteger
path
repo_path

git_commit

Stage files and create a Git commit with a clean descriptive message and author verification. Args: message: Descriptive commit message. files: Optional explicit list of file paths (relative to repo root or absolute) to stage and commit. all_modified: If True, stages all modified and deleted tracked files (git add -u). include_untracked: If True, stages all tracked and untracked files in the working tree (git add -A). repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
message *string
all_modifiedboolean
files
include_untrackedboolean
repo_path

git_branch

Branch operations: list branches, create, switch, or safely delete branches. Args: action: Branch action ('list', 'create', 'switch', 'delete'). branch_name: Name of branch to create, switch to, or delete. start_point: Optional commit/branch to branch off from (for 'create'). delete: Deprecated flag. Prefer action='delete'. force: If True with action='delete', force deletes unmerged branch (-D). repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
actionstring
branch_name
deleteboolean
forceboolean
repo_path
start_point

git_stash

Manage the Git stash: 'save', 'pop', 'list', 'drop', 'clear'. Args: action: Stash action ('list', 'save', 'pop', 'drop', 'clear'). message: Optional description message when saving stash. index: Stash index integer for pop/drop (default 0 for stash@{0}). repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
actionstring
indexinteger
message
repo_path

git_sync

Synchronize with remote repository: 'fetch', 'pull', 'push', or 'sync' (pull then push). Args: action: Sync action ('fetch', 'pull', 'push', 'sync'). remote: Remote repository name (default 'origin'). branch: Optional remote branch name to target. set_upstream: If True when pushing, sets upstream tracking (-u). repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
actionstring
branch
remotestring
repo_path
set_upstreamboolean

git_blame

View file blame line-by-line with author, date, and commit hash. Supports line range filtering (start_line, end_line) to conserve context tokens. Args: file_path: Relative or absolute path to the file. start_line: Optional starting line number (1-indexed). end_line: Optional ending line number (1-indexed). repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
file_path *string
end_line
repo_path
start_line

git_restore

Safely restore working tree files or unstage files from the index (git restore). Args: files: List of file paths (relative to repo root or absolute) to restore. staged: If True, unstage files from the index (--staged). If False, discard working tree changes. source: Optional commit hash or branch to restore files from (e.g. 'HEAD~1', 'main'). repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
files *array
repo_path
source
stagedboolean

git_reset

Safe file restore or commit history reset: - mode='restore': Safely discards unstaged changes in specific files (git restore <files>). - mode='soft': Reset commit history while keeping working tree and index changes intact. - mode='mixed': Reset commit history and unstages index while keeping working tree files. - mode='hard': Destructive reset. Requires confirm_destructive=True. Args: mode: Reset mode ('restore', 'soft', 'mixed', 'hard'). target: Target commit (e.g. 'HEAD~1', 'origin/main'). Defaults to 'HEAD~1' for soft/mixed, 'HEAD' for hard.…

ParameterTypeDescription
confirm_destructiveboolean
files
modestring
repo_path
target

git_tag

List, create, or delete Git tags. Args: action: Tag action ('list', 'create', 'delete'). tag_name: Name of the tag to create or delete (e.g. 'v1.0.0'). message: Optional annotation message when creating tag. delete: Deprecated flag. Prefer action='delete'. repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
actionstring
deleteboolean
message
repo_path
tag_name

git_remote

Inspect and configure Git remotes (origin, upstream) without raw git config manipulation. Args: action: Remote action ('list', 'add', 'set-url', 'remove', 'get-url'). name: Remote name (default 'origin'). url: Remote repository URL (required for 'add' and 'set-url'). repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
actionstring
namestring
repo_path
url

git_grep

Fast regex pattern search across tracked repository files at commit/branch level. Args: pattern: Regex or literal string pattern to search for. path_spec: Optional glob path filter (e.g. '*.py', 'src/'). ignore_case: Case-insensitive search (default True). max_results: Maximum matching lines to return (default 50). repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
pattern *string
ignore_caseboolean
max_resultsinteger
path_spec
repo_path

git_worktree

Manage Git worktrees: 'list', 'add', 'remove', 'prune'. Allows AI agents to work in isolated branch directories without disturbing the user's active editor. Args: action: Worktree action ('list', 'add', 'remove', 'prune'). path: Worktree directory path (required for 'add' and 'remove'). branch: Branch to checkout in the new worktree (for 'add'). repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
actionstring
branch
path
repo_path

git_config

Inspect or configure Git identity and settings (e.g. user.name, user.email, core.autocrlf). Args: action: Config action ('get', 'set', 'unset', 'list'). key: Git configuration key (e.g. 'user.name', 'core.autocrlf'). value: Value to set (required for 'set'). scope: Configuration scope ('global', 'local', 'system'). repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
actionstring
key
repo_path
scopestring
value

git_conflict_resolve

Detect and manage in-progress merge, rebase, or cherry-pick conflicts. Args: action: Conflict action ('status', 'abort', 'continue'). mode: Optional operation override ('merge', 'rebase', 'cherry-pick'). repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
actionstring
mode
repo_path

git_cherry_pick

Apply the changes introduced by an existing commit to the current branch. Detects cherry-pick conflicts and provides clean resolution guidance. Args: commit_hash: The SHA-1 hash or reference of the commit to cherry-pick. no_commit: Apply changes to working tree and index without creating a commit (default False). repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
commit_hash *string
no_commitboolean
repo_path

git_clean_untracked

Clean untracked files and build artifacts safely. Defaults to dry_run=True to prevent accidental loss of uncommitted work. Args: dry_run: If True (default), only lists files that WOULD be removed without deleting anything. remove_directories: Also remove untracked directories (-d flag). repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
dry_runboolean
remove_directoriesboolean
repo_path

gh_auth_status

Check GitHub CLI authentication status, active account, and protocol scopes.

gh_switch_account

Switch active GitHub CLI account if multiple accounts are configured. Args: username: GitHub account username to switch to.

ParameterTypeDescription
username *string

gh_pr_list

List pull requests for the repository with status, branch names, and authors. Args: state: Pull request state ('open', 'closed', 'merged', 'all'). limit: Maximum number of PRs to return (default 20, max 50). repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
limitinteger
repo_path
statestring

gh_pr_view

View complete details of a pull request (title, body, author, reviews, checks, mergeable status). Args: pr_number: Pull request number. repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
pr_number *integer
repo_path

gh_pr_diff

View token-capped diff of a remote GitHub Pull Request. Args: pr_number: Pull request number. max_lines: Maximum diff lines to return (default 250). repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
pr_number *integer
max_linesinteger
repo_path

gh_pr_checkout

Check out a GitHub Pull Request branch locally in the Git repository. Args: pr_number: Pull request number to checkout locally. repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
pr_number *integer
repo_path

gh_pr_action

Perform Pull Request lifecycle actions: 'approve', 'merge', 'close', 'reopen'. Args: pr_number: Pull request number. action: Lifecycle action ('approve', 'merge', 'close', 'reopen'). comment: Optional review or closure comment. repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
action *string
pr_number *integer
comment
repo_path

gh_pr_checks

Inspect individual GitHub Actions CI/CD step statuses, check runs, and failure logs for a Pull Request. Args: pr_number: Pull request number. watch: If True, waits for checks to finish before returning (timeout 30s). repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
pr_number *integer
repo_path
watchboolean

gh_issue_list

Search and list GitHub issues with filters (assignee, label, state). Args: state: Issue state ('open', 'closed', 'all'). limit: Maximum number of issues to return (default 20, max 50). assignee: Optional GitHub username filter. labels: Optional list of label names to filter by. repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
assignee
labels
limitinteger
repo_path
statestring

gh_issue_view

View complete GitHub issue details including body, labels, comments, and assignees. Args: issue_number: GitHub issue number. repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
issue_number *integer
repo_path

gh_issue_create

Create a new GitHub issue with title, description, labels, and assignees. Args: title: Issue title. body: Issue description body. labels: Optional list of label strings to attach. assignees: Optional list of GitHub usernames to assign. repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
body *string
title *string
assignees
labels
repo_path

gh_issue_comment

Post a comment on a GitHub issue or pull request. Args: issue_number: GitHub issue or PR number. comment: Markdown comment content. repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
comment *string
issue_number *integer
repo_path

gh_run_status

Inspect GitHub Actions CI/CD workflows and recent run outcomes. Args: limit: Maximum number of workflow runs to retrieve (default 10, max 20). repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
limitinteger
repo_path

gh_gist_create

Create a GitHub Gist with multiple files to share snippets, patches, or logs. Args: description: Gist description. files: Dictionary mapping filename to string content. public: If True, creates public gist (default False / secret).

ParameterTypeDescription
description *string
files *object
publicboolean

gh_release_list

List GitHub releases, tags, published dates, and release notes for the repository. Args: limit: Maximum number of releases to return (default 10, max 30). repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
limitinteger
repo_path

gh_release_create

Create a new GitHub Release for a tag and optionally upload release binary/wheel assets. Args: tag_name: Git tag for the release (e.g. 'v1.0.0'). title: Release title (defaults to tag_name if omitted). notes: Custom markdown release notes or changelog. generate_notes: If True, automatically generate release notes from commits and PRs. draft: If True, creates the release as a draft. prerelease: If True, marks the release as a pre-release. assets: Optional list of local file paths (binaries, wheels, tarballs) to upload to the rele…

ParameterTypeDescription
tag_name *string
assets
draftboolean
generate_notesboolean
notes
prereleaseboolean
repo_path
title

gh_pr_review_comments

Retrieve inline code review comments and discussion threads on a Pull Request. Args: pr_number: Pull request number. limit: Maximum number of review comments to return (default 30, max 60). repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
pr_number *integer
limitinteger
repo_path

gh_api

Direct GitHub REST/GraphQL API caller via 'gh api' with automatic context window protection. Args: endpoint: GitHub API path (e.g. 'user', 'repos/:owner/:repo/commits'). method: HTTP method (default 'GET'). fields: Optional dictionary of query/body parameters. max_chars: Maximum character limit on response payload to preserve context (default 15000). repo_path: Optional repository workspace path or bookmark alias.

ParameterTypeDescription
endpoint *string
fields
max_charsinteger
methodstring
repo_path