Agent♥︎Age
Catalog

io.github.rog0x/file

Official

by rog0x · TypeScript

Dir tree, file stats, duplicates, LOC for AI agents

io.github.rog0x/file (MCP File Tools)

This MCP server provides file and directory analysis tools for AI agents. It enables Claude and other MCP-compatible AI to explore, analyze, and search file systems. The server exposes tools for generating directory trees, collecting file statistics, detecting duplicates, and counting lines of code by language.

🛠️ Key Features

  • dir_tree: Generate a visual directory tree with configurable depth and ignore patterns
  • file_stats: Analyze a directory (total files, size by extension, largest/newest/oldest files)
  • duplicate_finder: Detect duplicate files using size + MD5 hash; report wasted space
  • code_counter: Count lines of code by language

🚀 Use Cases

  • Inspect project structure with dir_tree
  • Summarize repository contents with file_stats
  • Identify redundant files with duplicate_finder
  • Estimate codebase size by language using code_counter

⚡ Developer Benefits

  • Tooling is focused on directory analysis workflows for AI agents
  • Supports common filesystem exploration and reporting tasks

⚠️ Limitations

  • Limited to tools listed in the server excerpt (no other capabilities described)

Topics

ai-agentsclaudedeveloper-toolsdirectoryfilesmcpmodel-context-protocoltypescriptai-toolsmcp-server