file-system-tools-mcp

内容来源:README.md(说明文档) · 原始地址 · 查看安装指南

原始内容

MCP-tools

MCP-tools 是一个用于文件和目录操作的 Python 工具集。

功能

  • 删除目录及其内容
  • 统计目录中的 PDF 文件数量
  • 获取文件详细信息
  • 递归列出目录信息

使用方法

from file_tools import remove_directory, count_pdf_files, get_file_info, list_directory_info

# 示例用法
directory_info = list_directory_info("path/to/directory")
pdf_count = count_pdf_files("path/to/directory")
file_info = get_file_info("path/to/file")

安装

克隆仓库后即可使用:

git clone https://github.com/YOUR_USERNAME/MCP-tools.git
cd MCP-tools

贡献

欢迎提交 Pull Requests 来改进工具集。

许可证

MIT License