Skip to main content
Glama
mrfentmen

git-reflog-archaeologist-mcp

by mrfentmen
README.md
# git-reflog-archaeologist-mcp

Git Reflog Archaeologist is a local MCP for the moment after an accidental reset, deleted branch, or abandoned experiment. It looks at Git metadata that can help answer whether recovery may still be possible.

## Tools

- `reflog_signals`: aggregate reflog count, age buckets, and loose or packed object counts
- `recovery_signals`: aggregate unreachable object counts by type
- `stash_signals`: aggregate stash count and age buckets

The outputs include coarse recovery hints such as `recent-history-may-be-recoverable` or `unreachable-commits-found`. They do not return commit hashes, subjects, ref names, file paths, remote names, author data, or file contents.

## Safety

- Local Git commands only. No network access is used.
- The selected repository must stay inside `GIT_ARCHAEOLOGY_ROOT`.
- Git output is line and count bounded.
- The server never runs mutating commands such as reset, reflog expire, prune, or garbage collection.
- This is a recovery signal tool, not a guarantee that an object can be restored.

## Run

```bash
npm install
npm run build
node dist/index.js
```

The server uses stdio and works with Claude Desktop, Cursor, VS Code, MCP Inspector, and compatible CLI harnesses.

TDQS

A4.3/5.0

Scored across 3 tools

Disambiguation5/5

Each tool targets a distinct Git data source: reflog, unreachable objects, and stash. The descriptions clearly separate their inputs and outputs, leaving no ambiguity about which tool to choose for a given task.

Naming Consistency5/5

All tool names follow the exact same pattern of '<domain>_signals', creating a predictable and uniform naming scheme. This consistency makes it easy to infer the purpose of any tool in the set.

Tool Count5/5

With only three tools, the server is tightly scoped to its 'archaeologist' purpose. Each tool covers a different aspect of Git history recovery, and none feel redundant or extraneous.

Completeness4/5

The server covers the main recovery-related signals: reflog activity, unreachable objects, and stash state. While other signals like branch or tag history could be added, the core recovery workflow is well represented and no critical gaps are apparent.

Maintenance

ActivitySlowing
ResponsivenessNo issues