Provides AST-aware code editing operations for Rust files, including syntax validation, node targeting, and structural editing while maintaining syntax integrity.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@semantic-edit-mcppreview-edit add error handling to the fetch function in api.js"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
semantic-edit-mcp
A Model Context Protocol server for AST-aware code editing
Supported Languages and Important Language Notes
Rust
Must have
rustfmtavailable on thePATHCurrently assumes edition 2024 for formatting, eventually this will be determined from context
Python
Must have
ruffavailable on thePATH
JavaScript/TypeScript/JSON/JSX/TSX
Must have
biomeavailable on thePATH
TOML
No external dependencies, taplo formatting included
Plaintext / markdown / default editor
No external dependencies
Related MCP server: linkedmcp
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 sessionInstallation
$ cargo install semantic-edit-mcpUsage 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"]
}
}
}