Edit File Lines MCP Server
Created at 2 months ago
by oakenai
MCP Server to make line-based edits to a file.
Categories
Tags
[]
what is MCP Edit File Lines?
MCP Edit File Lines is a TypeScript-based server that enables users to perform precise line-based edits on text files, facilitating modifications within allowed directories.
how to use MCP Edit File Lines?
To use this server, start it with one or more specified allowed directories. You can then utilize various tools such as edit_file_lines
for making edits, approve_edit
to approve changes, and get_file_lines
to inspect specific lines.
key features of MCP Edit File Lines?
- Line-based text editing with string or regex support
- Preview edits with a dry run feature
- Two-step approval process for safer editing
- Tools for searching files and retrieving specific lines
- Intelligent whitespace handling and pattern matching
use cases of MCP Edit File Lines?
- Making complex modifications to JavaScript or TypeScript files.
- Updating configurations while preserving file structure.
- Searching files for specific components or patterns before editing.
FAQ from MCP Edit File Lines?
- Can I edit files in any directory?
No, the server operations are restricted to specified allowed directories.
- Are there any safety measures in place?
Yes, the server includes security checks, like validating symlinks and limiting operations to allowed paths.
- What happens if I use an invalid state ID?
You will receive an error indicating that the state ID is invalid or expired.
View More