@mhalder/qdrant-mcp-server 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +68 -0
  3. package/build/index.js +581 -517
  4. package/build/index.js.map +1 -1
  5. package/build/prompts/index.d.ts +7 -0
  6. package/build/prompts/index.d.ts.map +1 -0
  7. package/build/prompts/index.js +7 -0
  8. package/build/prompts/index.js.map +1 -0
  9. package/build/prompts/index.test.d.ts +2 -0
  10. package/build/prompts/index.test.d.ts.map +1 -0
  11. package/build/prompts/index.test.js +25 -0
  12. package/build/prompts/index.test.js.map +1 -0
  13. package/build/prompts/loader.d.ts +25 -0
  14. package/build/prompts/loader.d.ts.map +1 -0
  15. package/build/prompts/loader.js +81 -0
  16. package/build/prompts/loader.js.map +1 -0
  17. package/build/prompts/loader.test.d.ts +2 -0
  18. package/build/prompts/loader.test.d.ts.map +1 -0
  19. package/build/prompts/loader.test.js +417 -0
  20. package/build/prompts/loader.test.js.map +1 -0
  21. package/build/prompts/template.d.ts +20 -0
  22. package/build/prompts/template.d.ts.map +1 -0
  23. package/build/prompts/template.js +52 -0
  24. package/build/prompts/template.js.map +1 -0
  25. package/build/prompts/template.test.d.ts +2 -0
  26. package/build/prompts/template.test.d.ts.map +1 -0
  27. package/build/prompts/template.test.js +163 -0
  28. package/build/prompts/template.test.js.map +1 -0
  29. package/build/prompts/types.d.ts +34 -0
  30. package/build/prompts/types.d.ts.map +1 -0
  31. package/build/prompts/types.js +5 -0
  32. package/build/prompts/types.js.map +1 -0
  33. package/package.json +1 -1
  34. package/prompts.example.json +96 -0
  35. package/src/index.ts +639 -547
  36. package/src/prompts/index.test.ts +29 -0
  37. package/src/prompts/index.ts +7 -0
  38. package/src/prompts/loader.test.ts +494 -0
  39. package/src/prompts/loader.ts +90 -0
  40. package/src/prompts/template.test.ts +212 -0
  41. package/src/prompts/template.ts +69 -0
  42. package/src/prompts/types.ts +37 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## 1.4.0 (2025-10-13)
