What does the `edit_file_lines` tool do?
It edits specific line ranges in a file by replacing matched strings or regex patterns, with optional dry run to preview changes.
@oakenai
Basic information
MCP Server to make line-based edits to a file.
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-edit-file-lines": {
"command": "node",
"args": [
"build/index.js",
"<allowed-directory>",
"[additional-directories...]"
]
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
A TypeScript-based MCP server that provides tools for making precise, line-based edits to text files within allowed directories, using string or regex pattern matching.
The server provides tools (edit_file_lines, approve_edit, get_file_lines, search_file) that can be invoked from any MCP client. Edits can be previewed with a dry run, then applied by providing the returned state ID to approve_edit.
edit_file_linesIt edits specific line ranges in a file by replacing matched strings or regex patterns, with optional dry run to preview changes.
Call the `approve_edit` tool with the state ID returned by `edit_file_lines` to commit the modifications.
State IDs expire after a short time; attempting to use an expired or invalid ID returns an error.
Only files within allowed directories configured for the server; the README mentions "allowed directories" but does not specify how they are set.
You can use `get_file_lines` to inspect specific lines with context, and `search_file` to find lines matching text or regex patterns across the file.
Painless E2E Automation for Mobile and Web
Senso MCP turns a Joomla 5 or 6 site into a remote MCP server. It runs inside Joomla itself (no extra server, no Node.js bridge) and is secured with OAuth 2.1 and Joomla's own ACL. The free pack lets an AI assistant crea

Model Context Protocol Servers
A search tool helps dev to solve the naming things problem.
YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Comments