EM

exoticknight/mcp-file-merger

API 开发

本页由 AI 翻译,技术细节请以原文为准。 查看原文

28 stars 13 forks 质量 69 趋势 4Apache-2.0

用于合并多个文件的MCP服务器

概览

简单的工具,可以将多个文件合并为一个。快速、安全且易于使用。 - - 用一个命令合并任意数量的文件 - - 高效合并任意大小的文件 - - 仅访问你允许的目录 - - 报告文件大小并合并摘要 - - 输入:- inputPaths (string[]): 合并文件 - outputPath (字符串): 输出文件位置 - 返回: - 带合并详情的成功消息 - - 列出服务器可访问的目录

概述(AI 翻译)

简单的工具,可以将多个文件合并为一个。快速、安全且易于使用。

特色

  • Simple - 用一个命令合并任意数量的文件
  • 快速 - 高效组合任意大小的文件
  • Secure - 仅访问你允许的目录
  • 详细 - 报告文件大小和合并摘要

API

工具

  • merge_files

  • 输入:

  • inputPaths (字符串[]):合并文件

  • outputPath(字符串):输出文件位置

  • 退货:

  • 成功信息及合并详情

  • list_allowed_directories

  • 列出服务器可访问的目录

使用 Claude Desktop

添加你的claude_desktop_config.json:

安装

许可证

Apache 许可证 2.0

本页由 AI 翻译,技术细节请以原文为准。

README

File Merger MCP Server

Simple utility to combine multiple files into one. Fast, secure, and easy to use.

Features

  • Simple - Merge any number of files with a single command
  • Fast - Efficiently combines files of any size
  • Secure - Only accesses directories you allow
  • Detailed - Reports file sizes and merge summary

API

Tools

  • merge_files

    • Inputs:
      • inputPaths (string[]): Files to merge
      • outputPath (string): Output file location
    • Returns:
      • Success message with merge details
  • list_allowed_directories

    • Lists directories the server can access

Usage with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "file-merger": {
      "command": "npx",
      "args": [
        "-y",
        "@exoticknight/mcp-file-merger",
        "/path/to/allowed/dir"
      ]
    }
  }
}

Installation

# Clone and install
git clone https://github.com/exoticknight/mcp-file-merger.git
cd mcp-file-merger
npm install
npm run build

License

Apache License 2.0

在 GitHub 查看完整 README

安装

npx -y @exoticknight/mcp-file-merger /path/to/allowed/dir
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "file-merger": { "command": "npx", "args": [ "-y", "@exoticknight/mcp-file-merger", "/path/to/allowed/dir" ] } } }