# fedit

A Go-based MCP server for precise file changes, including anchored inserts, replacements, deletion, copying, and moves.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed · ★ 11
- Author: amalexico
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/amalexico/fedit
- Updated: 2026-10-19
- HTML: https://affpapa.org/en/nevibecode/mcp/fedit

## What it does

fedit runs targeted file operations from the command line. It can display and search lines, insert text around a match, replace a range, delete content, or move and copy blocks. Locations may be selected with line numbers or text anchors, while `-v` checks each mutation.

The tool is shipped as a dependency-free Go binary and includes structure mapping for multiple languages. It can extract columns from CSV or TSV files and process large logs with `-stream`, reading them line by line and writing through a temporary file. The Go install route requires Go itself, so `go install` will fail until Go is available.

## Install

### Claude Code (native platform)

**Install**
- The MCP registry has no launch command for it: see the repository README

## When to use it
- replace a line range in a configuration file
- insert a block after a matching anchor
- move one function before another block
- extract a column from CSV or TSV data
- rewrite a large log without loading it all

## Example prompts
- Ask the agent to replace lines 30–35 in `server.conf` with `patched-block.txt`, then verify the edit.
- Use fedit to add a rule after `# Custom rules` in `iptables.rules` and run the operation with `-v`.
- Find every `ERROR` line in `huge.log` and change it to `WARN` with `replaceall` and `-stream`.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 392262
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33989
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89609
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81163
- [Front-End Checklist](https://affpapa.org/en/nevibecode/mcp/front-end-checklist.md) — MCP server · ★ 74569
- [Scrapling MCP Server](https://affpapa.org/en/nevibecode/mcp/scrapling-mcp-server.md) — MCP server · ★ 89899

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
