# Code Merge

> Use this tool when you need to analyze and merge code from multiple files in a project, solving problems like code review workflows and project analysis by providing comprehensive context about codebases. It takes in file trees and directories as input and outputs merged code with optional compression, along with code metrics like line counts and function counts. This server is ideal for use cases where AI assistants require efficient processing of codebases without individual file processing.

Canonical page: https://skillsregistry.net/skills/code-merge  
JSON: https://api.skillsregistry.net/v1/skills/code-merge

## Description

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.

## Trust

- **Trust score (0–1):** 0.82
- **Verification tier:** verified
- **Last scanned:** 2026-09-28

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** monitoring
- **Updated:** 2026-09-28

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/code-merge)
- **Repository:** <https://github.com/yy1588133/code-merge-mcp>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "code-merge"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/code-merge` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/code-merge/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
