PurePromptOpen workspace

Git (local repository)

Copied 0

Give an AI assistant the ability to inspect and operate on a local git repository's history.

Shared by Parshu · Published Aug 1, 2026

mcp-config

Lets an AI assistant inspect a local git repository — log, diff, blame, branches — useful for having an assistant answer questions about how code evolved or help draft a commit message from an actual diff, without you pasting git output manually. ```json { "mcpServers": { "git": { "command": "uvx", "args": ["mcp-server-git", "--repository", "/absolute/path/to/repo"] } } } ``` This one commonly ships as a Python package run via uvx rather than npx — install uv first if you don't already have it. Some configurations expose write operations (commit, branch) in addition to read-only inspection — check the server's current docs for which operations are enabled by default and whether you want to restrict it to read-only use. As with any MCP server, confirm the exact package name and invocation against current documentation before adding it — this shows the general shape of a git-focused server's config, not a guaranteed-current copy-paste.

Discussion

Sign in to leave feedback.

No comments yet — be the first to weigh in.