semantic-edit-mcp 0.2.0

MCP server for semantic code editing with tree-sitter
semantic-edit-mcp-0.2.0 is not a library.

semantic-edit-mcp

codecov ci crates.io version badge

A Model Context Protocol server for AST-aware code editing

Tools

  preview-edit           Stage an operation and see a preview of the changes
  retarget-edit          Change the targeting of an already-staged operation without rewriting the content
  persist-edit           Execute the currently staged operation
  set-working-directory  Set the working context path for a session

Installation

$ cargo install semantic-edit-mcp

Usage with Claude Desktop or gemini-cli

Add this to your MCP configuration JSON file:

{
  "mcpServers": {
    "edit": {
      "command": "/path/to/semantic-edit-mcp/semantic-edit-mcp",
      "args": ["serve"]
    }
  }
}

License