
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
概覽
將 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 路徑,否則預設拒絕所有操作。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mcp Aider Executor,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
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.
Prompting
You can directly tell your LLM to use Aider by providing them with a directory to work in. For example:
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
envinstead to provide keys likeOPENAI_API_KEY. Don't tell your LLM about it.
Options
You can add these arguments in the npx command.
Environment Prerequisites
The environment running the MCP server must have the following tools installed and available as executable commands in the shell:
- node
- aider
- 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 backgroundaiderprocess will be stuck waiting for each other.You should also set the
OPENAI_API_KEYenvironment variable to a non-empty value if you are using a local OpenAI-compatible endpoint becauseaiderrequires it even if you don't use an API key.You still need the
openai/prefix when specifying model names for local endpoints inaider.
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: Callsgit status --shortto 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: Startsaideras 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版本歷史
1- v1.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分