Merges multiple files into a single file so their contents can be passed to an AI chat in one piece.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add file-merger -- npx -y @exoticknight/mcp-file-merger /path/to/allowed/dir~/.codex/config.toml
[mcp_servers.file-merger]
command = "npx"
args = ["-y", "@exoticknight/mcp-file-merger", "/path/to/allowed/dir"]
# codex mcp add file-merger -- npx -y @exoticknight/mcp-file-merger /path/to/allowed/dir~/.cursor/mcp.json
{
"mcpServers": {
"file-merger": {
"command": "npx",
"args": [
"-y",
"@exoticknight/mcp-file-merger",
"/path/to/allowed/dir"
]
}
}
}.vscode/mcp.json
{
"servers": {
"file-merger": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@exoticknight/mcp-file-merger",
"/path/to/allowed/dir"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"file-merger": {
"command": "npx",
"args": [
"-y",
"@exoticknight/mcp-file-merger",
"/path/to/allowed/dir"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"file-merger": {
"command": "npx",
"args": [
"-y",
"@exoticknight/mcp-file-merger",
"/path/to/allowed/dir"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"file-merger": {
"command": "npx",
"args": [
"-y",
"@exoticknight/mcp-file-merger",
"/path/to/allowed/dir"
]
}
}
}