更改分析器MCP服务器
用于Git存储库分析的代理到代理(A2A)兼容服务器。
特性
- 分析Git存储库中的更改
- 提供有关存储库的度量和统计数据
- 分析目录结构
- 用于代理通信的A2A协议集成
安装
先决条件
- Python 3.9+
- Redis(用于状态管理)
使用pip
pip install mcp-change-analyzer来源
git clone https://github.com/your-org/mcp-change-analyzer.git
cd mcp-change-analyzer
pip install -e .用法
启动服务器
mcp-change-analyzer serve --config config/server.yaml使用A2A API
向服务器的RPC端点发送A2A请求:
from a2a.client import A2AClient
async def analyze_repo():
client = A2AClient("change-analyzer", base_url="http://localhost:8081")
response = await client.request({
"method": "analyze_repository",
"params": {
"repo_path": "/path/to/repo"
}
})
print(response)配置
服务器是使用YAML文件配置的。看 config/server.yaml 举个例子。
许可证
麻省理工学院
