
iceener/files-stdio-mcp-server
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
iceener/files-stdio-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/iceener/files-stdio-mcp-server.
Обзор
iceener/files-stdio-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/iceener/files-stdio-mcp-server.
Обзор (машинный перевод)
Stdio MCP сервер для доступа к файлам в песочнице — чтение файлов, поиск контента, безопасное редактирование с контрольными суммами и управление структурой файлов.
Автор: Overment
** Статус выпуска (2026-07-27): ** это хранилище намеренно зажимает @modelcontextprotocol/server и тестируется только @modelcontextprotocol/client до 2.0.0-beta.5. Эти пакеты реализуют кандидата на релиз 2026-07-28, а не окончательный опубликованный протокол. Перезапускайте ворота окончательного выпуска, прежде чем требовать окончательного соответствия.
Сервер использует общедоступную запись serveStdio с установленным режимом унаследованного serve. SDK выбирает эру протокола от обмена открытия и прикрепляет один экземпляр сервера к этому соединению. Стандартный выход зарезервирован для MCP-кадров; диагностика записывается только на стандартную ошибку.
[!Предупреждение]
Этот сервер обеспечивает доступ файловой системы к агенту ИИ. В то время как это песочница для конкретных каталогов, всегда:
Обзор выходных данных инструмента перед подтверждением изменений
Использование dryRun=true для предварительного просмотра деструктивных операций
- Сохранить резервные копии важных файлов Установите
FS_ROOTSтолько в каталоги, к которым вы хотите получить доступ.
Мотивация
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
Files MCP Server
Stdio MCP server for sandboxed file access — read files, search content, safely edit with checksums, and manage file structure.
Author: overment
Release status (2026-07-27): this repository intentionally pins
@modelcontextprotocol/serverand the test-only@modelcontextprotocol/clientto2.0.0-beta.5. These packages implement the2026-07-28release candidate, not a final published protocol. Re-run the final release gate before claiming final conformance.
The server uses the public serveStdio entry with legacy mode set to serve. The SDK chooses the protocol era from the opening exchange and pins one server instance to that stdio connection. Standard output is reserved for MCP frames; diagnostics are written only to standard error.
[!WARNING] This server provides filesystem access to an AI agent. While it’s sandboxed to specific directories, always:
- Review tool outputs before confirming changes
- Use
dryRun=trueto preview destructive operations- Keep backups of important files
- Set
FS_ROOTSto only the directories you want the agent to access
Motivation
Traditional file operations require precise paths and exact content — things LLMs struggle with. This server is designed so AI agents can:
- Explore first — understand directory structure before acting
- Find by name or content — locate files without knowing exact paths
- Edit safely — checksum verification prevents stale overwrites
- Preview changes — dry-run mode shows diffs before applying
- Recover from errors — hints guide the agent to correct mistakes
The result: an agent that can reliably manage your Obsidian vault, documentation, notes, or any text-based file collection.
Features
- ✅ Directory Exploration — tree view with file counts, sizes, timestamps
- ✅ File Reading — line-numbered content with checksums for safe editing
- ✅ File & Content Search — filename search + literal/regex/fuzzy content search
- ✅ Safe Editing — checksum verification, dry-run preview, unified diffs
- ✅ Structural Operations — delete, rename, move, copy, mkdir, stat
- ✅ Multi-Mount Support — access multiple directories as virtual mount points
- ✅ Sandboxed — cannot access paths outside configured mounts
Design Principles
- Explore before edit: Agent must read a file before modifying it (gets checksum + line numbers)
- Preview before apply:
dryRun=trueshows exactly what would change - Clear feedback: Every response includes hints for next steps and error recovery
- Compact by default: File details (size, modified) only shown when
details=true - Single mount optimization: When one mount is configured,
fs_read(".")shows contents directly
Quick Start
1. Install
cd files-mcp
bun install
2. Configure
Create .env:
# Directories the agent can access (comma-separated)
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →Конфигурация
{
"mcpServers": {
"filesystem": {
"command": "bun",
"args": ["run", "/absolute/path/to/files-mcp/src/index.ts"],
"env": {
"FS_ROOTS": "/Users/you/vault,/Users/you/docs"
}
}
}
}