fix(mcp): return explicit JSON-RPC errors instead of misleading Ok strings for missing entities and silent graph modification drops

This commit is contained in:
Riz Ashraf committed 2026-09-26 08:24:56 +01:00
1 parent cc190816fe
commit f81723a539
4 files changed
+27 -9

No files matched your search

+1 -1
View File
@@ -193,7 +193,7 @@ impl McpTool for DeleteSnippetHandler {
drop(idx.delete_document(&req.name));
Ok("Snippet deleted.".to_string())
} else {
Ok("Snippet not found.".to_string())
Err("Snippet not found.".to_string())
}
}
}