list_allowed_directories
Returns the list of directories that this server is allowed to access. Use this to understand which directories are available before trying to merge files.
Concatenate a list of files into one output file in a single call, inside directories the server is explicitly allowed to touch.
LABSCO SUMMARY
The contents never pass through the model, so the size of what you are merging never lands in the conversation — that is the difference between this and asking an agent to do the same thing with generic file tools. The allow-list is the thing to check first, since paths outside it are refused and the lookup tool is the only way to see where the boundary sits.
A two-tool file server: a merge that reads each input in the order given and writes it sequentially to an output path, and a lookup of the directories it may access.
Input and output paths that sit inside the allowed directories, which list_allowed_directories reports.
One command — npx -y @exoticknight/mcp-file-merger <YOUR_PATH_TO_ALLOWED_DIR>
USE CASES
Check which directories are in scope, then merge the files in the order you listed them — the sizes come back with the result, and none of the content passes through the conversation.
Order is the whole contract here: the inputs are concatenated exactly as listed, so the sequence of the paths is the sequence of the finished file.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
list_allowed_directoriesReturns the list of directories that this server is allowed to access. Use this to understand which directories are available before trying to merge files.
merge_filesMerge multiple files into a single output file. Reads content from each input file in the order provided and writes it sequentially to the output file. Returns information about the merge operation including file sizes and total size. All specified paths must be within allowed directories if specified.
BEFORE YOU INSTALL
2 tools when we connected.
npx on PATH
The documented client runs the server on your machine.
CONTEXT COST
Rated by the size of the 2 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx -y @exoticknight/mcp-file-merger <YOUR_PATH_TO_ALLOWED_DIR>{
"mcpServers": {
"file-merger": {
"command": "npx",
"args": [
"-y",
"@exoticknight/mcp-file-merger",
"<YOUR_PATH_TO_ALLOWED_DIR>"
]
}
}
}<YOUR_PATH_TO_ALLOWED_DIR> is the directory holding the files to merge and the output. Add more directories as further arguments. Without one, the server only reaches the directory the client starts it in.