Knolo MCP Troubleshooting: What Each Error Code Means
Knolo MCP errors print as CODE: message. What IMAGE_INVALID, ACCESS_DENIED, AUDIT_UNAVAILABLE and the other codes mean, and how to fix config and pin issues.
Knolo is the open-source, local-first Knowledge Image runtime and format from Hive AI: Apache-2.0, published on npm as @knolo/core. The Knolo MCP server, @knolo/mcp, mounts pinned Knowledge Images into agent hosts such as Claude Desktop, Claude Code, Cursor and the other MCP clients covered on this blog. When a Knolo MCP server does not start, or a tool call fails, the error tells you exactly which check stopped it. This post walks through those errors, using the troubleshooting section of the Knolo MCP README in the Knolo core repository on GitHub.
How Knolo MCP reports an error
Every Knolo MCP error prints as CODE: message. There are two places it can show up:
- At startup. The error goes to stderr as
knolo-mcp: CODE: messageand the process exits with status 1 before MCP starts. Your host will usually just say the server is "not connected". - During a tool call. The error comes back as the tool result, so the agent sees it in the conversation.
If a host lists the server as failed, run the configured command by hand to see stderr:
npx -y @knolo/mcp@0.2.4 --config /absolute/knolo-mcp.json
A working Knolo MCP server prints knolo-mcp: serving stdio and waits on stdin. Stop it with Ctrl+C.
Knolo MCP config path errors
Most first-run problems come from the config path:
QUERY_INVALID: Set --config or KNOLO_MCP_CONFIG to an absolute config path.Neither the flag nor the variable is set.QUERY_INVALID: Knolo MCP config path must be absolute.JSON client config blocks do not expand~or relative paths, so write the full path.IMAGE_UNAVAILABLE: Could not read Knolo MCP config: ...The file is missing or not readable by the user the client runs as.IMAGE_INVALID: Knolo MCP config is invalid: ...The message names the field, for example a relativeauditDiror a malformedsha256.
Two host-specific notes from the README: in Claude Desktop, check that claude_desktop_config.json is valid JSON and restart the app after every change. claude mcp add uses local scope by default, so the server only appears in the directory where you added it; add --scope user to see it everywhere.
The seven Knolo MCP error codes
| Code | What it means |
|---|---|
IMAGE_INVALID |
Invalid config, the image does not match its sha256 or stateRoot pin, or the policy file cannot be read or its root does not match |
IMAGE_UNAVAILABLE |
The config or image file cannot be read, or the requested image is not mounted |
ACCESS_DENIED |
The agentId is not in the mount's agents list, or the policy denies the mount's principal |
AUDIT_UNAVAILABLE |
auditDir is not writable, so no hits are returned |
STATE_ROOT_MISMATCH |
The image is no longer mounted at the requested or recorded state root |
NOT_FOUND |
The requested object or receipt does not exist |
QUERY_INVALID |
Invalid command-line or tool arguments |
Two of these are worth reading closely, because they are Knolo doing its job rather than something being broken.
IMAGE_INVALID on a pin mismatch. A Knolo mount is pinned to a digest and a state root. If the file on disk changes, Knolo refuses to serve it instead of quietly answering from different bytes. The fix is deliberate: hash the image, run knolo verify again as shown in the package's llms-install.md, then update sha256 and stateRoot in the config. See the Knolo CLI docs for knolo verify.
AUDIT_UNAVAILABLE. If you configured an audit directory and Knolo cannot write to it, it returns no hits at all. An answer without its audit record is not served.
What changed recently in the Knolo repository
The README's troubleshooting section was tightened in late November: PR #233 documents that an unreadable policy file maps to IMAGE_INVALID, and PR #244 aligned the error-code table. A separate fix merged to main on 25 Nov (PR #236) lets the server read a config file saved with a UTF-8 byte order mark, which some Windows editors add. That fix is in the repository; npm still lists @knolo/mcp 0.2.4, so pin the version you have tested.
One boundary to keep in mind: Knolo verification checks integrity. It does not decide that a claim or an answer is true.
Next steps with Knolo
- Set up a Knolo MCP server from the Knolo MCP docs on knolo.dev.
- Read how Knolo specifications and KIPs are governed on knolo.org, the Knolo open-technology site.
- Browse the source, open an issue or star Knolo on GitHub.
knolo · mcp · troubleshooting · knowledge-images · open-source