Documentation Index
Fetch the complete documentation index at: https://docs.gdilabs.io/llms.txt
Use this file to discover all available pages before exploring further.
Tools
| Tool | Purpose |
|---|---|
kb_search(query, top_k?, scope_prefix?) | Semantic search; returns chunks with kh-id citations. |
kb_fetch(kh_id) | Full document content + frontmatter for a stable kh-id. |
kb_list_scope(prefix?) | List nodes under a scope prefix; omit for the full tree. |
kb_node(kh_id) | Single node plus 1-hop neighbours (related, derived_from). |
Configuration
| Variable | Required | Default | Notes |
|---|---|---|---|
MOTHER_AI_URL | yes | — | Cerebrum Mother AI endpoint. |
MOTHER_AI_API_KEY | depends | — | Required when Mother AI has it set. |
KB_MCP_ACTOR | no | mcp:local | Per-client identifier in audit rows. |
KB_MCP_TIMEOUT_S | no | 20 | Upstream HTTP timeout. |
KB_MCP_LOG_LEVEL | no | INFO | stderr only; stdout is reserved for the MCP wire. |
Install
claude_desktop_config.json, or via Claude Code:
Invariants
- stdout is reserved for the MCP wire protocol. All logs and diagnostics go to stderr. Polluting stdout breaks the client.
- The server is stateless beyond its HTTP client. Audit rows, search index, and tier rules all live in Mother AI / Qdrant / Postgres.
- Errors from Mother AI (auth, rate limit, tier-denied) flow through unchanged so the client can surface them to the user.