GitEasy MCP

v1.6.2
io.github.greenmtnsun/giteasy Checked 1 day ago Published 1 month ago

Plain-English git for agents: 22 tools to branch, commit, push and tag.

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

push

Send already-committed work to the remote without making a new commit. Pushes the current branch; on a branch's first push, sets the remote branch as its upstream automatically.

ParameterTypeDescription
remoteNamestringRemote name. Default origin.
workingDirectorystringGit repo path. Default current directory.

show_diagnostic

Show git repository diagnostic info: current branch, upstream, HEAD SHA, remote URLs, and status summary.

ParameterTypeDescription
workingDirectorystringGit repo path. Default current directory.

set_vault

Configure the git credential helper to use a specific vault path. Returns new credential helper value.

ParameterTypeDescription
vaultPathstringPath to the credential helper vault executable.
workingDirectorystringGit repo path. Default current directory.

restore_file

Restore a single file to its HEAD state, discarding uncommitted changes. Returns restored file path.

ParameterTypeDescription
filePathstringRepo-relative path to the file to restore.
workingDirectorystringGit repo path. Default current directory.

reset_login

Clear stored git credentials by unsetting the credential helper in local git config. Returns confirmation.

ParameterTypeDescription
workingDirectorystringGit repo path. Default current directory.

set_ssh

Change a remote URL to its SSH equivalent. Returns old and new remote URLs.

ParameterTypeDescription
remoteNamestringRemote name to update. Default origin.
sshUrlstringNew SSH remote URL, e.g. git@github.com:owner/repo.git.
workingDirectorystringGit repo path. Default current directory.

save_work

Stage changes, commit with a message, and optionally push to remote. Returns commit SHA and push result.

ParameterTypeDescription
filesarray | nullFiles to commit. Default empty (commits all changes).
messagestringCommit message.
pushToRemotebooleanPush to remote after commit. Default false.
workingDirectorystringGit repo path. Default current directory.

get_vault_status

Report current git credential helper configuration. Returns helper name and scope.

ParameterTypeDescription
workingDirectorystringGit repo path. Default current directory.

test_login

Test whether git credentials are working by attempting ls-remote against the origin. Returns success/failure and remote refs count.

ParameterTypeDescription
remoteNamestringRemote to test. Default origin.
workingDirectorystringGit repo path. Default current directory.

show_releases

List all tags/releases in the repository, newest first. Returns tag names, target SHAs, and annotation messages.

ParameterTypeDescription
workingDirectorystringGit repo path. Default current directory.

show_change

Show the diff for a specific file or all changed files. Returns unified diff text.

ParameterTypeDescription
filePathstringRepo-relative file path. If empty, shows all.
stagedbooleanShow staged diff. Default false.
workingDirectorystringGit repo path. Default current directory.

new_release

Create an annotated git tag and push it to the remote. Returns the tag name and target commit SHA.

ParameterTypeDescription
messagestringAnnotation message for the tag.
remoteNamestringRemote to push to. Default origin.
tagNamestringTag name, e.g. v1.2.0.
workingDirectorystringGit repo path. Default current directory.

find_changes

List changed files: staged, unstaged, and untracked. Returns file counts and paths by status group.

ParameterTypeDescription
workingDirectorystringGit repo path. Default current directory.

show_remote

Show all remote names and their fetch/push URLs. Returns list of remotes with URL and type.

ParameterTypeDescription
workingDirectorystringGit repo path. Default current directory.

get_updates

Fetch from remote and show incoming commits not yet in local branch. Returns count and commit summaries.

ParameterTypeDescription
remoteNamestringRemote name. Default origin.
workingDirectorystringGit repo path. Default current directory.

undo_changes

Discard uncommitted changes. If filePath given, restores that file; otherwise restores all tracked files. Returns list of restored paths.

ParameterTypeDescription
filePathstringRepo-relative file path to undo. If empty, undoes all tracked changes.
workingDirectorystringGit repo path. Default current directory.

switch_work

Switch to an existing branch. Returns the branch switched to and current HEAD SHA.

ParameterTypeDescription
branchNamestringName of the branch to switch to.
workingDirectorystringGit repo path. Default current directory.

search_history

Search commit history for commits whose message matches a search term. Returns matching commits with SHA, author, date, and message.

ParameterTypeDescription
limitintegerMax commits to return. Default 20.
searchTermstringText to search for in commit messages.
workingDirectorystringGit repo path. Default current directory.

show_history

Show recent commit history. Returns commits with SHA, author, date, and message.

ParameterTypeDescription
branchNamestringBranch name. Default current branch.
limitintegerNumber of commits to return. Default 20.
workingDirectorystringGit repo path. Default current directory.

new_work_branch

Create a new branch from current HEAD and switch to it. Returns branch name and base commit SHA.

ParameterTypeDescription
branchNamestringName of the new branch.
workingDirectorystringGit repo path. Default current directory.

set_token

Store a personal access token for HTTP git authentication. Returns confirmation (token value is never echoed).

ParameterTypeDescription
tokenstringPersonal access token to store.
workingDirectorystringGit repo path. Default current directory.

clear_junk

Remove untracked files and directories from the working tree (git clean -fd). Returns list of removed paths.

ParameterTypeDescription
workingDirectorystringGit repo path. Default current directory.