Skip to main content
Glama

semantic-edit-mcp

by jbr
main.rs877 B
#![allow(clippy::collapsible_if)] #![deny(dead_code)] mod editor; mod indentation; mod languages; mod searcher; mod selector; mod state; mod tools; mod validation; #[cfg(test)] mod tests; use mcplease::server_info; use state::SemanticEditTools; use std::env; use tools::Tools; const INSTRUCTIONS: &str = r#"Use preview_edit to preview changes, retarget_edit to adjust targeting, and persist_edit to apply. The purpose of the preview/retarget/persist pattern is so you can review a diff and adjust placement prior to persisting your change to disk. "#; fn main() { let mut state = SemanticEditTools::new( env::var("MCP_SESSION_STORAGE_PATH") .ok() .as_deref() .or(Some("~/.ai-tools/sessions/semantic-edit.json")), ) .unwrap(); mcplease::run::<Tools, _>(&mut state, server_info!(), Some(INSTRUCTIONS)).unwrap() }

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