feat(server): allow Ollama custom via OLLAMA_HOST env var

Update README to specify pulling the `qwen3-embedding:0.6b` model and document the optional `OLLAMA_HOST` environment variable. Adjust server code to import `EMBEDDING_MODEL`, use it for Ollama embeddings, and pass `process.env.OLLAMA_HOST` as the base URL.
This commit is contained in:
2026-04-14 17:48:13 +05:30
parent 011d850e65
commit 96d8f9047b
2 changed files with 9 additions and 3 deletions
+5 -1
View File
@@ -12,7 +12,11 @@ MCP server for exploring the ECMAScript specification and its implementation in
## Prerequisites
- **Bun**: Version 1.0.0 or higher ([install](https://bun.sh/docs/installation))
- **Ollama**: Installed locally with an embedding model (e.g., `qwen3-embedding:0.6b`)
- **Ollama**: Installed locally with `qwen3-embedding:0.6b` model pulled (`ollama pull qwen3-embedding:0.6b`)
### Environment Variables
- `OLLAMA_HOST` (optional): Ollama server URL. Defaults to `http://localhost:11434`
## Installation