Handbook
Welcome to the Tool Compass handbook.
What’s inside
Section titled “What’s inside”The handbook is organized by what you need to do, following the Diátaxis framework.
Tutorials — learn by doing
Section titled “Tutorials — learn by doing”- Beginners — First-time setup walkthrough and core concepts
- Getting Started — Install, build the index, run the gateway (plus the new
tool-compassCLI subcommands)
How-To Guides — accomplish a specific task
Section titled “How-To Guides — accomplish a specific task”- Operations —
/ready,/metrics, trace IDs, graceful Ollama-offline behavior in production
Reference — propositional facts
Section titled “Reference — propositional facts”- Tools — All 9 gateway MCP tools in detail (compass, describe, execute, status, audit, sync, analytics, chains, categories)
- Configuration — Environment variables, Docker, and the
compass_config.jsonschema
Explanation — understand the design
Section titled “Explanation — understand the design”- Architecture — How semantic search works under the hood (with Mermaid diagrams)
What’s new in v2.3
Section titled “What’s new in v2.3”npx @mcptoolshop/tool-compass— zero-prerequisite install. SHA256-verified binaries downloaded on first run, cached locally. No Python toolchain required.- 6 new CLI subcommands —
tool-compass ui,status,categories,audit,analytics,chainsmirror the MCP surface for terminal users. All support--json. - RFC 9457 error envelope — every error includes
code,category,retryable, and (where applicable)nearest_tools[]suggestions. Backward-compatible: the legacyerror: <str>field stays alongside. - OTel
gen_ai.*metrics — circuit-breaker transitions, fallback invocations, HNSW search latency histogram, embedder inflight, queue wait. Plusdegraded: trueflag on responses served from lexical fallback. - Rich-powered CLI —
--jsoneverywhere, NO_COLOR/--no-colorhonored, progress spinners ondoctor+sync, actionable error messages with hints. - Golden-set Recall@k benchmark — frozen 38-query regression test running on every commit. Detects retrieval-quality drift before users do.
What changed in v2.2
Section titled “What changed in v2.2”tool-compassCLI shell —search,describe,sync,doctor,servesubcommands. Default (no args) still launches the MCP server.- Graceful Ollama-offline —
compass()falls back to keyword search over the SQLite index, marks resultsdegraded: true, and tells you what to start. - Trace IDs — every MCP call returns an 8-char
trace_idthreaded through logs + responses for grepable bug reports. /ready+/metrics— deep readiness probe and Prometheus-format metrics for Fly.io / Kubernetes / any operator dashboard.- Embedding cache — re-sync no longer re-embeds tool descriptions that haven’t changed.
- Multi-arch Docker — linux/amd64 and linux/arm64 from the same GHCR tag.
Full list in CHANGELOG.