# wisegit [Health: Active]

**Category:** 🔄 Version Control  
**Repository:** https://github.com/Sandip124/wisegit  
**GitHub Stars:** 1  
**npm Downloads (last month):** 164  
**Views:** 12  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/wisegit

## Description
Extracts decision intent from git history and protects intentional code from AI modification.

## Tools
Capabilities this server exposes over MCP:

- **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

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "wisegit": {
    "command": "npx",
    "args": ["-y","@sandip124/wisegit"]
  }
}
```

## Documentation

## What wisegit does

The wisegit MCP server turns repository history into function-level decision context for AI-assisted development. It distinguishes code that is frozen, stable, or open based on a freeze score and the evidence available in Git history, issue context, tests, structure, and related signals. The result helps an agent tell the difference between an accidental-looking workaround and code that was deliberately retained.

A file decision manifest includes function scores, intent history, recovery levels, and active override state. Scores of 0.80 or higher are classified as frozen, scores from 0.50 through 0.79 as stable, and lower scores as open. Frozen functions require an explicit override before modification, while stable functions should be reviewed and open functions are considered freely modifiable.

## How it works

The server walks the repository's commits and parses diffs with Tree-sitter, using function boundaries rather than line counts. Commit messages are classified as structured, descriptive, or noise. Structured and descriptive commits can be handled with rules; noise commits can receive intent through the host LLM when the server is used inside Claude Code. A CLI setup using Ollama can also provide local model assistance, while rule-based extraction remains available without either model path.

Indexed events and derived data are kept in a local SQLite database. MCP tools expose the results, and the `wisegit://manifest/{filePath}` resource provides a file manifest for clients that support MCP resources. The `check_before_edit` prompt supplies a workflow for retrieving decision context before an edit.

The server also supports optional issue and pull-request enrichment from GitHub or GitLab. Referenced issues can add reproduction details, root causes, or Won't Fix and By Design decisions to the evidence used for scoring.

## Setup and configuration

The wisegit MCP server requires Node.js 20 or newer. Run `npx @sandip124/wisegit setup` from a repository to create the local database, index Git history, write a Claude Code `.mcp.json` file, add editing instructions to `CLAUDE.md`, and ignore the MCP configuration file. A global Claude Code registration can instead start `npx @sandip124/wisegit serve`.

Issue enrichment is optional and uses a `GITHUB_TOKEN` when fetching referenced issue or pull-request details. The documented setup does not require Docker, PostgreSQL, or another external service. Repository indexing, score computation, overrides, branch capture, reports, and hook management are also available through the CLI.

Supported source extensions cover C#, TypeScript, JavaScript, Python, Go, and Rust. Additional languages can be added through Tree-sitter grammar configuration.

## Tools and capabilities

The wisegit MCP server provides tools for:

- Reading file manifests, function scores, chronological histories, theory gaps, and branch merge context.
- Searching decision records and finding similar functions before new code is written.
- Predicting affected functions when a target function changes.
- Extracting neighborhood coding conventions.
- Recovering intent from noise commits through host-LLM sampling or configured Ollama use.
- Creating an explicit override for a frozen function.

## Limitations and notes

Decision quality depends on the available Git history and any optional issue or pull-request context. Functions in noise commits may have no recovered intent when neither host-LLM sampling nor Ollama is available. Issue enrichment is specifically described for GitHub and GitLab.

_Full upstream README: https://allmcps.com/mcp/wisegit/readme_

