AiDD MCP Server
AiDD MCP Server 是一个多功能的AI驱动开发工具包,用于文件操作、代码分析、Git管理以及跨多种语言的安全代码执行。
AiDD MCP Server 是一个全面的 AI 驱动开发工具集,提供文件操作、代码分析、Git 管理和多语言代码执行功能。
安装
# 使用 pip
pip install mcp-server-aidd
# 或使用 uv
uvx mcp-server-aidd
Claude 桌面设置
在 claude_desktop_config.json
中添加:
{
"mcpServers": {
"aidd-ai-software-development-utilities": {
"command": "uvx",
"args": ["mcp-server-aidd"]
}
}
}
核心功能
文件操作
# 读取文件
aidd-cli --tool read_file --args '{"path": "src/main.py"}'
# 写入文件
aidd-cli --tool write_file --args '{"path": "output.txt", "content": "Hello World"}'
# 编辑文件
aidd-cli --tool edit_file --args '{
"path": "src/main.py",
"edits": [
{"oldText": "def old_function():", "newText": "def new_function():"}
]
}'
# 列出目录
aidd-cli --tool list_directory --args '{"path": "."}'
Git 操作
# 检查状态
aidd-cli --tool git_status --args '{"repo_path": "."}'
# 提交更改
aidd-cli --tool git_commit --args '{"repo_path": ".", "message": "feat: add new feature"}'
# 创建分支
aidd-cli --tool git_create_branch --args '{"repo_path": ".", "branch_name": "feature/new-branch"}'
代码分析
# 分析代码结构
aidd-cli --tool tree_sitter_map --args '{"path": "src"}'
支持多种语言,包括 Python、JavaScript、TypeScript、Java、C++、Ruby、Go、Rust、PHP、C# 和 Kotlin。
系统信息
# 获取系统信息
aidd-cli --tool get_system_info
屏幕和图像工具
# 获取活动应用列表
aidd-cli --tool get_active_apps --args '{"with_details": true}'
# 捕获屏幕截图
aidd-cli --tool capture_screenshot --args '{"output_path": "screenshot.png"}'
更多工具
- 目录树生成
- 文件搜索
- 安全的代码执行
- 图像处理
有关完整功能列表和详细用法,请参阅完整文档。
🔗 查看更多示例和进阶用法: AiDD MCP Server 文档