feat(mcp): Add replace_ast_node, semantic_code_search, read_directory_architecture, nvim_send_to_terminal

This commit is contained in:
Riz Ashraf committed 2026-09-30 08:37:26 +01:00
1 parent d4635ab6dc
commit 9787af0f27
5 files changed
+259

No files matched your search

+21
View File
@@ -679,3 +679,24 @@ pub struct ToggleClipboardWatchModeTool {
pub struct ReadFileSkeletonTool {
pub file_path: String,
}
/// Replace a specific AST node in a file (robust structural editing)
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
pub struct ReplaceAstNodeTool {
pub file_path: String,
pub node_type: String, // e.g., "function_item", "impl_item"
pub node_name: String, // e.g., "execute"
pub new_content: String,
}
/// Semantic code search using local vector embeddings
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
pub struct SemanticCodeSearchTool {
pub query: String,
pub directory: Option<String>,
}
/// Get a bird's-eye view of directory architecture
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
pub struct ReadDirectoryArchitectureTool {
pub directory: String,
}