Content
1{
2 "mcpServers": {
3 "git": {
4 "command": "npx",
5 "args": ["-y", "@modelcontextprotocol/server-git", "--repository", "."]
6 }
7 }
8}
9
10// ── Setup ────────────────────────────────────────────────────────────────────
11// --repository sets the default repo path. Use "." for the current directory,
12// or provide an absolute path to a specific repo.
13//
14// ── Available tools ──────────────────────────────────────────────────────────
15// git_status show working tree status
16// git_diff show unstaged changes
17// git_diff_staged show staged changes
18// git_commit create a commit
19// git_add stage files
20// git_reset unstage files
21// git_log show commit history
22// git_show show a specific commit
23// git_create_branch create a new branch
24// git_checkout switch branches
25// git_list_branches list all branches
26// git_clone clone a remote repo
27