HS

haacked/spelungit

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

30 stars 2 forks Качество 65 Тренд 11MIT

Сервер MCP для поиска истории git на естественном языке

Обзор

Сервер Model Context Protocol (MCP) для изучения истории совершения Git с помощью семантического поиска. Поиск по заданиям с командами естественного языка, такими как «Поиск истории гита, чтобы выяснить, почему этот класс был добавлен?» - : Запросы на естественном языке по Git фиксируют историю - : Автоматически обнаруживает и изолирует различные репозитории - : Работает из коробки с SQLite + локальными встраиваниями - : Гибридные встраивания, оптимизированные для изменений кода и технического контента - : Справочник Настройки Git, включая рабочие деревья: Автоматическая конфигурация для Claude Code - Загрузить и установить Spelungit автоматически - Настройка виртуальной среды Python - Установка зависимостей (sentence-transformers, SQLite, numpy) - Настройка кода Claude автоматически - Тестирование установки Для разработчиков или пользователей, предпочитающих клонировать репозиторий: Добавьте конфигурацию кода Claude (~/.config/claude/claude desktop config.json): 1. - Поиск совершается с использованием естественного языка 2. - Индекс репозитория для поиска 3.

Обзор (машинный перевод)

Сервер Model Context Protocol (MCP) для изучения истории совершения Git Семантический поиск. Поиск через обязательства с командами естественного языка, такими как: «Поищите историю, чтобы узнать, почему этот класс был добавлен?»

Feature Особенности

** Семантический поиск** Запросы на естественном языке о Git фиксируют историю ** Поддержка нескольких репозиториев**: автоматически обнаруживает и изолирует различные репозитории Установка с нулевым конфигурированием: Работает из коробки с SQLite + локальные встраивания *** Code-Aware Search**: гибридные встраивания, оптимизированные для изменения кода и технического контента

  • ** it Git Worktree Support**: Ручной комплекс Настройки Git, включая рабочие деревья Интеграция кода Клода: автоматическая конфигурация кода Клода

###Быстрая установка

** Однострочная установка** (рекомендуется для конечных пользователей):

Эта команда будет:

Скачать и установить Spelungit автоматически Настройка виртуальной среды Python

  • Установка зависимостей (sentence-transformers, SQLite, numpy) Настройка кода Claude автоматически
  • Испытание установки

** Требования**: Python 3.8+ и curl/wget

###Продвинутая установка

Вариант 1: Клонирование и установка

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

Spelungit MCP Server

A Model Context Protocol (MCP) server for exploring Git commit history using semantic search. Search through commits with natural language commands like “Search git history to find out why was this class added?”

✨ Features

  • 🔍 Semantic Search: Natural language queries over Git commit history
  • 🌳 Multi-Repository Support: Automatically detects and isolates different repositories
  • ⚡ Zero-Config Installation: Works out of the box with SQLite + local embeddings
  • 🎯 Code-Aware Search: Hybrid embeddings optimized for code changes and technical content
  • 📊 Git Worktree Support: Handles complex Git setups including worktrees
  • 🚀 Claude Code Integration: Automatic configuration for Claude Code

🚀 Quick Install

One-line installation (recommended for end users):

curl -sSL https://raw.githubusercontent.com/haacked/spelungit/main/install-remote.sh | bash

This command will:

  • Download and install Spelungit automatically
  • Set up a Python virtual environment
  • Install dependencies (sentence-transformers, SQLite, numpy)
  • Configure Claude Code automatically
  • Test the installation

Requirements: Python 3.8+ and curl/wget

🔧 Advanced Installation

Option 1: Clone and Install

For developers or users who prefer to clone the repository:

git clone https://github.com/haacked/spelungit.git
cd spelungit
./install.sh

Option 2: Manual Installation

# Create virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Test the installation
python -m spelungit.server --test

Add to your Claude Code configuration (~/.config/claude/claude_desktop_config.json):

{
  "mcpServers": {
    "spelungit": {
      "command": "/path/to/venv/bin/python",
      "args": ["-m", "spelungit.server"],
      "env": {
        "PYTHONPATH": "/path/to/spelungit/src"
      }
    }
  }
}

📖 Usage

Available Tools

  1. search_commits - Search commits using natural language
  2. index_repository - Index a repository for search
  3. repository_status - Check indexing status
  4. get_database_info - View database statistics
  5. search_blame - Search code blame data using natural language
  6. who_wrote - Find authors who wrote code matching a query
  7. configure_auto_update - Configure automatic index update behavior
  8. get_auto_update_config - Get current automatic index update configuration

Example Queries

# Search for authentication-related changes
search_commits(query="authentication login changes", limit=5)

# Find database migration commits
search_commits(query="database schema migration", author_filter="john")

# Look for bug fixes
search_commits(query="fix error exception handling")

# Search blame information for specific code
search_blame(query="authentication middleware setup")
Открыть полный README на GitHub

Установка

This server does not publish a one-line install command.

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "spelungit": { "command": "/path/to/venv/bin/python", "args": ["-m", "spelungit.server"], "env": { "PYTHONPATH": "/path/to/spelungit/src" } } } }