Wisegit logo

Wisegit

Analyzes Git history to identify intentional code, explain decisions, and warn agents before modifying sensitive functions.

Install Wisegit

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "wisegit": {
      "command": "npx",
      "args": [
        "-y",
        "@sandip124/wisegit"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y @sandip124/wisegit

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The wisegit MCP server reads Git history, parses changes at function boundaries, and exposes decision context to coding agents. It stores indexed history and computed scores in a local SQLite database, then serves manifests and analysis through MCP over stdio. Use it when AI-assisted edits need to account for prior fixes, branch context, coding conventions, or functions that may be affected by a change. Claude Code can discover the server automatically after repository setup.

Use cases

  • Review intentional fixes before asking an agent to edit a file
  • Search Git history for the rationale behind a function
  • Find similar existing functions before writing new code
  • Assess likely downstream impact of changing a function
  • Recover context from merged branches and old decisions

Key features

  • Function-level freeze scores with signal breakdowns
  • Decision manifests for files and MCP resource access
  • Git history and intent extraction using Tree-sitter
  • Impact prediction and similar-function search
  • Optional GitHub and GitLab issue enrichment
  • Explicit overrides for frozen functions

Tools11

What Wisegit lets your agent do. Expand a tool for its parameters.

Self-reported~222 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/19 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · @sandip124/wisegit (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads164Package downloads in the last 30 days.
Last commit7mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed11Callable tools this server registers over MCP.
Directory activity9 viewsConfig copies, upvotes, and views on AllMCPs.

How Wisegit works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Wisegit

wisegit is an MCP server that connects AI coding agents to a repository's Git history and local decision database. Its main tools expose file manifests, function freeze scores, decision timelines, impact predictions, similar-function searches, intent extraction, branch context, and explicit overrides for frozen code.

Run `npx @sandip124/wisegit setup` from the repository you want to analyze. It creates the local SQLite database, indexes Git history, and configures Claude Code discovery through `.mcp.json` and `CLAUDE.md`. Node.js 20 or newer is required.

Yes, wisegit works with Claude Code through its standard stdio server. Repository setup creates the configuration automatically, and Claude Code can call `get_file_decisions` before editing. The `extract_intent` tool can use Claude's host-LLM sampling for noise commits without requiring Ollama.

No, wisegit does not require Ollama or an external database for its basic setup. It stores data in a local SQLite database and can use rule-based extraction. Ollama is an optional CLI path for extracting intent from noise commits outside a host environment that provides LLM sampling.

Set `GITHUB_TOKEN` and run `npx @sandip124/wisegit enrich` in the repository. The enrichment command fetches referenced issue or pull-request details from GitHub or GitLab and can add decision context such as reproduction steps, root causes, Won't Fix decisions, and By Design decisions.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewWisegit AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/wisegit?style=directory)](https://allmcps.com/mcp/wisegit)
HTML Embed
<a href="https://allmcps.com/mcp/wisegit"><img src="https://allmcps.com/api/badge/wisegit?style=directory" alt="Wisegit on AllMCPs" /></a>