MCP.so
登录
M

MCP Code Analyzer

@mszewczy

关于 MCP Code Analyzer

A Model Context Protocol (MCP) server implementation for comprehensive code analysis. This tool integrates with Claude Desktop to provide code analysis capabilities through natural language interactions.

基本信息

分类

开发工具

传输方式

stdio

发布者

mszewczy

提交者

Marek Szewczyk

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "code-analyzer": {
      "command": "python",
      "args": [
        "-m",
        "mcp_code_analyzer",
        "--analyze-paths",
        "C:\\Projects\\path1"
      ]
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP Code Analyzer?

MCP Code Analyzer is a code analysis and management tool that integrates with Claude Desktop. It analyzes code at both project and file levels, providing insights for needed changes and ensuring related usages are updated when modifications are made.

How to use MCP Code Analyzer?

Install via pip install -e . after cloning the repository. Configure Claude Desktop by editing %AppData%\Claude\claude_desktop_config.json to point to your project paths using the --analyze-paths argument. Additional paths or files can be analyzed via chat messages.

Key features of MCP Code Analyzer

  • Project structure analysis in XML tree format
  • Project statistics and technology analysis
  • File and import analysis
  • Reference finding across the codebase
  • File operations with automatic version control backups
  • Line-by-line code modification (currently has issues)

Use cases of MCP Code Analyzer

  • Automatically updating all references when renaming or moving a function
  • Understanding project architecture and dependencies before making changes
  • Detecting unused imports or files across a codebase
  • Backing up and safely modifying code with version control support

FAQ from MCP Code Analyzer

What are the system requirements?

Python 3.10 or later and Windows (Linux/macOS support not yet tested).

Does MCP Code Analyzer modify or delete files?

Yes. The tool performs file operations that can modify or delete files. Always backup your codebase before using any modification features.

What working tools are available?

Project analysis tools (analyze_project_structure, analyze_project_statistics, analyze_project_technology), code analysis tools (analyze_imports, analyze_file, find_references), file operations (file_operations, version_control), and code_modifier (with known big issues).

Are there known limitations?

Chat context limitations may interrupt large file modifications. AI-generated documentation comments can affect code operation. Some tools are still in testing phase and may not work as expected.

Can I analyze multiple project paths?

Yes. Multiple project paths can be specified in the Claude Desktop configuration, and additional paths or files can be analyzed via chat messages with no limit on the number.

评论

开发工具 分类下的更多 MCP 服务器