This guide helps you resolve common issues encountered while setting up or using Konteks.
Konteks memory is not initialized
The `.konteks` directory or `config.json` is missing in your project root.Run
konteks initto initialize the project.
MCP Tool timeout or connection error
The server crashed, timed out scanning a massive project, was launched through a slow package runner, or the direct `konteks-cli` command cannot find Node.js on your `PATH`.
- Install globally: Run
bun add -g konteks-cli(Bun users) ornpm install -g konteks-cli(Node users).- Configure your MCP client:
- Bun: Use
"command": "bunx"and"args": ["--bun", "konteks-cli", "mcp"].- Node: Use
"command": "konteks-cli"and"args": ["mcp"].- Check memory freshness: Run
bunx --bun konteks-cli status(Bun) orkonteks-cli status(Node).- Verify runtime: Ensure you are using Bun 1.3+ or Node 22.13+. If configuring MCP with the direct
konteks-clicommand, Node must be on yourPATH.- Check logs: Inspect
.konteks/errors.logfor internal errors, and check your AI agent's logs for connection issues.
Konteks MCP tool failed due to an internal error
An unexpected internal error occurred. Detailed stack traces are hidden from MCP clients by default to prevent leaking internal context.Open
.konteks/errors.login your project root to view the timestamp, surface, metadata, and full stack trace for diagnosis. The log is local and redacted best-effort, but should be treated as diagnostic data.
Recall returns a 'weak' or 'partial' quality signal
Konteks could not find strong, direct implementation matches for your query.
- Refine your task: Be specific and name the exact file or module.
- Rebuild the index: Run
konteks rebuildto scan recent changes and rebuild the Derived Memory.- Check ignore rules: Verify the target files aren't being excluded by
.gitignoreor.konteksignore.
Durable memory is missing after a rebuild
You are either in the wrong project root, or the `.konteks/memory.sqlite` file was manually deleted. Running a rebuild only resets derived data (sections, entities); it does not touch durable data (like diary entries or observations).Verify your current directory. If the file was deleted, restore
.konteks/memory.sqlitefrom a backup.
Secrets or sensitive data appear in recall
Konteks indexed an unignored file containing sensitive information.
- Immediately add the file to
.gitignoreor.konteksignore.- Have your MCP agent call
konteks_forgetwith the targeted query and appropriate forget mode.- Run
konteks rebuildto completely wipe the stale index.