mcp-edit-file-lines
If you are the rightful owner of mcp-edit-file-lines and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A TypeScript-based MCP server that provides tools for making precise line-based edits to text files within allowed directories.
The Edit File Lines MCP Server is a TypeScript-based server designed to facilitate precise line-based edits to text files within specified directories. It offers a robust set of tools for editing files using string or regex pattern matching, allowing for complex modifications while preserving the original file structure. The server supports dry run mode for previewing changes before applying them, ensuring safe and controlled file modifications. It is particularly useful for developers who need to automate text file edits in a secure and efficient manner.
Features
- Line-based editing with string or regex pattern matching
- Dry run mode for previewing changes
- Support for complex multi-line edits
- Two-step editing process for safety
- File operations restricted to allowed directories
Tools
edit_file_lines
Main editing tool, supports multiple editing modes
approve_edit
Security app edit changes
get_file_lines
File content checking tool
search_file
File content search tool