Mcp Aider Executor

io.github.RailKill由 GitHub 账号 RailKill 发布v1.1.0更新于 Oct 24, 2026

Model Context Protocol (MCP) server to execute aider-specific code editing operations

已验证STDIO仅桌面开发者工具AI 与机器学习

概览

AI 生成的概览

将 aider 作为后台分离进程运行,让助手可以启动代码编辑任务并稍后查看进度。

可以做什么
这个 stdio MCP 服务器会用给定的消息提示在后台启动 aider,并把进程 ID、启动时间和原始提示记录在项目旁边的文件中。它提供工具检查进程是否仍在运行、读取 aider 聊天记录以了解进度,还提供基础 git 工具(日志、状态、分支、切换、暂存、回滚)和文件工具(列出文件、读取文件内容、读取和创建 .aider.conf.yml)。通过 glob 路径白名单控制允许操作的目录。
适用场景
当你希望助手在项目中启动 aider 代码编辑任务并稍后轮询结果时使用,例如协调多个后台编辑代理。它适合 aider 已是工具链一部分的本地桌面开发流程。
运行要求
通过 stdio 在本地运行,通常使用 npx,因此需要 Node.js,并且 shell 中还必须能执行 aider 和 git 命令。Aider 的模型设置和 API 凭据通过环境变量提供,例如 AIDER_MODEL、OPENAI_API_BASE 和 OPENAI_API_KEY。必须至少传入一个 --whitelist glob 路径,否则默认拒绝所有操作。
安装前请注意
该服务器会启动编辑代码的后台进程,并可执行改变仓库历史的 git 操作,包括切换分支、暂存和回滚。文件与 git 工具默认启用,可用参数关闭。OPENAI_API_KEY 等凭据从环境变量读取,不应告知模型。操作仅限白名单 glob 路径,请把范围设得尽量窄。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Aider Executor,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Project Information

stdio MCP server to run aider as a detached background process with basic git tools and status checks. This allows LLMs to start code editing processes freely and check the aider chat history for progress at a later time to allow for agentic swarm behavior.

An .aider.mcp.details.json file is created in the same directory with the process ID and starting datetime. The MCP server provides tools for LLM agents to check if the process is still running, and to check the .aider.chat.history.md for updates.

The original message prompt send via the MCP server to aider is also recorded in .aider.mcp.prompt.txt.

Quick Start

You can run the server directly using npx, passing in environment variables for the endpoint URL and API keys. Provide --whitelist arguments with a permitted glob path otherwise all operations will be denied by default.

json
{  "mcpServers": {    "mcp-aider-executor": {      "command": "npx",      "args": [        "-y",        "mcp-aider-executor",        "--whitelist",        "/home/user/my-project/**",        "--whitelist",        "/local/my-application/**"      ],      "env": {        "AIDER_MODEL": "openai/gemma-4-E4B-it-IQ4_XS",        "OPENAI_API_BASE": "http://127.0.0.1:1337/v1",        "OPENAI_API_KEY": "your-key-here"      }    }  }}

Prompting

You can directly tell your LLM to use Aider by providing them with a directory to work in. For example:

Use Aider to create a simple Python hello world console application in "/home/my-project"

For extra Aider options, you should set it properly using environment variables (the env in MCP settings .json), or ask your LLM to create the Aider YAML configuration file for you in the project directory. By default, the server comes with some basic git and file tools to allow the LLM to look around. These tools can be disabled via the options below if you'd like to use a separate MCP server to handle more advanced functions.

[!CAUTION]

For security purposes, the MCP server does not have the functionality to write API keys into the configuration YAML. Use env instead to provide keys like OPENAI_API_KEY. Don't tell your LLM about it.

Options

You can add these arguments in the npx command.

-h, --help                     Display this message--model <model>                Default LLM main model override (i.e. always use this model no matter what)--edit-format <format>         Main model edit format override, regardless of config or LLM inference--architect                    Always run in architect mode (--no-architect for never)--editor-model <model>         Default secondary editor model override for architect mode--editor-edit-format <format>  Editor model's edit format override--no-add-message-notes         Disables the adding of aider-specific notes to message prompts--no-register-git-tools        Disables registration of all git tools for this server--no-allow-git-edits           Disables only the git tools which modify the repo history--no-register-file-tools       Disables registration of wide file access tools for this server--whitelist <path>             Only allow operations within the glob path

Environment Prerequisites

The environment running the MCP server must have the following tools installed and available as executable commands in the shell:

  1. node
  2. aider
  3. git

[!WARNING]

You should set the number of parallel requests to 2 if you are using the same local endpoint for aider, otherwise your chat session and the background aider process will be stuck waiting for each other.

You should also set the OPENAI_API_KEY environment variable to a non-empty value if you are using a local OpenAI-compatible endpoint because aider requires it even if you don't use an API key.

You still need the openai/ prefix when specifying model names for local endpoints in aider.

Available MCP Tools

These are the list of MCP tools available for your LLM to call.

  • aider_check_git_log: Checks recent commits.
  • aider_check_git_status: Calls git status --short to check the state of the given directory.
  • aider_check_last_prompt: Returns the original prompt message of the last Aider run.
  • aider_check_progress: Checks the Aider chat history and background process status.
  • aider_checkout_git_branch: Switches git branches, creating a new one if it doesn't exist.
  • aider_create_git_stash: Stashes everything to clear the directory for Aider (git stash -u).
  • aider_git_revert: Reverts changes from a git commit by its hash.
  • aider_list_files: Lists all files in a given directory.
  • aider_list_git_branches: Returns a list of git branches in the given directory.
  • aider_mcp_check_whitelist: Checks what glob paths are whitelisted for this Aider MCP server.
  • aider_message_prompt: Starts aider as a background process with a given message prompt.
  • aider_read_config_yaml: Returns the full content of the .aider.conf.yml in the directory.
  • aider_read_file_contents: Reads the contents of a given filepath.
  • aider_setup_config_yaml: Creates the .aider.conf.yml file in the directory.

来源:README.md,提交 ba64d85

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.1.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分