NTS_MCP_FS
Transactional File System server for Model Context Protocol (MCP). Enterprise-grade tools for AI agents: atomic edits, undo/redo, code navigation, refactoring, git integration. Docker ready.
claude mcp add --transport stdio nefrols-nts_mcp_fs docker run -i nefrols/nts_mcp_fs:latest
How to use
NTS_MCP_FS is an enterprise-grade MCP File System server that turns standard file operations into a transactional, optimistic-locked environment for AI agents. It provides line-accurate access control via Line Access Tokens (LATs), a persistent Heads-Up Display (HUD) in tool responses, programmable atomic batches for multi-file scripting, and a built-in persistence layer (H2 database) to survive restarts. Tools exposed by the server include a suite of nts_* utilities such as nts_file_manage for file operations, nts_edit_file for diff-driven edits, nts_batch_tools for atomic scripting, and nts_code_refactor for semantic changes across projects. The server supports safe multi-step edits with diffs returned in responses, making it ideal for long-running AI agent sessions that require precise state management and rollback capabilities. To interact with the server, you issue MCP commands that the server translates into transactional file-system actions, observe the HUD in each response, and leverage programmable batches to chain operations atomically.
How to install
Prerequisites:
- Docker installed and running, or a Java-enabled environment if you opt for non-Docker deployment.
- Optional: git, curl, and a Java install if building from source.
Recommended deployment method (Docker):
- Ensure Docker is installed and running.
- Pull and run the MCP server container (as shown in the README): docker pull nefrols/nts_mcp_fs:latest docker run -i nefrols/nts_mcp_fs:latest
Alternative (Java-based build from source):
- Prerequisites: JDK 17+ and Maven or Gradle.
- Clone the repository: git clone https://github.com/yourorg/nts_mcp_fs.git cd nts_mcp_fs
- Build the project (example with Maven): mvn -q -DskipTests package
- Run the built JAR (example): java -jar target/nts-mcp-fs-jar-with-dependencies.jar
Prerequisites recap:
- Docker or Java runtime (JDK 17+)
- Git for cloning repositories
- Maven/Gradle for building from source (if not using Docker)
Note: The README indicates Docker readiness. If you use Docker, the recommended command is to pull and run nefrols/nts_mcp_fs:latest as described above.
Additional notes
Tips and common issues:
- If LATs fail to appear or tokens expire, ensure the file being edited has not been altered outside of the expected workflow, as LATs enforce optimistic locking.
- Use nts_batch_tools to perform multi-step operations atomically; if any step fails, the entire batch rolls back.
- The HUD in responses provides task context, progress, and safety stats to help you manage long AI agent sessions.
- When running in Docker, consider mounting a persistent volume for the H2 database to survive container restarts, e.g., -v /path/to/data:/data.
- Settings like JAVA_OPTS and NTS_MCP_FS_LOG_LEVEL can help tune performance and observability in production.
- For debugging, enable DEBUG level logging and review container logs to diagnose issues with file operations or token validation.
Related MCP Servers
bytechef
Open-source, AI-native, low-code platform for API orchestration, workflow automation, and AI agent integration across internal systems and SaaS products.
RelaMind
基于 AI 的个人成长轨迹分析系统,通过记录生活、回顾历史、分析模式帮助用户更好地理解自己,实现持续成长。包含智能路由、RAG 检索、自主任务智能体等功能。
cortex-scout
An advanced web extraction and meta-search engine for AI agents. It features native parallel searching, Human-in-the-Loop (HITL) authentication fallback, and LLM-optimized data synthesis for deep web research.
n8n-workflows
⚡ Explore 2,053 n8n workflows with a fast, user-friendly documentation system for instant search and analysis capabilities.
mcp-ai-agent
AI Agent built with Google ADK that leverages Google Maps MCP Server to answer real-world location questions with tool usage and traceable execution via Opik.
mcp-json-yaml-toml
A structured data reader and writer like 'jq' and 'yq' for AI Agents