Third-party toolUpdated 2026.11.15

Git MCP: Verify Status, History and Diff in a Disposable Repo

The Git MCP reference server exposes Git operations to clients.

Aaron recommends Open official GitHub

The Git MCP reference server exposes Git operations to clients. This example tests read operations only: it creates a commit in a disposable repository, changes a dispatch time, and checks status, history and the unstaged diff.

What the isolated test checked

Status should identify the changed note.txt, history should contain the synthetic commit, and the diff should show both 08:30 and 16:45. Reading only the updated file would lose the before/after evidence.

The following is the recorded synthetic output, not a model benchmark.

{
  "status": "On branch master\nChanges not staged for commit:\n  (use \"git add <file>...\" to update what will be committed)\n  (use \"git restore <file>...\" to discard changes in working directory)\n\tmodified:   note.txt\n\nno changes added to commit (use \"git add\" and/or \"git commit -a\")",
  "log": [
    "Commit: 8e8ea445f7b1ff941d59e3830cae203ba060cd58\nAuthor: Fixture\nDate: 2026-11-15 23:19:13+00:00\nMessage: synthetic fixture\n"
  ],
  "diff": "diff --git a/note.txt b/note.txt\nindex 4ed69a1..120f624 100644\n--- a/note.txt\n+++ b/note.txt\n@@ -1 +1 @@\n-NOTE-31 08:30\n+NOTE-31 16:45"
}

Reproduce the small task

The recorded runtime was Linux with Python 3.12. Installation requires public package downloads; execution was offline. Windows shell behavior was not tested. Use a disposable environment for the example.

python -m pip install mcp-server-git==2026.11.11

Install the Git executable as well as the Python package; the recorded image includes Git. The example creates only a disposable repository under /tmp.

import sys,json,traceback,importlib.metadata as meta,pathlib,asyncio,subprocess,os
SLUG='mcp-git'
def emit(package,checks,observations,**kw):
    print(json.dumps({'checks':checks,'observations':observations},ensure_ascii=False,default=str,indent=2))
def mcp_git():
    from git import Repo
    from mcp_server_git.server import git_status,git_log,git_diff_unstaged
    p=pathlib.Path('/tmp/repo');p.mkdir();r=Repo.init(p);r.config_writer().set_value('user','name','Fixture').set_value('user','email','fixture@example.test').release();f=p/'note.txt';f.write_text('NOTE-31 08:30\n');r.index.add(['note.txt']);r.index.commit('synthetic fixture');f.write_text('NOTE-31 16:45\n');a=git_status(r);b=git_log(r,max_count=1);d=git_diff_unstaged(r)
    emit('mcp-server-git',dict(modified='note.txt' in str(a),history='synthetic fixture' in str(b),diff='16:45' in str(d) and '08:30' in str(d)),dict(status=a,log=b,diff=d),scope='Reference server read-only Git functions on disposable local repository. No remote push, credentials or AI host.')
mcp_git()

Limits and untested behavior

Remote access, push, branch changes, host permissions and MCP stdio were not tested. The fixture uses a synthetic Git identity without an account or private repository.

Other capabilities described in the pinned official documentation below were not locally tested. Source availability alone does not establish free hosted execution or free model calls.

Sources and test record

Codex ran the synthetic task in a non-root, network-disabled container without publishing credentials or private inputs. This is not a claim that the site owner personally tested the tool.

Tested package: 2026.11.11. Documentation commit: e1dc4b18dbb9. The registry package and README snapshot are separately pinned, not assumed identical. Test date: 2026-11-15.

Related reading

Subscribe to AI tool picks and practical advice

Get worthwhile tool picks, test findings and important updates in your inbox.

Get a monthly-updated list of AI tools and Skills right away. We email when there are worthwhile tool picks, test findings or important updates. Unsubscribe anytime. Privacy

Almost done: check your inboxClick the button in the confirmation email and you will get the download link for the tool list. If you do not see it, check your spam or Promotions folder.

Or follow us on: