MCP server providing file tools for LLMs and coding agents to quickly get project context
SaferSkills independently audited File Tools Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
An MCP (Model Context Protocol) server that provides file and directory tools for LLMs, with built-in support for respecting .gitignore patterns.
.gitignore patterns uv run mcp install main.py --name "File Tools" uv syncuv run mcp dev main.pyThis opens the MCP Inspector for debugging and testing.
uv run python main.pyRuns the server in stdio mode, waiting for MCP client connections.
uv run python test_client.pyRuns a test client to verify server functionality.
Generates a tree view of a directory structure while respecting .gitignore patterns.
Parameters:
path (str, optional): Directory path to analyze (default: current working directory)max_depth (int, optional): Maximum depth to traverse (default: None for unlimited)show_hidden (bool, optional): Include hidden files and directories (default: False)Example:
# Get structure of current directory
result = await session.call_tool("project_structure", {})
# Get structure with depth limit
result = await session.call_tool("project_structure", {
"path": "/path/to/project",
"max_depth": 3
})
# Include hidden files
result = await session.call_tool("project_structure", {
"show_hidden": True
})Reads multiple files and returns their contents in a single response.
Parameters:
paths (list[str], required): List of file paths to readFeatures:
Example:
# Read multiple files
result = await session.call_tool("read_multiple_files", {
"paths": [
"src/main.py",
"config.json",
"README.md"
]
})Provides comprehensive project information in one request:
Detailed git repository status:
Lists all project dependencies:
Finds all configuration files:
Shows recently modified files:
Complete project context in one request:
When using the MCP Inspector or other MCP clients, you may need to configure root paths to allow the server to access your project directories. This is a security feature that prevents unauthorized file access.
In the MCP Inspector:
/home/user/projects/my-projectWithout proper root paths configured, you may see "File not found" errors even for files that exist.
When deploying this server:
MIT
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.