这是一个 MCP 服务器,帮助分析开源项目并将其与现有的代码库集成。此工具使用 Claude 分析代码模式、架构和文档,以提供智能合并策略。
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"
}'
服务器将返回:
分析源和目标仓库,并生成合并策略。
请求体:
{
"sourceRepo": "string",
"targetRepo": "string"
}
健康检查端点,用于验证服务器状态。
仓库分析
模式检测
合并策略生成
文档处理
欢迎贡献!请随时提交拉取请求。