Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
multi-functional MCP server for Aider / file editing / git management / terminal integration
Fetched from the repository for this visit.
mcp-devtools server offers a comprehensive suite of software development tools:
ai_edit)read_file, write_to_file)git_diff, git_show, git_stage_and_commit, git_status, git_log)execute_command)curl -LsSf https://astral.sh/uv/install.sh | sh
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
ai_edit tool)
Installation:
uvx aider-install
~/.aider.conf.yml) or your project repo root (make sure to double check if its .gitignored if you are going to keep API keys there, even though Aider should auto-ignore it on first run).The ai_edit tool provides a powerful way to make code changes using natural language. It no longer automatically commits changes. Instead, it applies them to your working directory and provides a structured report for you to review.
ai_edit with a clear instruction and the target files.git_stage_and_commit tool.Aider reads .aider.conf.yml itself. The MCP server does not override Aider configuration except enforcing chat history behavior based on the required continue_thread flag (passing --restore-chat-history or --no-restore-chat-history). Any additional options you pass via the ai_edit tool's options parameter are forwarded as-is.
Note on workspaces and Git worktrees (Experimental):
MCP_EXPERIMENTAL_WORKTREES=1 (also accepts true/yes).ai_edit may create per-session worktrees under .mcp-devtools/workspaces/<session_id> and purge them on success; stale worktrees are cleaned up opportunistically based on session TTL..mcp-devtools/), so user-facing behavior remains unchanged when disabled.uvx mcp-devtools -p 1337
git clone "https://github.com/daoch4n/mcp-devtools/"
cd mcp-devtools
./server.sh -p 1337
git clone "https://github.com/daoch4n/mcp-devtools/"
cd mcp-devtools
.\server.ps1 -p 1337
To integrate mcp-devtools with your AI agent, add the following configuration to your MCP settings file:
{
"mcpServers": {
"devtools": {
"url": "http://localhost:1337/sse"
}
}
}
https://github.com/user-attachments/assets/d0b7b41b-c420-4b84-8807-d8a00300bd3e
# ROLE AND DIRECTIVE
**You are a Senior Software Architect.** Your primary function is to architect software solutions by delegating all code implementation to a stateless coding agent via the `ai_edit` tool. Your expertise lies in meticulous planning, atomic delegation, and rigorous code review, not direct implementation.
---
# STANDARD OPERATING PROCEDURE (SOP)
You must adhere to the following five-step, iterative workflow:
1. **Analyze & Plan:** Thoroughly analyze the user's request and formulate a clear, high-level implementation plan. Break the problem down into the smallest possible, logical, and incremental steps.
2. **Delegate ONE Step:** Translate **only the very next step** of your plan into a precise, actionable, and fully self-contained prompt for the `ai_edit` tool. **Never bundle multiple steps into a single delegation.** Default to continue_thread = false. Set continue_thread = true only when you intentionally build on the immediately preceding Aider conversation (e.g., iterative refinement of the same change).
3. **Provide Full Context:** Because the agent is stateless, you must include all necessary context (e.g., file paths, relevant code snippets, class/function definitions) within your `ai_edit` prompt. (See "Agent Memory & Context Protocol" below). Always include file paths, the exact code blocks to modify, and relevant dependencies. This applies whether continue_thread is true or false.
4. **Review & Verify:** Critically evaluate the diff generated by `ai_edit` after every execution. This is a **mandatory code review**.
* Does the code correctly implement the single step you delegated?
* Is the code quality acceptable?
* Are there any errors or edge cases missed?
5. **Iterate & Guide:**
* **If Approved:** The step is complete. Proceed to delegate the *next* incremental step in your plan.
* **If Revision is Needed:** The implementation is flawed. Provide corrective feedback in a new `ai_edit` prompt, again ensuring all context is provided, to guide the agent to the correct solution for that specific step.
---
# AGENT MEMORY MODEL (CONDITIONAL STATELESSNESS)
- The coding agent can be stateless or continue prior conversation, controlled by ai_edit's required continue_thread flag.
- If continue_thread = false:
- Aider does not restore prior chat. Treat every call as a fresh agent with no memory.
- Always include all the immediate context the agent needs: full file paths, the exact function/class to touch, and any dependent snippets.
- If continue_thread = true:
- Aider restores prior chat history for continuity within the same repo/session.
- Still include critical context to make the agent robust. Chat history is best-effort and is not a substitute for explicit, precise context.
## Choosing continue_thread
- Set false:
- Switching features or tasks
- After significant repository changes
- When you want clean isolation between prompts
- Set true:
- Iterating immediately on the same feature or fix
- Correcting the previous Aider change
- Resuming a short-lived session in the same repo
---
# CONSTRAINTS & TOOL PROTOCOL
**Primary Constraint:**
* You are **strictly prohibited** from writing or modifying application code directly. All code implementation must be delegated.
* **Forbidden Tools for Coding:** `write_to_file`, and `{your_native_tool_slug}` must NOT be used to modify code.
**Permitted Exception:**
* You MAY use file editing tools to create or modify non-code assets, such as documentation.
**`ai_edit` Tool Usage Rules:**
* `repo_path`: Always pass the full, absolute path of the current working directory.
💬 But I'm too lazy to copy paste prompts myself!
mcp-devtools server and code as usual but use ❓ Ask mode instead of 💻 Code, AI will automatically use the ai_edit tool if available to apply all changes..roomodes and .roo/:
✒️ Agile Writer✏️ Agile Architect and write Epic Design🖊️ Agile Planner and write Epic Tasks🖋️ Agile Dev and orchestrate Epic Code writing, followed by Epic Review of each commit..roomodes and .roo/:
🧭 Rooroo Navigator co-pilot is your project manager. Responsible for agent coordination and task orchestration, lifecycles, delegation. Provides context.md instruction file links to other agents, either the ones generated by 🗓️ Rooroo Planner, or self-generated ones if Planner wasn't deemed neccessary for the task. 👩🏻💻 Rooroo Developer agent receives instructions, delegates all code changes to subagent via ai_edit, then reviews the changes and commits them, or just codes itself if ai_edit tool unavailable.📊 Rooroo Analyzer agent receives instructions and analyzes the code, then provides structured report to caller. 🗓️ Rooroo Planner agent decomposes complex goals requiring multi-expert coordination into clear, actionable sub-tasks for other agents to do. It is also the main supplier of context.md instructions for other agents.💡 Rooroo Idea Sparker co-pilot is your brainstorming and innovation catalyst, talk to it if you'd like some creative thinking and assumption challenging done, or just explore something new with it.repo_path to every tool call, so AI agent only has read/write access to files in the current workspace (relative to any path AI decides to pass as repo_path , make sure system prompt is solid on cwd use).execute_command doesn't have strict access boundaries defined, while it does execute all commands with cwd set to repo_path (relative to it), nothing is there to stop AI from passing full paths to other places it seems fit; reading, altering or deleting unintended data on your whole computer, so execise extreme caution with auto-allowing execute_command tool or at least don't leave AI agent unattended while doing so. MCP server is not responsible for your AI agent executing rm -rf * in your home folder.Issue:
write_to_file tool for direct code editing with languages like JavaScript that utilize template literals, you may encounter unexpected syntax errors. This issue stems from how the AI agent generates the content string, where backticks and dollar signs within template literals might be incorrectly escaped with extra backslashes (\).Mitigation:
write_to_file tool is dynamically integrated with tsc (TypeScript compiler) for conditional type checking of .js, .mjs, and .ts files on edit. The output of tsc --noEmit --allowJs is provided as part of the tool's response. AI agent should parse this output to detect any compiler errors and should not proceed with further actions if errors are reported, indicating a problem with the written code.Workarounds:
ai_edit tool. It's more suitable for direct code manipulation than write_to_file. ai_edit will apply the changes and return a diff for review. Your assistant can then orchestrate the review and commit process.git_statusDescription: Shows the current status of the Git working tree, including untracked, modified, and staged files.
Input Schema:
{
"type": "object",
"properties": {
"repo_path": {
"type": "string",
"description": "The absolute path to the Git repository's working directory."
}
},
"required": [
"repo_path"
]
}
git_diffgit diff. Pass target='HEAD' for previous 'all changes vs HEAD' behavior.{
"type": "object",
"properties": {
"repo_path": {
"type": "string",
"description": "The absolute path to the Git repository's working directory."
},
"target": {
"type": "string",
"description": "Optional. If omitted, behaves like `git diff` (worktree vs index). Pass 'HEAD' or another ref to compare against a commit or branch."
}
},
"required": [
"repo_path"
]
}
git_stage_and_commit{
"type": "object",
"properties": {
"repo_path": {
"type": "string",
"description": "The absolute path to the Git repository's working directory."
},
"message": {
"type": "string",
"description": "The commit message for the changes."
},
"files": {
"type": "array",
"items": {
"type": "string"
},
"description": "An optional list of specific file paths (relative to the repository root) to stage before committing. If not provided, all changes will be staged."
}
},
"required": [
"repo_path",
"message"
]
}
git_log{
"type": "object",
"properties": {
"repo_path": {
"type": "string",
"description": "The absolute path to the Git repository's working directory."
},
"max_count": {
"type": "integer",
"default": 10,
"description": "The maximum number of commit entries to retrieve. Defaults to 10."
}
},
"required": [
"repo_path"
]
}
git_show{
"type": "object",
"properties": {
"repo_path": {
"type": "string",
"description": "The absolute path to the Git repository's working directory."
},
"revision": {
"type": "string",
"description": "The commit hash, reference (e.g., 'HEAD', 'main', 'abc1234'), or range (A..B or A...B) to show details for."
},
"path": {
"type": "string",
"description": "Optional. Filter the output to show only changes for the specified file path."
},
"show_metadata_only": {
"type": "boolean",
"description": "Optional. If true, shows only the commit metadata (author, date, message) without the diff."
},
"show_diff_only": {
"type": "boolean",
"description": "Optional. If true, shows only the diff without the commit metadata."
}
},
"required": [
"repo_path",
"revision"
]
}
git_read_file{
"type": "object",
"properties": {
"repo_path": {
"type": "string",
"description": "The absolute path to the Git repository's working directory."
},
"file_path": {
"type": "string",
"description": "The path to the file to read, relative to the repository's working directory."
}
},
"required": [
"repo_path",
"file_path"
]
}
write_to_file{
"type": "object",
"properties": {
"repo_path": {
"type": "string",
"description": "The absolute path to the Git repository's working directory."
},
"file_path": {
"type": "string",
"description": "The path to the file to write to, relative to the repository's working directory. The file will be created if it doesn't exist, or overwritten if it does."
},
"content": {
"type": "string",
"description": "The string content to write to the specified file."
}
},
"required": [
"repo_path",
"file_path",
"content"
]
}
execute_command{
"type": "object",
"properties": {
"repo_path": {
"type": "string",
"description": "The absolute path to the directory where the command should be executed."
},
"command": {
"type": "string",
"description": "The shell command string to execute (e.g., 'ls -l', 'npm install')."
}
},
"required": [
"repo_path",
"command"
]
}
ai_editDescription: AI pair programming tool for making targeted code changes using Aider. This tool applies the requested changes directly to your working directory without committing them. After the tool runs, it returns a structured report containing:
Use this tool to:
IMPORTANT: This tool does NOT automatically commit changes. You are responsible for reviewing and committing the work.
Input Schema:
{
"type": "object",
"properties": {
"repo_path": {
"type": "string",
"description": "The absolute path to the Git repository's working directory where the AI edit should be performed."
},
"message": {
"type": "string",
"description": "A detailed natural language message describing the code changes to make. Be specific about files, desired behavior, and any constraints."
},
"files": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of file paths (relative to the repository root) that Aider should operate on. This argument is mandatory."
},
"continue_thread": {
"type": "boolean",
"description": "Required. Whether to continue the Aider thread by restoring chat history. If true, passes --restore-chat-history; if false, passes --no-restore-chat-history. Clients must explicitly choose."
},
"options": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional. A list of additional command-line options to pass directly to Aider. Each option should be a string."
},
"edit_format": {
"type": "string",
"enum": [
"diff",
"diff-fenced",
"udiff",
"whole"
],
"default": "diff",
"description": "Optional. The format Aider should use for edits. Defaults to 'diff'. Options: 'diff', 'diff-fenced', 'udiff', 'whole'."
},
},
"required": [
"repo_path",
"message",
"files",
"continue_thread"
]
}
Note: The server no longer modifies or prunes
.aider.chat.history.md. Chat history usage is controlled solely by Aider via--restore-chat-history(whencontinue_threadis true) or--no-restore-chat-history(when false).
Also: After Aider completes, the server appends the last Aider reply from
.aider.chat.history.md(last session only) to the tool output, with SEARCH/REPLACE noise removed for readability.
aider_status{
"type": "object",
"properties": {
"repo_path": {
"type": "string",
"description": "The absolute path to the Git repository or working directory to check Aider's status within."
},
"check_environment": {
"type": "boolean",
"default": true,
"description": "If true, the tool will also check Aider's configuration, environment variables, and Git repository details. Defaults to true."
}
},
"required": [
"repo_path"
]
}
💬 But I'm too lazy to even read this all!
https://github.com/user-attachments/assets/05670a7a-72c5-4276-925c-dbd1ed617d99
GitHub checked 39h ago - refresh overdue. Recently viewed repositories target hourly refresh.