
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
ShadowGitリポジトリへのセキュアな読み取り専用アクセスを提供するモデルコンテキストプロトコル(MCP)サーバー.
概要
セッション API を通じて組織されたコミットを作成する機能を含む、ShadowGit リポジトリにセキュアな git アクセスを AI アシスタントに提供するモデルコンテキストプロトコル (MCP) サーバー。 これにより、プロジェクトの git 履歴に AI 制御されたアクセスを提供することにより、強力なデバッグ、コード解析、およびクリーンなコミット管理が可能になります。 ShadowGit は、AI アシスタントが自動コミットを一時停止し、クリーンで組織されたコミットを作成できるように、セッション API も git commit としてすべての保存を自動的にキャプチャします。 MCP サーバは、開発履歴の読み込みと、AI による変更を適切に管理する機能を提供します。 Claude Desktop MCP の設定に追加します。 ~/.config/Claude/claude desktop config.json%APPDATA%\Claude\claude desktop config.json の一覧 - - 追跡されたリポジトリーでインストールおよび実行 - セッション API は ShadowGit バージョン >= 0.3 が必要です.
概要(AI 翻訳)
Claudeコード、Cursor、ClaudeデスクトップアクセスをShadowGitに与える:自動スナップショット ShadowGit は、あなたのプロジェクトを数分に要します。 あなたのアシスタントは何を見ることができる 部分的なスナップショットではなく、独自の編集を1つの名前付きチェックポイントとして保存できます。
要件
- Node.js 20以降
- ShadowGitアプリ(0.3.4以降、チェックポイント、レンズの0.3.5以降のリリース、リンクの0.3.7以降 レンズの依存症の事実の0.3.10の後の地図のための0.3.9の後の単語、プロジェクトのための0.3.11または後で ルール、0.3.13以降は、セッションの未保存の編集が終了し、チェックポイントのチェックのために 少なくとも1つのプロジェクトを追跡する、何も新しいものを見つける)。 アプリが閉じている間、履歴を読む作業; セッション、チェックポイント、レンズ、マップの実行が必要です。
- あなたのPATHでジット
セットアップ
Claude Code (すべてのプロジェクトのためにインストールします):
カーソル:[~/.cursor/mcp.jsonで:
Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) または
[%APPDATA%\Claude\claude_desktop_config.json (Windows).
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
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"] } } }