
disler/aider-mcp-server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Aider用の最小限MCPサーバー
概要
AIコーディング作業をAiderに委ねるためのモデルコンテキストプロトコルサーバーを作成し、開発効率と柔軟性を高めます。 このサーバーにより、Claude CodeはAIコーディングタスクを最高のオープンソースAIコーディングアシスタントであるAiderに任せることができます。特定のコーディングタスクをAiderに委譲することで、コスト削減、コーディングモデルのコントロール、そしてよりオーケストライブな方法でClaude Codeを運用し、コードのレビューや修正が可能になります。 3. .envファイル内でAPIキーを設定し(またはmcpServersの「env」セクションを使用)、Aiderで使いたいモデルに必要なAPIキーを入手します: 4. .mcp.jsonをプロジェクトのルートにコピーして入力し、--ディレクトリをこのプロジェクトのルートディレクトリに、-current-working-dir をプロジェクトルートに更新します。 注意:AIコーディングテストでは、Geminiモデルには有効なAPIキーが必要です。テストを実行する前に、必ず.envファイルでキーを設定してください。 このMCPサーバーは以下の機能を提供します: 1.
概要(AI 翻訳)
AIコーディング作業をAiderに引き継ぐモデルコンテキストプロトコルサーバーを提供し、開発効率と柔軟性を高めます。
概要
このサーバーにより、Claude CodeはAIコーディングタスクを最高のオープンソースAIコーディングアシスタントであるAiderに任せることができます。特定のコーディングタスクをAiderに委譲することで、コスト削減、コーディングモデルのコントロール、そしてよりオーケストライブな方法でClaude Codeを運用し、コードのレビューや修正が可能になります。
セットアップ
-
リポジトリのクローン:
-
依存関係のインストール:
-
環境ファイルを作成する:
-
.envファイルでAPIキーを設定し(またはmcpServersの「env」セクションを使う) Aiderで使いたいモデルに必要なAPIキーを入手してください: -
プロジェクトのルートに
.mcp.jsonをコピーして入力し、--directoryをこのプロジェクトのルートディレクトリに、--current-working-dirをプロジェクトのルートに更新します。
テスト
gemini-2.5-pro-exp-03-25で実施したテスト
すべてのテストを実行するには:
具体的なテストを行うには:
注意:AIコーディングテストでは、Geminiモデルには有効なAPIキーが必要です。テストを実行する前に、.envファイルで必ず設定してください。
このMCPサーバーをClaudeコードに追加してください
ジェミニ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
- Clone the repository:
git clone https://github.com/disler/aider-mcp-server.git
- Install dependencies:
uv sync
- Create your environment file:
cp .env.sample .env
- Configure your API keys in the
.envfile (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
- Copy and fill out the the
.mcp.jsoninto the root of your project and update the--directoryto point to this project’s root directory and the--current-working-dirto 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 \
-- \
インストール
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
}
}
}
}