Cover image
Try Now
2025-02-05

用于分析开源项目并协助代码库集成的MCP服务器

3 years

Works with Finder

1

Github Watches

1

Github Forks

5

Github Stars

Anthropic MCP Code Analyzer

An MCP server that helps analyze open source projects and integrate them with your existing codebase. This tool uses Claude to analyze code patterns, architecture, and documentation to provide intelligent merge strategies.

Features

  • Repository analysis and code pattern detection
  • Documentation extraction and processing
  • Intelligent merge strategy generation using Claude
  • AST-based code analysis
  • Dependency tracking
  • Architecture pattern detection

Installation

  1. Clone the repository:
git clone https://github.com/kivo360/anthropic-mcp-code-analyzer.git
cd anthropic-mcp-code-analyzer
  1. Install dependencies:
npm install
  1. Set up environment variables:
export ANTHROPIC_API_KEY=your_api_key
export PORT=3000  # Optional, defaults to 3000

Usage

  1. Start the server:
npm start
  1. Analyze repositories and get merge strategies:
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"
  }'

The server will return:

  • Source repository analysis
  • Target repository analysis
  • Recommended merge strategy
  • Potential conflicts and solutions

API Endpoints

POST /analyze

Analyzes source and target repositories and generates a merge strategy.

Request body:

{
  "sourceRepo": "string",
  "targetRepo": "string"
}

GET /health

Health check endpoint to verify server status.

How it Works

  1. Repository Analysis

    • Clones both source and target repositories
    • Analyzes code structure using AST parsing
    • Extracts patterns and dependencies
    • Processes documentation
  2. Pattern Detection

    • Identifies common coding patterns
    • Maps dependencies and relationships
    • Analyzes architectural decisions
  3. Merge Strategy Generation

    • Uses Claude to analyze compatibility
    • Generates step-by-step integration plan
    • Identifies potential conflicts
    • Suggests refactoring steps
  4. Documentation Processing

    • Extracts and analyzes documentation
    • Maps knowledge between codebases
    • Provides context for decisions

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Khalid kalib
  • Write professional emails

  • https://tovuti.be
  • Oede knorrepot die vasthoudt an de goeie ouwe tied van 't boerenleven

  • ANGEL LEON
  • A world class elite tech co-founder entrepreneur, expert in software development, entrepreneurship, marketing, coaching style leadership and aligned with ambition for excellence, global market penetration and worldy perspectives.

  • Gil kaminski
  • Make sure you are post-ready before you post on social media

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

  • zhaoyunxing92
  • MCP(消息连接器协议)服务

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

    Reviews

    4 (1)
    Avatar
    user_y8ChgbOS
    2025-04-16

    I'm extremely impressed with the anthropic-mcp-code-analyzer by kivo360. It has significantly streamlined my code analysis process, making debugging faster and more efficient. The tool's integration is seamless and the user experience is stellar. Highly recommend checking it out at https://github.com/kivo360/anthropic-mcp-code-analyzer!