# Fedit

> Fedit is an open-source MCP server for developer tools. Command-line tool for surgical, verified edits to files by line, match or block. It is available on CLI, Linux, macOS, Windows and self-hosted.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Linux, macOS, Windows, self-hosted
- **Repository:** https://github.com/amalexico/fedit
- **MCP Registry name:** io.github.kehsiaocuba-ux/fedit
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

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.

## Features

- **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

## 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.

## Alternatives

- [Edit MCP](https://ai-powered.com/mcp/edit-mcp): Edit MCP is an open-source MCP server for developer tools.
- [Octofs](https://ai-powered.com/mcp/octofs): Octofs is an open-source MCP server for developer tools.
- [Filesystem MCP](https://ai-powered.com/mcp/filesystem-mcp): Filesystem MCP is a free MCP server for files and documents.
- [Filesystem](https://ai-powered.com/mcp/filesystem): Filesystem is an open-source MCP server for files and documents.
- [EditorConfig checker (exact rules)](https://ai-powered.com/mcp/editorconfig-checker-exact-rules): EditorConfig checker (exact rules) is an open-source MCP server for developer tools.
- [Efaimo](https://ai-powered.com/mcp/efaimo): Efaimo is an open-source MCP server for developer tools.
- [Rift](https://ai-powered.com/mcp/rift): Rift is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/fedit