2
+
3
+ * Merge pull request #29 from mhalder/feature/configurable-prompts ([f9652b1](https://github.com/mhalder/qdrant-mcp-server/commit/f9652b1)), closes [#29](https://github.com/mhalder/qdrant-mcp-server/issues/29)
4
+ * feat: add support for configurable MCP prompts ([e3cc6c2](https://github.com/mhalder/qdrant-mcp-server/commit/e3cc6c2)), closes [#28](https://github.com/mhalder/qdrant-mcp-server/issues/28)
5
+ * feat: set default prompts.json path with auto-loading ([203694a](https://github.com/mhalder/qdrant-mcp-server/commit/203694a))
6
+ * test: add comprehensive tests for prompts feature ([bb9ca66](https://github.com/mhalder/qdrant-mcp-server/commit/bb9ca66))
7
+
8
+ ## <small>1.3.1 (2025-10-12)</small>
9
+
10
+ * Merge pull request #27 from mhalder/fix/empty-responses ([30d33a7](https://github.com/mhalder/qdrant-mcp-server/commit/30d33a7)), closes [#27](https://github.com/mhalder/qdrant-mcp-server/issues/27)
11
+ * fix: improve HTTP transport robustness and prevent resource leaks ([cff1248](https://github.com/mhalder/qdrant-mcp-server/commit/cff1248)), closes [#26](https://github.com/mhalder/qdrant-mcp-server/issues/26)
12
+
1
13
  ## 1.3.0 (2025-10-11)
2
14
 
3
15
  * Merge pull request #25 from mhalder/feature/http-transport ([efc90c3](https://github.com/mhalder/qdrant-mcp-server/commit/efc90c3)), closes [#25](https://github.com/mhalder/qdrant-mcp-server/issues/25)
package/README.md CHANGED
@@ -12,6 +12,7 @@ A Model Context Protocol (MCP) server providing semantic search capabilities usi
12
12
  - **Multiple Providers**: Ollama (default), OpenAI, Cohere, and Voyage AI
13
13
  - **Hybrid Search**: Combine semantic and keyword search for better results
14
14
  - **Semantic Search**: Natural language search with metadata filtering
15
+ - **Configurable Prompts**: Create custom prompts for guided workflows without code changes
15
16
  - **Rate Limiting**: Intelligent throttling with exponential backoff
16
17
  - **Full CRUD**: Create, search, and manage collections and documents
17
18
  - **Flexible Deployment**: Run locally (stdio) or as a remote HTTP server
@@ -128,6 +129,72 @@ See [Advanced Configuration](#advanced-configuration) section below for all opti
128
129
  - `qdrant://collections` - List all collections
129
130
  - `qdrant://collection/{name}` - Collection details
130
131
 
132
+ ## Configurable Prompts
133
+
134
+ Create custom prompts tailored to your specific use cases without modifying code. Prompts provide guided workflows for common tasks.
135
+
136
+ **Note**: By default, the server looks for `prompts.json` in the project root directory. If the file exists, prompts are automatically loaded. You can specify a custom path using the `PROMPTS_CONFIG_FILE` environment variable.
137
+
138
+ ### Setup
139
+
140
+ 1. **Create a prompts configuration file** (e.g., `prompts.json` in the project root):
141
+
142
+ See [`prompts.example.json`](prompts.example.json) for example configurations you can copy and customize.
143
+
144
+ 2. **Configure the server** (optional - only needed for custom path):
145
+
146
+ If you place `prompts.json` in the project root, no additional configuration is needed. To use a custom path:
147
+
148
+ ```json
149
+ {
150
+ "mcpServers": {
151
+ "qdrant": {
152
+ "command": "node",
153
+ "args": ["/path/to/qdrant-mcp-server/build/index.js"],
154
+ "env": {
155
+ "QDRANT_URL": "http://localhost:6333",
156
+ "PROMPTS_CONFIG_FILE": "/custom/path/to/prompts.json"
157
+ }
158
+ }
159
+ }
160
+ }
161
+ ```
162
+
163
+ 3. **Use prompts** in your AI assistant:
164
+
165
+ **Claude Code:**
166
+
167
+ ```bash
168
+ /mcp__qdrant__find_similar_docs papers "neural networks" 10
169
+ ```
170
+
171
+ **VSCode:**
172
+
173
+ ```bash
174
+ /mcp.qdrant.find_similar_docs papers "neural networks" 10
175
+ ```
176
+
177
+ ### Example Prompts
178
+
179
+ See [`prompts.example.json`](prompts.example.json) for ready-to-use prompts including:
180
+
181
+ - `find_similar_docs` - Semantic search with result explanation
182
+ - `setup_rag_collection` - Create RAG-optimized collections
183
+ - `analyze_collection` - Collection insights and recommendations
184
+ - `bulk_add_documents` - Guided bulk document insertion
185
+ - `search_with_filter` - Metadata filtering assistance
186
+ - `compare_search_methods` - Semantic vs hybrid search comparison
187
+ - `collection_maintenance` - Maintenance and cleanup workflows
188
+ - `migrate_to_hybrid` - Collection migration guide
189
+
190
+ ### Template Syntax
191
+
192
+ Templates use `{{variable}}` placeholders:
193
+
194
+ - Required arguments must be provided
195
+ - Optional arguments use defaults if not specified
196
+ - Unknown variables are left as-is in the output
197
+
131
198
  ## Examples
132
199
 
133
200
  See [examples/](examples/) directory for detailed guides:
@@ -147,6 +214,7 @@ See [examples/](examples/) directory for detailed guides:
147
214
  | `HTTP_PORT` | Port for HTTP transport | 3000 |
148
215
  | `EMBEDDING_PROVIDER` | "ollama", "openai", "cohere", "voyage" | ollama |
149
216
  | `QDRANT_URL` | Qdrant server URL | http://localhost:6333 |
217
+ | `PROMPTS_CONFIG_FILE` | Path to prompts configuration JSON | prompts.json |
150
218
  | `EMBEDDING_MODEL` | Model name | Provider-specific |
151
219
  | `EMBEDDING_BASE_URL` | Custom API URL | Provider-specific |
152
220
  | `EMBEDDING_MAX_REQUESTS_PER_MINUTE` | Rate limit | Provider-specific |