Merges multiple files into a single file so their contents can be passed to an AI chat in one piece.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
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"
]
}
}
}