Self-audit of a memory MCP server found models could read other users' memories

Technical_Bench_188 · reddit · 2026-08-27

While auditing his own memory MCP server, the developer found that although agent identity was pinned via an env var, the recall tool's schema still exposed a user parameter — passing {"user": "alice"} would return alice's private memories.

The fix: both user and agent identity are now injected via environment variables, with no identity parameter in any tool schema; leaving OMEMUSER unset makes user-scoped memory completely invisible, as a safe default.

Other design points:

Original post →

More from coding & agent

coding & agent channel →