Common issues and fixes for preflight.
Symptoms: ERR_MODULE_NOT_FOUND or Cannot find module when running via npx.
Fix: Preflight requires Node 20+. Check your version:
node --versionIf you're on Node 18 or below, upgrade via nvm:
nvm install 20
nvm use 20Fix: Restart Claude Code completely after adding the MCP server. The tool list is loaded at startup.
If tools still don't appear, verify the server starts without errors:
npx preflight-dev-serveYou should see MCP protocol output (JSON on stdout). If you see errors, check the sections below.
Symptoms: Timeline tools (search_timeline, index_sessions, etc.) fail. Other tools work fine.
Cause: LanceDB uses native binaries that may not be available for your platform, or the database directory has permission issues.
Fixes:
- Make sure
~/.preflight/projects/is writable:mkdir -p ~/.preflight/projects ls -la ~/.preflight/
- If on an unsupported platform, use the minimal or standard profile (no LanceDB required):
npx preflight-dev # Choose "minimal" or "standard" when prompted - Clear corrupted LanceDB data:
Then re-index with
rm -rf ~/.preflight/projects/*/timeline.lance
index_sessions.
Cause: Sessions haven't been indexed yet. Preflight doesn't auto-index — you need to run index_sessions first.
Fix: In Claude Code, run:
index my sessions
Or use the index_sessions tool directly. Indexing reads your ~/.claude/projects/ session files.
Cause: You selected OpenAI embeddings but didn't set the API key.
Fixes:
Option A — Set the environment variable when adding the MCP server:
claude mcp add preflight \
-e OPENAI_API_KEY=sk-... \
-- npx -y preflight-dev-serveOption B — Switch to local embeddings (no API key needed). Create or edit ~/.preflight/config.json:
{
"embedding_provider": "local",
"embedding_model": "Xenova/all-MiniLM-L6-v2"
}Expected. The model (~80MB) downloads on first use and is cached afterward. Subsequent runs are fast.
Cause: YAML syntax error in your project's .preflight/config.yml.
Fix: Validate your YAML:
npx yaml-lint .preflight/config.ymlOr check for common issues: wrong indentation, tabs instead of spaces, missing colons.
Cause: Preflight reads config at MCP server startup, not on every tool call.
Fix: Restart Claude Code after editing .preflight/config.yml or .preflight/triage.yml.
| Profile | Tools | Best for |
|---|---|---|
| minimal | 4 | Try it out, low overhead |
| standard | 16 | Daily use, no vector search needed |
| full | 20 | Power users who want timeline search |
You can change profiles by re-running the setup wizard:
npx preflight-devLanceDB ships prebuilt binaries for Apple Silicon. If npm install fails on the native module:
# Ensure you're using the ARM64 version of Node
node -p process.arch # should print "arm64"
# If it prints "x64", reinstall Node natively (not via Rosetta)chmod -R u+rwX ~/.preflight/- Check open issues — someone may have hit the same problem
- Open a new issue with:
- Your Node version (
node --version) - Your OS and architecture (
uname -a) - The full error message
- Which profile you selected
- Your Node version (