Sponsored by Deepsite.site

Wisegit

Created By
Sandip124a month ago
MCP server that extracts decision intent from git history and protects intentional code from AI modification.
Overview

WiseGit is a local MCP server that reconstructs the "why" behind code decisions from git history — so AI agents respect what was intentional, not just what compiles.

The problem: LLMs treat all code equally. A manually-tested race condition fix (sleep(350)) and a broken stub look identical — both are just text. When Claude Code sees "find bugs," it removes the sleep. Production incident. The proof of intention exists in git history, but nobody extracts it.

What wisegit does:

  1. Indexes your git history — walks every commit, parses diffs at the AST level using Tree-sitter (C#, TypeScript, JavaScript, Python, Go, Rust), classifies commits (STRUCTURED/DESCRIPTIVE/NOISE), and extracts decision intent.

  2. Computes freeze scores — each function gets a 0–1 score derived from 7 signal categories: git history (reverts, age, contributor count), issue enrichment (Won't Fix/By Design from GitHub/GitLab), code structure (magic numbers, defensive patterns), test signals, structural importance (PageRank from call graph), Naur theory signals (institutional knowledge loss), and Aranda signals (timeline gaps, forgotten patterns).

  3. Serves decision manifests via MCP — before any file edit, the AI agent calls get_file_decisions and sees which functions are FROZEN (don't touch without override), STABLE (proceed with caution), or OPEN (safe to modify). Theory holders show who on the team understands each function.

  4. Enables seamless overrides — when the AI needs to modify frozen code, it calls create_override with a reason. The user approves with one click in Claude Code. The override is recorded in an append-only audit trail shared with the team via git.

8 MCP tools:

  • get_file_decisions — decision manifest with freeze scores, theory holders, override status
  • get_freeze_score — detailed score breakdown for a function
  • get_function_history — full chronological decision timeline
  • get_theory_gaps — functions with no active theory holders (Naur death)
  • get_branch_context — branch merge history and migration context
  • search_decisions — keyword search across all past decisions
  • create_override — override frozen functions (user approves in UI)
  • extract_intent — extract intent for NOISE commits using host LLM via MCP sampling

Key features:

  • Zero config — npx @sandip124/wisegit setup in any repo, that's it
  • SQLite database (no Docker, no PostgreSQL, no external services)
  • Team support via .wisegit/ directory tracked by git (JSONL files merge cleanly)
  • AI-era commit origin detection (HUMAN / AI_REVIEWED / AI_UNREVIEWED)
  • Theory holder tracking per function (healthy / fragile / critical risk levels)
  • HTML codebase health report (wisegit report)
  • Grounded in 12 published software engineering papers

Academic foundation: Naur (1985) theory building, Aranda & Venolia (2009) bug repository analysis, Kim et al. (2007) fault prediction from cached history, Ying et al. (2004) co-change mining, Giger et al. (2011) AST-level change analysis, Aryani et al. (2014) domain-based coupling, and 6 more.

Server Config

{
  "mcpServers": {
    "wisegit": {
      "command": "npx",
      "args": [
        "-y",
        "@sandip124/wisegit",
        "serve"
      ]
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
ChatWiseThe second fastest AI chatbot™
DeepChatYour AI Partner on Desktop
CursorThe AI Code Editor
Amap Maps高德地图官方 MCP Server
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Tavily Mcp
WindsurfThe new purpose-built IDE to harness magic
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Serper MCP ServerA Serper MCP Server
RedisA Model Context Protocol server that provides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
Playwright McpPlaywright MCP server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.