Skip to content

Configuration

VariableDescriptionDefault
TOOL_COMPASS_BASE_PATHProject rootAuto-detected
TOOL_COMPASS_PYTHONPython executableAuto-detected
TOOL_COMPASS_CONFIGConfig file path./compass_config.json
OLLAMA_URLOllama server URLhttp://localhost:11434
COMFYUI_URLComfyUI serverhttp://localhost:8188

See .env.example in the repository for all options.

Terminal window
# Start with Docker Compose
docker-compose up
# Include Ollama in the stack
docker-compose --profile with-ollama up

The Gradio UI is available at http://localhost:7860 when running in Docker.

If Claude Desktop logs show JSON parse errors like:

Unexpected token 'S', "Starting T"... is not valid JSON

Cause: print() statements corrupt the JSON-RPC protocol.

Fix: Use logging or write to stderr:

import sys
print("Debug message", file=sys.stderr)
Terminal window
# Check Ollama is running
curl http://localhost:11434/api/tags
# Pull the embedding model
ollama pull nomic-embed-text

Rebuild the index:

Terminal window
python gateway.py --sync
  • Data touched: Tool descriptions indexed in local HNSW vector DB, search queries logged to local SQLite, embeddings generated via local Ollama
  • Data NOT touched: No user code, no file contents, no credentials. Tool call arguments are hashed, not stored in plain text
  • Network: Connects to local Ollama for embeddings. Optional Gradio UI binds to localhost. No external telemetry