SmallEdit
Streamlines file modifications by providing efficient, targeted editing capabilities using common command-line tools like `sed` and `awk`.
概要
SmallEdit is a Model Context Protocol (MCP) server designed to optimize file editing workflows. Instead of performing inefficient full file replacements for minor changes, it offers specialized tools for targeted edits using stream editors like `sed` and `awk`. This approach saves computational resources by focusing only on what needs to change, reduces the risk of introducing errors, enables bulk operations across multiple files, and provides essential preview capabilities to ensure accuracy before applying modifications. It's ideal for tasks like fixing typos, updating version numbers, or changing configuration values.
主な機能
- Line-number specific content modification, insertion, or deletion.
- Advanced file data processing and extraction using AWK scripts.
- Bulk `sed` operations to apply patterns across multiple files based on name or directory.
- Simple find and replace functionality without requiring regular expressions.
- Targeted `sed` editing for single files using regex patterns.
- 0 GitHub stars
ユースケース
- Automating version number updates in project configuration files.
- Globally updating import paths or variable names across a codebase.
- Removing or commenting out debug code from multiple source files.