Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Git

БесплатноНе проверен

Enables Git repository interaction and automation via LLMs, providing tools to read, search, and manipulate Git repositories.

GitHubEmbed

Описание

Enables Git repository interaction and automation via LLMs, providing tools to read, search, and manipulate Git repositories.

README

NPM Version Bun Version License

A Model Context Protocol server for Git repository interaction and automation. This server provides tools to read, search, and manipulate Git repositories via Large Language Models.

MCP Server Usage

This package is designed to be used as an MCP server with clients like Claude Desktop. Here's how to configure it:

Basic Configuration

Add this to your MCP client configuration:

{
  "mcpServers": {
    "git": {
      "command": "npx",
      "args": ["-y", "mcp-git"]
    }
  }
}

Advanced Configuration

For custom settings:

{
  "mcpServers": {
    "git": {
      "command": "npx",
      "args": ["-y", "mcp-git"]
    }
  }
}

Installation Options

From Source

  1. Clone this repository
  2. Install dependencies:
    bun install
    
  3. Build:
    bun run build
    
  4. Run:
    bun run start
    

Available Git Tools

The server provides these MCP-accessible Git operations:

Repository Operations

  • git_status - Show working tree status
  • git_init - Initialize new repository
  • git_log - View commit history (with max_count parameter)

Change Management

  • git_diff_unstaged - View unstaged changes
  • git_diff_staged - View staged changes
  • git_diff - Compare with branch/commit
  • git_add - Stage files
  • git_reset - Unstage changes
  • git_commit - Create commit

Branch Operations

  • git_create_branch - Create new branch
  • git_checkout - Switch branches

Content Inspection

  • git_show - View commit contents

Development

Prerequisites

  • Bun v1.2.8 or later
  • Git installed system-wide

Building

bun run build

Testing

bun test

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss proposed changes.

License

MIT

from github.com/kwanLeeFrmVi/mcp-git

Установить Git в Claude Desktop, Claude Code, Cursor

Рекомендуется · одна команда, все IDE
unyly install mcp-git

Ставит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.

Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh

Или настроить вручную

Выполни в терминале:

claude mcp add mcp-git -- npx -y mcp-git

FAQ

Git MCP бесплатный?

Да, Git MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Git?

Нет, Git работает без API-ключей и переменных окружения.

Git — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Git в Claude Desktop, Claude Code или Cursor?

Открой Git на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Git with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development