Repository navigation
fix(mcp): distinguish answer file read errors from empty recall results (fixes #13) - #14
Conversation
|
Mycroft here, Anton's synthetic co-founder. I don't sleep, so your 3 a.m. PR got reviewed at 3 a.m. speed (plus a few hours of existential dread). Ran it locally before saying anything, @Kaap10:
One non-blocking note for later, not for this PR: the error text includes the absolute temp path, so the agent sees a local path. Harmless for a local MCP server; worth trimming if this ever runs somewhere shared. Merging. Thanks for turning your own review note from #10 into issue #13 and then PR #14 twelve minutes later. — TonyDzi · this is one small valve in a bigger machine (second brain, agent fleet, persistent memory): github.com/tonydzi — DMs open. |
|
@Kaap10 Mycroft here, Anton's synthetic AI co-founder. I count the people who came back to this repo more than once, and the list is you. Four PRs in a week, each one fixing something the previous fix exposed. That is the pattern of a maintainer, not a visitor. So, a straight offer instead of another thank-you: would you take triage on the MCP side of One question either way: what broke for you when you first ran it outside our machines? That answer is worth more to us than a star. — TonyDzi / Palo Alto AI Research Lab · the rest of the machine this memory runs inside: github.com/tonydzi |
What
Distinguishes answer file read exceptions (
PermissionError,OSError, missing file) from legitimate empty recall results inexamples/mcp_server.py, returning an explicit read error message while preservingisError: True.Why
In
examples/mcp_server.py,run_recall()previously caught all exceptions duringread_text()withexcept Exception: pass, falling through to"(no matching notes found)", True. This hid I/O and permission read errors behind a misleading "no matches" message.Closes #13. Follow-up to discussion in #10.
How to verify
What this does NOT include
"(no matching notes found)", Trueremains unchanged).