mcpField
G
GitWhy — The Context Layer for Git

GitWhy — The Context Layer for Git

Local
github.com/gitwhy-cliVersion Control0Updated 31w ago

About GitWhy — The Context Layer for Git

GitWhy Agent Skills teaches coding agents to save, retrieve, and search reasoning linked to Git commits. It uses GitWhy through MCP tools or CLI commands.

Key features

  1. 01Save context linked to commits
  2. 02Retrieve and search structured context
  3. 03Install for Claude, Cursor, or Codex

Use cases

  1. 01Record decisions and trade-offs behind generated code
  2. 02Find prior context on a topic
  3. 03Review a context tree or post context to a PR

MCP support

The skill works with GitWhy through MCP tools or CLI commands.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"gitwhy-cli-gitwhy": {
"command": "npx",
"args": [
"-y",
"gitwhy-mcp"
],
"env": {
"GITWHY_API_KEY": "<GITWHY_API_KEY>"
}
}
}
}
Run commandnpx -y gitwhy-mcp
Environment variables to set
GITWHY_API_KEYSecretGitWhy API key for cloud sync, publish, and PR comment features. Not required for local-only context saving.

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmgitwhy-mcp0.7.9

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

GitWhy Agent Skills

Agent skills for GitWhy — save the reasoning, decisions, and trade-offs behind AI-generated code.

Install

npx skills add gitwhy-cli/gitwhy

Or install for a specific agent:

npx skills add gitwhy-cli/gitwhy --agent claude
npx skills add gitwhy-cli/gitwhy --agent cursor
npx skills add gitwhy-cli/gitwhy --agent codex

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:

curl -fsSL https://gitwhy.dev/install.sh | sh

Or via Homebrew:

brew install gitwhy-cli/tap/git-why

Then run setup:

git why setup

Links

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.