code-merge-mcp

code-merge-mcp

17

Code Merge MCP is a server designed for extracting, merging, and analyzing code file contents based on the Model Context Protocol (MCP). It enhances the ability of large language models to handle and analyze large codebases efficiently.

Code Merge MCP Server

Code Merge MCP is a server implementation based on the Model Context Protocol (MCP), designed for code file extraction, merging, and analysis. It offers powerful tools to help large language models like GPT and Claude process and analyze codebases more effectively.

Core Features

  • File Tree Generation: Creates a visual representation of the project file structure.
  • Code Merging: Combines content from multiple files into a single output.
  • Code Analysis: Provides statistics such as lines of code and function counts.
  • Smart Filtering: Supports .gitignore rules and custom blacklists.

Technical Architecture

The project is built on the MCP SDK using Node.js. Key components include an MCP server for handling client requests, tool modules for code processing, and core libraries for filesystem operations and filtering.