Extracts decision intent from git history and protects intentional code from AI modification.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Wisegit.
get_file_decisionsDecision manifest for a file β freeze scores, intent history, recovery levels, override status
get_freeze_scoreScore + signal breakdown for a specific function
get_function_historyFull chronological decision timeline for a function
get_theory_gapsFunctions with unrecoverable rationale (inactive authors, timeline gaps)
get_branch_contextBranch merge history β what was migrated and why
search_decisionsSearch past decisions by keyword across the entire repo
"Don't take a fence down until you know the reason it was put up." β G.K. Chesterton
wisegit is a local MCP server that extracts decision intent from git history and protects intentional code from AI modification.
When Claude Code (or any MCP-compatible agent) is about to edit a file, wisegit injects a decision manifest showing which functions are frozen, stable, or open β so the AI respects what was intentional, not just what compiles.
Zero config. Zero external services. Everything local.
LLMs have no concept of intentional code. A manually-tested fix and a broken stub look identical β both are just text. Real scenario:
sleep(350) β manually tested, committed.sleep(350) β looks like dead code.Root cause: git history contains proof of intention. Nobody extracts it.
fix:, feat:), DESCRIPTIVE (plain sentences), or NOISE (wip, x)get_file_decisions before editing any fileThat's it. No Docker, no PostgreSQL, no external services.
This single command:
~/.wisegit/wisegit.db.mcp.json for Claude Code auto-discoveryCLAUDE.md rules that instruct AI to check before editing.mcp.json to .gitignoreThis fetches referenced issues (e.g., #134 in commit messages), detects Won't Fix / By Design decisions, and boosts freeze scores for functions linked to those issues.
Open the repo in Claude Code. It will automatically:
.mcp.json)CLAUDE.md)get_file_decisions before editing any file| Tool | Description |
|---|---|
get_file_decisions | Decision manifest for a file β freeze scores, intent history, recovery levels, override status |
get_freeze_score | Score + signal breakdown for a specific function |
get_function_history | Full chronological decision timeline for a function |
get_theory_gaps | Functions with unrecoverable rationale (inactive authors, timeline gaps) |
get_branch_context | Branch merge history β what was migrated and why |
search_decisions | Search past decisions by keyword across the entire repo |
create_override | Override a frozen function (user approves in Claude Code UI) |
extract_intent | Extract intent for NOISE commits using the host LLM β no Ollama needed |
find_similar_functions | Search for existing functions that solve a similar problem before writing new code |
predict_impact | Predict what functions will break if a given function is modified |
get_codebase_conventions | Extract coding conventions for a file's neighborhood |
MCP Resource: wisegit://manifest/{filePath} β decision manifest as auto-discoverable resource
MCP Prompt: check_before_edit β mandatory workflow prompt that returns the decision manifest before editing any file
wisegit uses a smart fallback chain for extracting intent from NOISE commits:
| Context | LLM Used | How |
|---|---|---|
| Inside Claude Code | Host LLM (Claude) | MCP sampling β asks Claude to analyze the diff. Zero setup. |
| CLI with Ollama | Ollama (llama3) | wisegit init --ollama β uses local Ollama instance |
| CLI without Ollama | None | Rule-based extraction only, NOISE commits get no intent |
Inside Claude Code, call extract_intent to retroactively recover intent for NOISE commits β uses Claude itself, no Ollama installation needed.
Run npx @sandip124/wisegit setup in any repo. It creates .mcp.json automatically.
.mcp.jsonCreate .mcp.json in your repo root:
| Language | Extensions |
|---|---|
| C# | .cs |
| TypeScript | .ts, .tsx |
| JavaScript | .js, .jsx, .mjs, .cjs |
| Python | .py |
| Go | .go |
| Rust | .rs |
More languages can be added via Tree-sitter grammar configs in src/ast/languages/.
A commit saying fix: handle null token #134 points to an issue containing reproduction steps, root cause, and explicit decision rationale β everything the commit message never says.
Supported platforms: GitHub, GitLab (Azure DevOps, Jira, Bitbucket planned)
Auth tokens: GITHUB_TOKEN / GH_TOKEN for GitHub, GITLAB_TOKEN for GitLab. Never stored by wisegit.
| Signal | Freeze Boost | When |
|---|---|---|
| Won't Fix / By Design | +0.35 | Issue closed as not_planned, or has wontfix/by-design label, or comment says "intentional" |
| Reproduction steps | +0.15 | Issue body contains "steps to reproduce" |
| Platform-specific label | +0.10 | Issue labeled ios, safari, windows, etc. |
| Issue unreachable | +0.10 | Issue ref exists but API returned 404 β absent context = protect more |
| PR review comments | +0.15 | Linked PR had reviewer discussion |
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/wisegit)<a href="https://allmcps.com/mcp/wisegit"><img src="https://allmcps.com/api/badge/wisegit?style=directory" alt="Wisegit on AllMCPs" /></a>