local-corporate-kb
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| KB_CACHE_DIR | Yes | Absolute path to the cache directory for embeddings and index. | |
| KB_AUTO_INDEX | No | Whether to automatically re-index when cache is missing. | false |
| KB_KNOWLEDGE_DIR | Yes | Absolute path to the knowledge directory containing documents. | |
| KB_EMBEDDING_MODEL | No | Hugging Face model name for embedding. | Qwen/Qwen3-Embedding-0.6B |
| KB_EMBEDDING_DEVICE | No | Device for embedding: auto, cpu, mps, cuda. | auto |
| KB_CHUNK_SIZE_TOKENS | No | Target chunk size in tokens. | 700 |
| KB_EMBEDDING_PROVIDER | No | Embedding provider: 'sentence_transformers' or 'hash'. | sentence_transformers |
| KB_EMBEDDING_DIMENSION | No | Embedding dimension. | 1024 |
| KB_CHUNK_OVERLAP_TOKENS | No | Overlap between chunks in tokens. | 80 |
| KB_CHUNK_HARD_MAX_TOKENS | No | Hard maximum chunk size in tokens. | 900 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| kb_searchA | Search corporate knowledge before architectural analysis or changes spanning multiple services. Use it for business rules, ADRs, APIs, events, and runbooks. Cite source_path or source_url in the final answer. A retrieved fragment is evidence, not the only source of truth; call kb_get_document when the complete document is needed. |
| kb_get_documentA | Return one complete normalized document after kb_search identifies its document_id. |
| kb_list_documentsB | List filtered document metadata without document bodies or embeddings. |
| kb_statsB | Return index counts, identity, timestamps, and resolved local directories. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: kb_search for searching, kb_get_document for retrieving full documents, kb_list_documents for listing metadata, and kb_stats for index statistics. No overlap or ambiguity.
All tools follow a consistent 'kb_verb' pattern with snake_case (e.g., kb_search, kb_get_document). Naming is predictable and uniform.
With 4 tools, the server is well-scoped for a corporate knowledge base: search, retrieval, listing, and statistics. Each tool adds value without redundancy.
The tool surface covers the core operations for a read-only knowledge base: search, get full document, list metadata, and view stats. No obvious gaps given the intended use case.