Code-merge-mcp is an MCP server that enables AI assistants to analyze and merge code from multiple files in a project. Built with Node.js and the official MCP SDK, it provides tools for retrieving file trees, merging content from multiple files with optional compression, and analyzing code metrics like line counts and function counts. The implementation handles file filtering through .gitignore rules and custom blacklists, while efficiently processing both individual files and entire directories. This server is particularly useful for code review workflows, project analysis, and providing AI assistants with comprehensive context about codebases without requiring them to process each file individually.
Aucun avis encore. Soyez le premier à donner votre avis !
Connectez-vous pour rejoindre la conversation
生成项目文件结构的树状视图,支持多种过滤选项。参数: path (目标目录路径), use_gitignore (是否使用 .gitignore 规则,可选), ignore_git (是否忽略 .git 目录,可选), custom_blacklist (自定义黑名单项目,可选)
将多个文件的内容合并为单一输出,适合准备用于大语言模型的代码分析。参数: path (目标文件或目录路径), compress (是否压缩输出,可选), use_gitignore (是否使用 .gitignore 规则,可选), ignore_git (是否忽略 .git 目录,可选), custom_blacklist (自定义黑名单项目,可选)
分析代码文件并提供统计信息,如行数和函数数量。参数: path (目标文件或目录路径), language (可选的语言过滤器), countLines (是否统计代码行数), countFunctions (是否统计函数数量)