Troubleshooting

Most of what goes wrong with a local toolchain fails quietly: a dead port in a config file, a settings entry pointing at a command your build does not have, a stale pidfile. savants doctor checks those specifically, names the fix for each, and exits non-zero if any fail.

Run it first

savants doctor

Before filing anything, run this. It is also safe in an install script, because the exit code is meaningful:

savants doctor || echo "install needs attention"

What it actually found
on a real machine

Two failures, from the run that prompted this page being written:

FAIL  mcp-port-listening: .mcp.json: server "savants" sets
      FALKORDB_PORT=16379 and nothing is listening there
      -> remove FALKORDB_PORT from that server's env if it runs in
         cloud mode (the default), or start the service it expects.
         A dead port here surfaces as "Connection refused" and reads
         as a network fault.

FAIL  edition-visible: savants reports "savants 2.23.22", which
      carries no edition
      -> that build predates the edition tag, so its version string
         cannot tell an OSS build from an EE one -- which is how an
         OSS binary got installed over an EE one. Reinstall from a
         build of 2.23.23 or later.

10 checked, 2 failed

Both are the shape of problem this exists for. Neither would announce itself: the first appears later as a connection error that looks like a network outage, and the second is invisible until the wrong binary silently replaces the right one.

The checks

CheckWhat it catches
mcp-port-listening A port in .mcp.json that nothing is bound to. Shows up later as "Connection refused" and gets blamed on the network.
settings-command-resolves A hook or statusline entry in your Claude Code settings pointing at a subcommand this build does not have. The hook silently does nothing.
pidfile-live A pidfile for a process that is gone, which makes the next start think something is already running.
router-config-parses An unparseable or outdated router.json. Reports the schema version so an upgrade mismatch is visible.
edition-visible A binary whose --version carries no edition tag, so OSS and EE builds are indistinguishable and one can overwrite the other.

Common situations

savants: command not found, right after installing

The installer writes to ~/.local/bin, which is not on PATH in a default shell. Check where it landed and whether your shell can see it:

ls -l ~/.local/bin/savants   # did it install?
echo $PATH | tr ':' '
' | grep -c local/bin   # can the shell see it?

# add it for this shell, then make it permanent in your rc file
export PATH="$HOME/.local/bin:$PATH"

If ls shows nothing, the install did not complete — re-run it and read the last few lines rather than the exit code, because a partial download still exits 0.

The MCP server does not appear in Claude Code

savants mcp install writes into Claude Code's own config, and Claude Code reads that config at startup. A running session will not see it. Restart Claude Code, then confirm the entry exists:

savants mcp status

A hook or guard rule does not seem to fire

savants doctor          # settings-command-resolves finds a dead entry
savants guard status    # is the guard active, and how many rules
savants guard why       # which rule fired on the last block

A settings entry pointing at a subcommand your build lacks is the usual cause, and it fails silently by design — a hook that errored on every call would be worse. doctor is how you see it.

Graph commands return nothing, or less than expected

savants up        # index this repo
savants files     # confirm files were indexed

If results look thin rather than absent, read the RESOLUTION line the command prints — it states how many call sites resolved.

Costs look wrong

savants router status   # metered cost and savings, per backend
savants usage           # MCP tool calls -- a different population

These count different things. usage counts MCP tool calls and does not report spend; router status reports metered cost for requests the router proxied. A figure from one will not match the other, and neither is wrong.

An upgrade replaced the wrong build

savants --version       # should end in +oss or +ee

If it does not, the build predates the edition tag. Reinstall, then check again. If you parse this string in automation, strip the +suffix before comparing — it is SemVer build metadata and is excluded from version equality.

If doctor passes and something is still wrong

Then it is a real bug and we want it. Include the output of savants doctor and savants --version, which together rule out the entire class of problem above.

Open an issue →