GitHub
GitHub
Repos, issues, pull requests and Actions from chat.
api.githubcopilot.com/mcpRead, search and work with local git repositories.
mcpServers (merge with any servers you already have).
{ "mcpServers": { "git": { "command": "uvx", "args": [ "mcp-server-git", "--repository", "/path/to/repo" ] } }}
Requires uv (https://docs.astral.sh/uv/). Replace the repository path.
--scope user for every project, or --scope project to share it via .mcp.json.
claude and run /mcp to confirm the server is connected.
claude mcp add --transport stdio git -- uvx mcp-server-git --repository /path/to/repo
{ "mcpServers": { "git": { "command": "uvx", "args": [ "mcp-server-git", "--repository", "/path/to/repo" ] } }}
Requires uv (https://docs.astral.sh/uv/). Replace the repository path.
ChatGPT only connects to remote MCP servers over HTTPS, and Git runs locally. Use a client that can launch local servers, such as Claude Desktop, Claude Code, Cursor or VS Code.
~/.codex/config.toml.
codex and type /mcp to see the server's tools.
codex mcp add git -- uvx mcp-server-git --repository /path/to/repo
[mcp_servers.git]command = "uvx"args = ["mcp-server-git", "--repository", "/path/to/repo"]
Requires uv (https://docs.astral.sh/uv/). Replace the repository path.
-s user makes it global), or edit ~/.gemini/settings.json.
/mcp inside Gemini CLI to confirm it's connected.
gemini mcp add -s user git uvx mcp-server-git --repository /path/to/repo
{ "mcpServers": { "git": { "command": "uvx", "args": [ "mcp-server-git", "--repository", "/path/to/repo" ] } }}
Requires uv (https://docs.astral.sh/uv/). Replace the repository path.
~/.cursor/mcp.json (global) or .cursor/mcp.json (this project).
{ "mcpServers": { "git": { "type": "stdio", "command": "uvx", "args": [ "mcp-server-git", "--repository", "/path/to/repo" ] } }}
Requires uv (https://docs.astral.sh/uv/). Replace the repository path.
.vscode/mcp.json.
code --add-mcp '{"name":"git","type":"stdio","command":"uvx","args":["mcp-server-git","--repository","/path/to/repo"]}'
{ "servers": { "git": { "type": "stdio", "command": "uvx", "args": [ "mcp-server-git", "--repository", "/path/to/repo" ] } }}
Requires uv (https://docs.astral.sh/uv/). Replace the repository path.
mcp_config.json).
mcpServers and save.
{ "mcpServers": { "git": { "command": "uvx", "args": [ "mcp-server-git", "--repository", "/path/to/repo" ] } }}
Requires uv (https://docs.astral.sh/uv/). Replace the repository path.
context_servers.
{ "context_servers": { "git": { "command": "uvx", "args": [ "mcp-server-git", "--repository", "/path/to/repo" ] } }}
Requires uv (https://docs.astral.sh/uv/). Replace the repository path.