mcp-file-surgeon
v0.1.0
Published
MCP server for surgical file editing operations
Readme
MCP File Surgeon
A Model Context Protocol (MCP) server for performing surgical file editing operations.
Features
- Get file information and metadata
- List directory contents
- Read and write files
- Create and delete files
- Memory-efficient patching of specific lines in files
- Memory-efficient patching of specific character positions in files
Installation
- Clone the repository
- Install dependencies:
npm install - Build the project:
npm run build
Usage
You can run the server directly:
npm startOr use it with Claude by adding it to your Claude configuration:
{
"mcpServers": {
"mcp-file-surgeon": {
"command": "node",
"args": [
"/path/to/mcp-file-surgeon/dist/index.js"
],
"cwd": "/path/to/mcp-file-surgeon"
}
}
}Available Tools
get_file_info: Get metadata about a file without reading its contentslist_directory: List contents of a directoryread_file: Read the contents of a filewrite_file: Write content to a file (replacing existing content)create_file: Create a new file with contentdelete_file: Delete a filepatch_file_lines: Modify specific lines in a filepatch_file_positions: Modify specific character positions in a file
License
MIT
