Anthropic MCP 代码分析工具
一个用于分析开源项目并协助代码库集成的MCP服务器。
快速入门
-
克隆仓库: git clone https://github.com/kivo360/anthropic-mcp-code-analyzer.git cd anthropic-mcp-code-analyzer
-
安装依赖: npm install
-
设置环境变量: export ANTHROPIC_API_KEY=your_api_key export PORT=3000 # 可选,默认为3000
-
启动服务: npm start
-
分析代码库(示例): curl -X POST http://localhost:3000/analyze
-H "Content-Type: application/json"
-d '{"sourceRepo": "https://github.com/user/source-repo.git","targetRepo": "https://github.com/user/target-repo.git"}'
返回结果包括源代码库和目标代码库分析、推荐的合并策略以及潜在冲突和解决方案。