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.
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
A curated list of references for MLOps

DeepMark helps teachers deliver rapid, consistent marking with meaningful feedback for every student — in a fraction of the time. What once took a week, now takes one free period.

Yuppsy MCP: build and publish real estate websites from your AI assistant. Yuppsy lets your AI assistant create live websites for real estate agents and individual property listings. You don't need a designer or any code

A free remote MCP server for The Living Bread. Bible passages read word for word from a stored public domain text with an evidence label, keyword search and cross references, real churches, gatherings and prayer groups w
Comments