
GitWhy — The Context Layer for Git
io.github.gitwhy-cliPublished by GitHub account gitwhy-cliv0.7.9Updated Oct 24, 2026
The shared AI context engine for git — save, search, and share the reasoning behind code changes.
Overview
GitWhy MCP server that lets an AI coding agent save, search and share the reasoning behind git commits as structured context.
- What you can do
- Save the reasoning, decisions and trade-offs behind a coding session, linked to git commits
- Retrieve and search saved context, for example what context exists on a topic such as authentication
- Show the context tree of stored context
- Publish context to a pull request as a comment
- Works through MCP tools or the GitWhy CLI commands
- When to use it
- Useful when you want AI-generated code changes to carry their rationale, so later sessions or teammates can look up why a change was made. Suited to teams that review pull requests and want context attached to commits.
- Requirements
- Runs as a local stdio process on the desktop, installed from the npm package gitwhy-mcp. The GitWhy CLI must be installed first and set up with git why setup. Cloud sync, publish and PR comment features need a GitWhy API key in GITWHY_API_KEY; local-only context saving does not.
Installation
In SourceWeft
- Open GitWhy — The Context Layer for Git in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
GitWhy Agent Skills
Agent skills for GitWhy — save the reasoning, decisions, and trade-offs behind AI-generated code.
Install
Or install for a specific agent:
What's Included
gitwhy skill
Teaches your AI coding agent to save, retrieve, and search structured context linked to git commits. Works via MCP tools or CLI commands.
Trigger phrases:
- "Save this session with GitWhy"
- "What context do we have on authentication?"
- "Show me the context tree"
- "Post the context to the PR"
Prerequisites
Install the GitWhy CLI first:
Or via Homebrew:
Then run setup:
Links
Source: README.md at commit df07cae
Tools
0Version history
1- v0.7.9LatestSep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.