A Model Context Protocol server for AST-aware code editing
- Rust
- Must have
rustfmt
available on thePATH
- Currently assumes edition 2024 for formatting, eventually this will be determined from context
- Must have
- Python
- Must have
ruff
available on thePATH
- Must have
- JavaScript/TypeScript/JSON/JSX/TSX
- Must have
biome
available on thePATH
- Must have
- TOML
- No external dependencies, taplo formatting included
- Plaintext / markdown / default editor
- No external dependencies
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
$ cargo install semantic-edit-mcp
Add this to your MCP configuration JSON file:
{
"mcpServers": {
"edit": {
"command": "/path/to/semantic-edit-mcp/semantic-edit-mcp",
"args": ["serve"]
}
}
}
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.