You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In examples/mcp_server.py → run_recall(), when temp_ans_file.read_text() raises an exception (e.g. file read/permission error or damaged descriptor), the except Exception: block currently catches it with pass and falls through to "(no matching notes found)", True.
While isError: True is correctly set (preventing the agent from trusting anything), an I/O read failure is masked behind a "no matching notes found" message.
Proposed Fix
In run_recall(), capture except Exception as e: and return an explicit error string: return f"Recall error: failed to read answer file: {e}", True
Keep "(no matching notes found)", True strictly for when the answer file was read without errors, but has empty content.
Add a unit test verifying read errors produce distinct error text with isError: True.
Activity
Kaap10 commentedon Sep 17, 2026
claiming this
fix(mcp): distinguish answer file read errors from empty recall resul…