mcp-edit-file-lines

mcp-edit-file-lines

3.5

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

  1. edit_file_lines

    Main editing tool, supports multiple editing modes

  2. approve_edit

    Security app edit changes

  3. get_file_lines

    File content checking tool

  4. search_file

    File content search tool