Troubleshooting
Start at the failed step. Each fix ends with the command or guide section to retry.
1. Environment and Installation
Section titled “1. Environment and Installation”Python is too old or missing
Section titled “Python is too old or missing”python --versionmemtomem requires Python 3.12 or later. On Windows, try py --version. Install or select a supported Python before retrying Quick Start → Install and Initialize.
uv: command not found
Section titled “uv: command not found”Install uv from its official installation guide, reopen the terminal, and verify:
uv --versionmm: command not found / mms: command not found
Section titled “mm: command not found / mms: command not found”The executable directory may not be on PATH. Run the command for your installer and reopen the terminal:
uv tool update-shellFor pipx, use pipx ensurepath. Then retry mm --version or mms --version.
mm --version prints an old version
Section titled “mm --version prints an old version”uv tool install 'memtomem[all]' --refreshmm --version2. Initialization
Section titled “2. Initialization”The setup wizard is unclear or a model download fails
Section titled “The setup wizard is unclear or a model download fails”Return to a deterministic no-download baseline:
mm init --preset minimal --non-interactive --mcp skipmm statusMinimal is BM25-only and does not download an embedding model. Add English (Recommended) or Korean-optimized semantic search only after this path works.
Configuration or database is not created
Section titled “Configuration or database is not created”Run mm status and read the configuration and database paths it reports. Confirm the current user can write to the parent directory and that ~/.memtomem/ is not owned by another account. Retry initialization; do not delete the directory or database as a first recovery step.
3. LTM Write and Search
Section titled “3. LTM Write and Search”What mm status should show
Section titled “What mm status should show”Healthy output includes storage and database paths, an embedding provider, and index counts. Zero chunks are normal before the first add or index.
mm statusmm status --jsonmm add cannot write
Section titled “mm add cannot write”- Read the database and memory paths from
mm status. - Confirm the current user owns and can write to those directories.
- Retry with a short, non-sensitive sentence.
- If a project-local tier is involved, run from the intended Git project root.
Return to Quick Start → Verify a Memory Round Trip.
mm search returns no results
Section titled “mm search returns no results”- Confirm
mm statusshows at least one chunk after add or index. - With Minimal preset, search words that appear exactly in the saved source.
- If a namespace was used, pass the same namespace or use the agent-specific search flow.
- For external files, confirm the returned source count changed after
mm indexor import.
mm search "EXACT_WORDS_FROM_THE_SOURCE"See Index and Import Existing Content for source and repeat-run checks. If MCP by-id chunk edits or deletes (mem_edit, mem_delete, or mem_do edit/delete) or the Web UI chunk routes return source_unmanaged, the chunk came from an explicit-path indexed file outside indexing.memory_dirs (MEMTOMEM_INDEXING__MEMORY_DIRS), registered project tiers, and ~/.memtomem/uploads; edit or remove that external file directly and re-index instead.
4. Plugin and MCP Connection
Section titled “4. Plugin and MCP Connection”The client does not support plugin commands
Section titled “The client does not support plugin commands”Claude Code and Codex have the official plugin paths documented on this site. Other clients may not recognize /plugin or codex plugin; use their MCP-only configuration from Connect an AI Client instead.
The agent cannot see memtomem tools
Section titled “The agent cannot see memtomem tools”- A manual MCP-only entry must use
memtomem-server;memtomemandmmare CLIs. An official plugin may use its own pinned launch command. - Restart the client or open a new session after changing configuration.
- In a Claude Code session, run
/mcp; in Codex, runcodex mcp list. In OpenCode, inspect the exactmcp.memtomemkey. - Ask the client to call
mem_statusexplicitly.
Claude automation does nothing after a plugin update
Section titled “Claude automation does nothing after a plugin update”The optional automation plugin runs its hooks only when mm --version reports exactly the Core release it was reviewed with, and updating the plugins does not upgrade the CLI. Upgrade it, confirm the version, then start a new Claude Code session:
mm upgrade --version 0.7.13mm --versionEach skipped hook is logged to ~/.claude/memtomem-automation/hook.log, or to $CLAUDE_PLUGIN_DATA/hook.log when Claude Code sets that variable. The hooks also need uv on the PATH Claude Code runs them with.
A GUI client cannot find memtomem-server
Section titled “A GUI client cannot find memtomem-server”GUI apps may start with a different PATH from the terminal. Find the installed executable:
command -v memtomem-serverUse that absolute path as the configured command, then fully restart the app. On Windows, use where memtomem-server.
MCP servers or tools appear twice
Section titled “MCP servers or tools appear twice”This duplicates MCP server namespaces and tools, not necessarily the plugin’s slash commands or skills. Resolve it according to the client:
- Claude Code: run
/mcp. The plugin signature isuvx --python 3.12 --from memtomem[onnx]==0.7.13 memtomem-server; an exact manual match runs one server, while a different command runs bothmcp__memtomem__mem_*andmcp__plugin_memtomem_memtomem__mem_*. Keep the plugin withclaude mcp remove memtomem, or keep the manual server with/plugin uninstall memtomem@memtomem. You can also retain the plugin commands by giving the manual entry the exact plugin signature. - Codex: run
codex mcp list.[mcp_servers.memtomem]takes precedence over the plugin and runs one server. A different name such as[mcp_servers.memtomem-local]runs both; rename it tomemtomemor remove it to use the plugin server. - OpenCode: keep the manual entry at the exact
mcp.memtomemkey, or remove it to use the plugin server. A different key such asmcp."memtomem-local"runs both. - Antigravity CLI: the plugin’s server is named
memtomem_memtomem, so a hand-registeredmemtomementry always runs beside it. Remove the manual entry withagy mcp remove memtomem, or keep it and suppress the plugin’s server withmm doctor --mcp-client agy --reconcile keep-manual --apply.
A manual entry you keep is the server the plugin’s commands and skills talk to, and it wins with its own environment. For the plugin’s update workflow outside topic mode it needs MEMTOMEM_EXTRA_TOOLS=mem_update_coverage, as the manual registrations show; without it, update stops before writing whenever a coverage call is due.
For Claude Code, Codex and the Antigravity CLI, mm doctor --mcp-client claude (or codex, agy) reports whether a manual registration and the plugin would start two servers. --reconcile keep-manual or keep-plugin previews a repair and --apply makes it, keeping a backup of the edited file. See mm doctor.
Start a new session after changing the registration. See Connect an AI Client for the complete coexistence choices.
Two clients return different memories
Section titled “Two clients return different memories”Call mem_status in both clients and compare database paths. Project-local memory also requires the same project root and scope. Matching package versions alone does not make different databases share content.
5. Web UI
Section titled “5. Web UI”The browser does not open or the page is unavailable
Section titled “The browser does not open or the page is unavailable”mm web --openmm web statusThe default server binds to loopback. Background Web UI logs are in ~/.memtomem/logs/web.log. Do not bind it to a public interface without the controls described in Operations & API.
6. STM Proxy
Section titled “6. STM Proxy”The proxy does nothing
Section titled “The proxy does nothing”mms statusmms healthmms doctormms add or mms init must have enabled the proxy and added an upstream. mms doctor exits 0 when there are no FAIL checks; WARNs are allowed. After upgrading memtomem-stm to 0.7.8 or later, refresh existing registrations so <python> -m memtomem_stm entries include -P (mms register --client json --replace-registration, mms register --client claude --replace-registration, mms register --client codex --replace-registration, --config <path> for custom config files, "-P" before "-m" in hand-written entries and upstream_servers.demo.args), and stop older daemons (mms daemon stop --all on macOS/Linux; Task Manager on Windows). Startup and mms daemon also fail fast if otlp.endpoint matches a sensitive credential pattern, even when otlp.enabled=false.
Proxied tools go missing (64-character limit)
Section titled “Proxied tools go missing (64-character limit)”The final client name may be mcp__<server>__<prefix>__<tool>. If it exceeds 64 characters, the tool can be withheld. Use a shorter STM server name and upstream --prefix, then run mms health --names and confirm it no longer reports the composed name. Separately, an upstream tool whose name falls outside the MCP tool-name grammar ([A-Za-z0-9._-], 1–128 characters) is not proxied at any length, and mms health reports how many; that name has to change on the upstream server. Under exposure.profile=strict, tools whose metadata matches credential patterns (including tokens directly adjacent to Hangul, kana, Han, or accented Latin letters; email addresses do not withhold tools) are also withheld as sensitive_metadata and listed in stm_admin(action="proxy_health").
mms stats --source mcp stays empty
Section titled “mms stats --source mcp stays empty”The client probably used a built-in tool instead of an STM MCP alias. Ask it to call the visible <prefix>__<tool> name explicitly and check stats again.
Surfacing is not firing
Section titled “Surfacing is not firing”mms health must report the optional LTM link as connected and the LTM server must expose mem_search. If only LTM is unavailable, proxying, compression, and caching can still work.
If the link is connected but a call still injects nothing, check four filters added in 0.7.7 and 0.7.8:
- Repository scope: by default, a Claude Code built-in tool call (
mms hook) with no pinned namespace searches only the namespaces of the repository that holds itscwd, plusdefault. This applies only when Claude Code has a project directory for that repository; otherwise the call searches every namespace. - Excluded namespaces: by default, retrieved results from
claude-plansandcodexare not injected, on hook or proxied calls. Pinned Context is exempt. - Short queries: a built-in tool call whose query has fewer than
min_query_tokenstokens (ormax(1, min_query_tokens - 1)for path-only native hook queries such as a bareReadin 0.7.8+) is skipped instead of searched. - Sensitive queries (
sensitive_query): in 0.7.8+, if the query (or raw arguments/template when derived from them) matches a credential or email pattern, surfacing stops before LTM and delivers nothing, including Pinned Context.
Scoping by Repository and Namespace shows how to turn the first two off.
Restore the original MCP registration
Section titled “Restore the original MCP registration”Preview first:
mms eject SERVER_NAME --dry-runmms eject SERVER_NAMESee Add STM to an MCP Server for verification before and after restoration.
7. Logs and Files
Section titled “7. Logs and Files”- LTM and STM MCP logs go to stderr by default and are captured or discarded by the launching client.
- Set
MEMTOMEM_LOG_LEVELto adjust LTM verbosity. - Set
MEMTOMEM_STM_LOG_FILEto opt into an STM rotating file log. - Background Web UI logs live at
~/.memtomem/logs/web.log.
For the default database and configuration paths, see File locations.
For every released setting, see LTM Environment Variables and STM Environment Variables.