semantic-edit-mcp
by jbr
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
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"]
}
}
}License
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jbr/semantic-edit-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server