Implement 'Delete file/directory' functionality

The MCP server now supports safe deletion of files and directories from
the Obsidian vault. A required confirmation parameter prevents accidental
deletions.
This commit is contained in:
Nando Thomassen
2025-03-29 22:29:01 +01:00
parent a86a6de1f4
commit 3f22521b01
4 changed files with 63 additions and 0 deletions

View File

@@ -47,6 +47,7 @@ add_tool_handler(tools.GetFileContentsToolHandler())
add_tool_handler(tools.SearchToolHandler())
add_tool_handler(tools.PatchContentToolHandler())
add_tool_handler(tools.AppendContentToolHandler())
add_tool_handler(tools.DeleteFileToolHandler())
add_tool_handler(tools.ComplexSearchToolHandler())
add_tool_handler(tools.BatchGetFileContentsToolHandler())
add_tool_handler(tools.PeriodicNotesToolHandler())