mcp-win-stdio-git
v0.5.6Unified 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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
alias | ||
initial_branch | string | |
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.
| Parameter | Type | Description |
|---|---|---|
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…
| Parameter | Type | Description |
|---|---|---|
title * | string | |
body | ||
branch | ||
draft | boolean | |
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.
| Parameter | Type | Description |
|---|---|---|
issue_number * | integer | |
branch_prefix | string | |
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.
| Parameter | Type | Description |
|---|---|---|
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…
| Parameter | Type | Description |
|---|---|---|
files | ||
max_lines | integer | |
offset_lines | integer | |
path | ||
repo_path | ||
staged | boolean | |
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.
| Parameter | Type | Description |
|---|---|---|
branch | ||
max_count | integer | |
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.
| Parameter | Type | Description |
|---|---|---|
message * | string | |
all_modified | boolean | |
files | ||
include_untracked | boolean | |
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.
| Parameter | Type | Description |
|---|---|---|
action | string | |
branch_name | ||
delete | boolean | |
force | boolean | |
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.
| Parameter | Type | Description |
|---|---|---|
action | string | |
index | integer | |
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.
| Parameter | Type | Description |
|---|---|---|
action | string | |
branch | ||
remote | string | |
repo_path | ||
set_upstream | boolean |
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
files * | array | |
repo_path | ||
source | ||
staged | boolean |
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.…
| Parameter | Type | Description |
|---|---|---|
confirm_destructive | boolean | |
files | ||
mode | string | |
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.
| Parameter | Type | Description |
|---|---|---|
action | string | |
delete | boolean | |
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.
| Parameter | Type | Description |
|---|---|---|
action | string | |
name | string | |
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.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | |
ignore_case | boolean | |
max_results | integer | |
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.
| Parameter | Type | Description |
|---|---|---|
action | string | |
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.
| Parameter | Type | Description |
|---|---|---|
action | string | |
key | ||
repo_path | ||
scope | string | |
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.
| Parameter | Type | Description |
|---|---|---|
action | string | |
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.
| Parameter | Type | Description |
|---|---|---|
commit_hash * | string | |
no_commit | boolean | |
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.
| Parameter | Type | Description |
|---|---|---|
dry_run | boolean | |
remove_directories | boolean | |
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
repo_path | ||
state | string |
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
pr_number * | integer | |
max_lines | integer | |
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
pr_number * | integer | |
repo_path | ||
watch | boolean |
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.
| Parameter | Type | Description |
|---|---|---|
assignee | ||
labels | ||
limit | integer | |
repo_path | ||
state | string |
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
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).
| Parameter | Type | Description |
|---|---|---|
description * | string | |
files * | object | |
public | boolean |
gh_search
Search GitHub globally or within the current repository (kind: 'issues', 'prs', 'code', 'repos'). Args: kind: Search entity ('issues', 'prs', 'code', 'repos'). query: Search keywords or query string. limit: Maximum results to return (default 15, max 30). repo_path: Optional repository workspace path or bookmark alias.
| Parameter | Type | Description |
|---|---|---|
kind | string | |
limit | integer | |
query | string | |
repo_path |
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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
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…
| Parameter | Type | Description |
|---|---|---|
tag_name * | string | |
assets | ||
draft | boolean | |
generate_notes | boolean | |
notes | ||
prerelease | boolean | |
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.
| Parameter | Type | Description |
|---|---|---|
pr_number * | integer | |
limit | integer | |
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.
| Parameter | Type | Description |
|---|---|---|
endpoint * | string | |
fields | ||
max_chars | integer | |
method | string | |
repo_path |