Fedit
Command-line tool for surgical, verified edits to files by line, match or block
- Pricing
- Open source
- Platforms
- CLI, Linux, macOS
- Version
- 1.12.0
- Listing updated
- today
Similar MCP servers
About Fedit
Fedit is an open-source MCP server for developer tools. It is available on CLI, Linux, macOS, Windows and self-hosted.
The README describes fedit as a single-binary Go command-line tool for making precise edits to files: inserting, replacing, moving, copying and deleting lines or named blocks without opening an interactive editor. Anchors can be line numbers, substring matches or language-aware block names for Go, Terraform and several other languages.
Each mutating operation can be checked with a verification flag, and replaceall re-reads the written file from disk to report PASS or FAIL. A dry-run mode prints a unified diff without writing anything, and an optional audit log can record operations.
The README targets sysadmins, DevOps engineers and people who script configuration changes. The MCP registry entry describes the same tool as a server for AI clients, but the listed transports and packages are not specified.
What it does
- Line and match anchors
- Targets lines by number, range or substring, with occurrence selection via -nth.
- Verified replaceall
- Re-reads the file after a global replace and reports PASS or FAIL with exit codes.
- Dry-run diffs
- Previews a change as a unified diff and writes nothing when -dry is used.
- Block-aware moves and copies
- Moves, copies or replaces named functions and blocks in supported languages, including Terraform and Nix.
- Structure mapping
- Lists functions, sections, keys and duplicates for many file formats before editing.
- Streaming large files
- Processes very large files line by line for replace and find operations.
Good for
- Changing a value in a server or application config from a deploy script
- Moving or duplicating Terraform resource blocks without line numbers
- Bulk-updating a version string across several files with a checked result
- Previewing an edit with a diff before applying it in automation
Pricing
Open source
Free to use; the README links Ko-fi and Open Collective donation pages.
Fedit FAQ
How is fedit installed?
The README recommends go install github.com/amalexico/fedit@latest, or downloading a binary from GitHub Releases.
Does fedit have external dependencies?
The README describes it as a zero-dependency, pure Go binary.
Does a dry run change any files?
No. With -dry it prints a diff and writes nothing.
Is Fedit free?
Yes. Fedit is open source, so you can use and self-host it for free.
What are the best alternatives to Fedit?
The closest alternatives to Fedit are Edit MCP, Octofs, Filesystem MCP, Filesystem and EditorConfig checker (exact rules).
Where this comes from
- Description: written from the project's README and its MCP Registry entry.