GitWhy — The Context Layer for Git
The shared AI context engine for git — save, search, and share the reasoning behind code changes.
التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
gitwhy-mcpclaude mcp add gitwhy-the-context-layer-for-git -e 'GITWHY_API_KEY=<your gitwhy_api_key>' -- npx -y gitwhy-mcp@0.7.9
{
"mcpServers": {
"gitwhy-the-context-layer-for-git": {
"command": "npx",
"args": [
"-y",
"gitwhy-mcp@0.7.9"
],
"env": {
"GITWHY_API_KEY": "<your gitwhy_api_key>"
}
}
}
}
متغيرات البيئة
GITWHY_API_KEYسري GitWhy API key for cloud sync, publish, and PR comment features. Not required for local-only context saving.
التوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.
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
الأسئلة الشائعة
ما هو GitWhy — The Context Layer for Git؟
The shared AI context engine for git — save, search, and share the reasoning behind code changes.
كيف أثبّت GitWhy — The Context Layer for Git؟
يعمل على جهازك. في Claude Code: claude mcp add gitwhy-the-context-layer-for-git -e 'GITWHY_API_KEY=<your gitwhy_api_key>' -- npx -y gitwhy-mcp@0.7.9. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.
هل يحتاج GitWhy — The Context Layer for Git إلى مفتاح API؟
نعم. يتطلب GITWHY_API_KEY، وتضبطها في إعداداته.
هل GitWhy — The Context Layer for Git مفتوح المصدر؟
شيفرته علنية على GitHub، لكن المستودع لا يعلن ترخيصًا قياسيًا.
من يصون GitWhy — The Context Layer for Git؟
ينشره gitwhy-cli. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.