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
@@ -297,7 +297,7 @@ impl McpTool for ResolveTechDebtHandler {
if found {
Ok("Tech debt resolved".to_string())
} else {
Ok("Tech debt not found".to_string())
Err("Tech debt not found".to_string())
}
}
}