人本智能MCP代码分析器是一款强大的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"
}'
服务器将返回以下内容:
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"
}
用于验证服务器状态的健康检查端点。
仓库分析
模式检测
合并策略生成
文档处理
欢迎贡献!请随意提交Pull Request。