Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| QMD_PORT | No | HTTP server port | 3000 |
| QMD_KB_PATH | No | Knowledge base path inside container | /app/kb |
| MCP_TRANSPORT | No | Transport mode: stdio or http | stdio |
| QMD_CACHE_PATH | No | Cache directory for SQLite DB | /root/.cache/qmd |
| QMD_CHUNK_SIZE | No | Tokens per chunk | 500 |
| QMD_CHUNK_OVERLAP | No | Overlap tokens between chunks | 50 |
| OPENROUTER_API_KEY | Yes | OpenRouter API key for embeddings (required). Get your key at: https://openrouter.ai/keys | |
| QMD_EMBEDDING_MODEL | No | Embedding model to use | openai/text-embedding-3-small |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |