
Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
Сервер Model Context Protocol (MCP), который предоставляет помощникам ИИ безопасный доступ к репозиториям ShadowGit.
Обзор
Сервер Model Context Protocol (MCP), который предоставляет AI-помощникам безопасный доступ к репозиториям ShadowGit, включая возможность создавать организованные коммиты через Session API. Это обеспечивает мощную отладку, анализ кода и чистое управление обязательствами, предоставляя контролируемый ИИ доступ к истории проекта. ShadowGit автоматически захватывает каждое сохранение в качестве git-коммит, а также предоставляет API сеанса, который позволяет помощникам ИИ приостанавливать автоматические задания и создавать чистые, организованные обязательства. Сервер MCP обеспечивает как доступ к считыванию вашей подробной истории разработки, так и возможность правильного управления изменениями с помощью ИИ. Добавьте конфигурацию Claude Desktop MCP: ~/.config/Claude/claude desktop config.json %APPDATA%\Claude\claude desktop config.json - установленные и работающие с отслеживаемыми репозиториями - Session API требует версии ShadowGit >= 0.3.
Обзор (машинный перевод)
Предоставляет Claude Code, Cursor и Claude Desktop доступ к ShadowGit: автоматические снимки ShadowGit берет ваши проекты каждые несколько минут, не считая вашей собственной истории. Ваш помощник может видеть, что Изменить и когда, и может сохранить свои собственные правки в качестве одной поименованной контрольной точки вместо многих частичных снимков.
Требования
Node.js 20 или более поздняя версия Приложение ShadowGit (0.3.4 или более поздняя версия для контрольно-пропускных пунктов, выпуск после 0.3.5 для объектива, после 0.3.7 для связанного с ним устройства) слова, после 0.3.9 для карты, после 0.3.10 для фактов зависимости объектива, 0.3.11 или позже для проекта Правила, 0.3.13 или более поздние для несохраненных правок сессии в момент ее окончания и для проверки контрольного пункта Что не находит ничего нового, отслеживая хотя бы один проект. Чтение истории работает, пока приложение закрыто. сеансы, контрольно-пропускные пункты, объектив и карта нуждаются в его запуске.
- Вставай на дорогу.
Настройка
Claude Code (одна установка для каждого проекта):
** Курсор**: в [[Т0]]:
Claude Desktop: та же самая запись в ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) или
[[Т2]] (Окна).
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
ShadowGit MCP server
Gives Claude Code, Cursor and Claude Desktop access to ShadowGit: the automatic snapshots ShadowGit takes of your projects every few minutes, kept apart from your own git history. Your assistant can see what changed and when, and can save its own edits as one named checkpoint instead of many partial snapshots.
Requirements
- Node.js 20 or later
- The ShadowGit app (0.3.4 or later for checkpoints, a release after 0.3.5 for the Lens, after 0.3.7 for its linked words, after 0.3.9 for the map, after 0.3.10 for the Lens’s dependency facts, 0.3.11 or later for the project’s rules, 0.3.13 or later for a session’s unsaved edits in a snapshot as it ends and for the check of a checkpoint that finds nothing new), tracking at least one project. Reading history works while the app is closed; sessions, checkpoints, the Lens and the map need it running.
- Git on your PATH
Setup
Claude Code (one install for every project):
claude mcp add --scope user shadowgit -- npx -y shadowgit-mcp-server
Cursor: in ~/.cursor/mcp.json:
{ "mcpServers": { "shadowgit": { "command": "npx", "args": ["-y", "shadowgit-mcp-server"] } } }
Claude Desktop: the same entry in ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or
%APPDATA%\Claude\claude_desktop_config.json (Windows).
In Claude Code the server knows which project you are in. In Cursor and Claude Desktop, name the project (“in webshop”) when ShadowGit tracks more than one.
What to ask
- “What changed in the last hour?”
- “When did the login page break?”
- “Show me the history of Header.tsx”
- “How is this project organised?”
- “What depends on chargeCard?”
- “Start a ShadowGit session for this refactor”, then “Create a checkpoint: Fixed login redirect”, then “End the ShadowGit session”
- “Write the Lens words for this session”
- “What does the billing area do?”
- “Document this project in ShadowGit”
Tools
| Tool | Does |
|---|---|
list_repos |
Lists tracked projects, the current one, their last snapshot and any active session |
git_command |
Runs a read-only git command (log, diff, show, blame, …) on the snapshot history |
get_map |
Gives how the project is organised: its areas, layers and the links between them, or one area, the project’s rules and its docs pages’ summaries |
get_code_context |
Gives where files and symbols sit, what depends on them, where a change to them lands, the project’s rules for them and their areas’ docs pages’ summaries |
start_session |
Pauses automatic snapshots while the assistant edits |
checkpoint |
Saves the current changes as one named checkpoint, following .shadowgit-ignore, then checks it against the project’s .shadowgit-rules |
end_session |
Resumes automatic snapshots |
Установка
npx -y shadowgit-mcp-serverКонфигурация
{ "mcpServers": { "shadowgit": { "command": "npx", "args": ["-y", "shadowgit-mcp-server"] } } }