DA

disler/aider-mcp-server

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

308 stars 60 forks 품질 49 트렌드 19

Aider를 위한 최소 MCP 서버

개요

AI 코딩 작업을 Aider로 이전하기 위한 모델 컨텍스트 프로토콜 서버를 제공하여 개발 효율성과 유연성을 향상시킵니다. 이 서버는 Claude Code가 AI 코딩 작업을 최고의 오픈 소스 AI 코딩 어시스턴트인 Aider에 이전할 수 있게 합니다. 특정 코딩 작업을 Aider에 위임함으로써 비용을 절감하고 코딩 모델을 통제하며 Claude Code를 보다 오케스트레이션적으로 운영하여 코드를 검토하고 수정할 수 있습니다. 3. .env 파일에서 API 키를 설정하거나(또는 mcpServers "env" 섹션을 사용하세요) 원하는 모델에 필요한 API 키를 Aider에서 설정하세요: 4. 프로젝트 루트에 .mcp.json를 복사하고 채우고, --디렉터리를 이 프로젝트의 루트 디렉터리로, -current-working-dir 파일을 프로젝트 루트로 업데이트하세요. 참고: AI 코딩 테스트는 Gemini 모델에 대해 유효한 API 키가 필요합니다. 테스트를 실행하기 전에 반드시 .env 파일에서 API 키를 설정하세요. 이 MCP 서버는 다음과 같은 기능을 제공합니다: 1.

개요(AI 번역)

AI 코딩 작업을 Aider로 이전하여 개발 효율성과 유연성을 높이는 모델 컨텍스트 프로토콜 서버입니다.

개요

이 서버는 Claude Code가 AI 코딩 작업을 최고의 오픈 소스 AI 코딩 어시스턴트인 Aider에 이전할 수 있게 합니다. 특정 코딩 작업을 Aider에 위임함으로써 비용을 절감하고 코딩 모델을 통제하며 Claude Code를 보다 오케스트레이션적으로 운영하여 코드를 검토하고 수정할 수 있습니다.

준비

  1. 저장소 복제:

  2. 의존성 설치:

  3. 환경 파일 생성:

  4. .env 파일에서 API 키를 설정하거나(또는 mcpServers “env” 섹션을 사용하세요) Aider에서 사용할 모델에 필요한 API 키를 설정하세요:

  5. 프로젝트 루트에 .mcp.json를 복사해서 채우고, --directory를 이 프로젝트의 루트 디렉터리로, --current-working-dir를 프로젝트 루트로 업데이트하세요.

테스트

gemini-2.5-pro-exp-03-25로 진행된 테스트

모든 테스트를 실행하려면:

구체적인 테스트를 하려면:

참고: AI 코딩 테스트는 Gemini 모델에 유효한 API 키가 필요합니다. 테스트를 실행하기 전에 반드시 .env 파일에 설정해 두세요.

이 MCP 서버를 클로드 코드에 추가하세요

'쌍둥이자리-2를 추가해.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Aider MCP Server - Experimental

Model context protocol server for offloading AI coding work to Aider, enhancing development efficiency and flexibility.

Overview

This server allows Claude Code to offload AI coding tasks to Aider, the best open source AI coding assistant. By delegating certain coding tasks to Aider, we can reduce costs, gain control over our coding model and operate Claude Code in a more orchestrative way to review and revise code.

Setup

  1. Clone the repository:
git clone https://github.com/disler/aider-mcp-server.git
  1. Install dependencies:
uv sync
  1. Create your environment file:
cp .env.sample .env
  1. Configure your API keys in the .env file (or use the mcpServers “env” section) to have the api key needed for the model you want to use in aider:
GEMINI_API_KEY=your_gemini_api_key_here
OPENAI_API_KEY=your_openai_api_key_here
ANTHROPIC_API_KEY=your_anthropic_api_key_here
...see .env.sample for more
  1. Copy and fill out the the .mcp.json into the root of your project and update the --directory to point to this project’s root directory and the --current-working-dir to point to the root of your project.
{
  "mcpServers": {
    "aider-mcp-server": {
      "type": "stdio",
      "command": "uv",
      "args": [
        "--directory",
        "",
        "run",
        "aider-mcp-server",
        "--editor-model",
        "gpt-4o",
        "--current-working-dir",
        ""
      ],
      "env": {
        "GEMINI_API_KEY": "",
        "OPENAI_API_KEY": "",
        "ANTHROPIC_API_KEY": "",
        ...see .env.sample for more
      }
    }
  }
}

Testing

Tests run with gemini-2.5-pro-exp-03-25

To run all tests:

uv run pytest

To run specific tests:

# Test listing models
uv run pytest src/aider_mcp_server/tests/atoms/tools/test_aider_list_models.py

# Test AI coding
uv run pytest src/aider_mcp_server/tests/atoms/tools/test_aider_ai_code.py

Note: The AI coding tests require a valid API key for the Gemini model. Make sure to set it in your .env file before running the tests.

Add this MCP server to Claude Code

Add with gemini-2.5-pro-exp-03-25

claude mcp add aider-mcp-server -s local \
  -- \
  uv --directory "" \
  run aider-mcp-server \
  --editor-model "gemini/gemini-2.5-pro-exp-03-25" \
  --current-working-dir ""

Add with gemini-2.5-pro-preview-03-25

claude mcp add aider-mcp-server -s local \
  -- \
  uv --directory "" \
  run aider-mcp-server \
  --editor-model "gemini/gemini-2.5-pro-preview-03-25" \
  --current-working-dir ""

Add with quasar-alpha

claude mcp add aider-mcp-server -s local \
  -- \
GitHub에서 전체 README 보기

설치

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

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "aider-mcp-server": { "type": "stdio", "command": "uv", "args": [ "--directory", "<path to this project>", "run", "aider-mcp-server", "--editor-model", "gpt-4o", "--current-working-dir", "<path to your project>" ], "env": { "GEMINI_API_KEY": "<your gemini api key>", "OPENAI_API_KEY": "<your openai api key>", "ANTHROPIC_API_KEY": "<your anthropic api key>", ...see .env.sample for more } } } }