Edit File Lines MCP ServerServer

oakenai
GitHub
file editingTypeScriptdeveloper tools

Loading subscription status...

💡 Description

A TypeScript-based MCP server that provides tools for making precise line-based edits to text files within allowed directories.

📝 JSON Entries

{
  "mcpServers": [
    {
      "edit-file-lines": {
        "env": {
          "MCP_EDIT_STATE_TTL": "300000"
        },
        "args": [
          "/path/to/edit-file-lines/build/index.js",
          "<allowed-directory>"
        ],
        "command": "node"
      }
    }
  ]
}

🛠️ Tools

edit_file_linesapprove_editget_file_linessearch_file

Features

  • Make line-based edits to files using string or regex pattern matching
  • Preview changes with dry-run mode
  • Intelligent whitespace handling

💬 Example Queries

  • Replace all occurrences of 'blue' with 'primary' in the file 'src/components/App.tsx'
  • Update the 'timeout' value in the configuration object in 'src/components/App.tsx'
  • Find and edit JSX component definitions in 'src/components/App.tsx'