SA

sengokudaikon/aider-mcp-server

Developer tools

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

40 stars 11 forks Качество 68 Тренд 0Unlicense

sengokudaikon/aider-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/sengokudaikon/aider-mcp-server.

Обзор

sengokudaikon/aider-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/sengokudaikon/aider-mcp-server.

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

Сервер Model Context Protocol (MCP), который позволяет Клоду и другим клиентам MCP подключаться к Aider для эффективного редактирования файлов.

Обзор

Этот MCP-сервер устраняет разрыв между помощниками ИИ, такими как Клод и Айдер, и мощными возможностями редактирования файлов. Он обеспечивает стандартизированный интерфейс через протокол Model Context, что позволяет Клоду:

Редактировать существующие файлы, используя возможности Aider Создание новых файлов с контентом

  • Извлечение блоков кода из текста разметки
  • Получить информацию о статусе Git Проверьте состояние установки Aider Доступ и использование системы конфигурации Aider

Предпосылки

Python 3.8 или выше

  • установленный Aider ([T0]) Ключ API для OpenAI или Anthropic (в зависимости от того, какую модель вы хотите использовать)
  • Git репозиторий для редактирования файлов

##Установка

Вы можете установить сервер Aider MCP несколькими способами:

Использование UV (рекомендуется)

Если вы установили uv:

Использование PIP

Использование

Сервер Aider MCP работает в режиме протокола MCP по умолчанию, который предназначен для прямой интеграции с клиентами MCP, такими как Claude Desktop и Cursor IDE.

Командная строка

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

README

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

Aider MCP Server

A Model Context Protocol (MCP) server that allows Claude and other MCP clients to connect to Aider for efficient file editing capabilities.

Overview

This MCP server bridges the gap between AI assistants like Claude and Aider’s powerful file editing capabilities. It provides a standardized interface through the Model Context Protocol, allowing Claude to:

  • Edit existing files using Aider’s capabilities
  • Create new files with content
  • Extract code blocks from markdown text
  • Get git status information
  • Check Aider installation status
  • Access and use Aider’s configuration system

Prerequisites

  • Python 3.8 or higher
  • Aider installed (pip install aider-chat)
  • An API key for OpenAI or Anthropic (depending on which model you want Aider to use)
  • Git repository for file editing

Installation

You can install the Aider MCP server in several ways:

If you have uv installed:

# Install uv if you don't have it
curl -fsSL https://astral.sh/uv/install.sh | bash

# Run directly with uvx (no installation required)
uvx aider-mcp

Using PIP

# Install the package
pip install aider-mcp

# Run the server
aider-mcp

Usage

The Aider MCP server runs in MCP protocol mode over stdio by default, which is designed for direct integration with MCP clients like Claude Desktop and Cursor IDE.

# Run directly with uvx (recommended)
uvx aider-mcp

# With repository path specified
uvx aider-mcp --repo-path=/path/to/your/repo

# With custom Aider executable path
uvx aider-mcp --aider-path=/path/to/aider

# With environment variables
REPO_PATH=/path/to/your/repo uvx aider-mcp

Command Line Options

You can customize the server with these environment variables or command-line arguments:

  • --aider-path: Path to the Aider executable (default: “aider”, automatically searches PATH)
  • --repo-path: Path to the git repository (default: current directory)
  • --config-file: Path to a custom Aider config file
  • --env-file: Path to a custom .env file
  • --verbose, -v: Enable verbose output

Client Configuration

Claude Desktop

Add this to your Claude Desktop configuration file:

{
  "mcpServers": {
    "aider-mcp": {
      "command": "uvx",
      "args": [
        "aider-mcp",
        "--repo-path", "/path/to/your/repo"
      ]
    }
  }
}

Cursor IDE

To integrate with Cursor IDE:

  1. Open Cursor Settings
  2. Navigate to Features > MCP Servers
  3. Click Add new MCP server
  4. Enter this configuration:
    name: aider-mcp
    type: command
    command: uvx aider-mcp --repo-path=/path/to/your/repo
    
  5. After configuring, ensure you’re in Agent mode in the Composer to use MCP tools

Aider Configuration Support

This MCP server supports Aider’s configuration system, allowing you to:

  1. Use configuration from .aider.conf.yml files in:
Открыть полный README на GitHub

Установка

uvx aider-mcp --repo-path /path/to/your/repo
Новичок в MCP? Начните с руководства на mcpskill.org →

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

{ "mcpServers": { "aider-mcp": { "command": "uvx", "args": [ "aider-mcp", "--repo-path", "/path/to/your/repo" ] } } }