viberag 0.1.7 → 0.2.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.
package/README.md CHANGED
@@ -115,14 +115,10 @@ The wizard can auto-configure project-level configs and merge into global config
115
115
 
116
116
  ### Manual Setup Instructions
117
117
 
118
- The following sections describe manual MCP server setup configurations for various editors, and agent CLI commands if applicable.
119
-
120
- #### Project-Specific Configs
121
-
122
- These editors use per-project config files that VibeRAG can auto-create.
118
+ The following sections describe manual MCP server setup configurations for various editors and agents.
123
119
 
124
120
  <details>
125
- <summary><strong>Claude Code</strong> — <code>.mcp.json</code></summary>
121
+ <summary><strong>Claude Code</strong></summary>
126
122
 
127
123
  **CLI Command:**
128
124
 
@@ -130,7 +126,7 @@ These editors use per-project config files that VibeRAG can auto-create.
130
126
  claude mcp add viberag -- npx viberag-mcp
131
127
  ```
132
128
 
133
- **Manual Setup:**
129
+ **Global Config:** `~/.claude.json`
134
130
 
135
131
  ```json
136
132
  {
@@ -143,16 +139,7 @@ claude mcp add viberag -- npx viberag-mcp
143
139
  }
144
140
  ```
145
141
 
146
- **Verify:** Run `/mcp` in Claude Code, look for "viberag: connected"
147
-
148
- [Documentation](https://docs.anthropic.com/en/docs/claude-code/mcp)
149
-
150
- </details>
151
-
152
- <details>
153
- <summary><strong>Cursor</strong> — <code>.cursor/mcp.json</code></summary>
154
-
155
- **Manual Setup:**
142
+ **Project Config:** `.mcp.json`
156
143
 
157
144
  ```json
158
145
  {
@@ -165,16 +152,16 @@ claude mcp add viberag -- npx viberag-mcp
165
152
  }
166
153
  ```
167
154
 
168
- **Verify:** Settings Cursor Settings → MCP, verify "viberag" shows with toggle enabled
155
+ **Verify:** Run `/mcp` in Claude Code, look for "viberag: connected"
169
156
 
170
- [Documentation](https://docs.cursor.com/context/model-context-protocol)
157
+ [Documentation](https://docs.anthropic.com/en/docs/claude-code/mcp)
171
158
 
172
159
  </details>
173
160
 
174
161
  <details>
175
- <summary><strong>Roo Code</strong> — <code>.roo/mcp.json</code></summary>
162
+ <summary><strong>Cursor</strong></summary>
176
163
 
177
- **Manual Setup:**
164
+ **Global Config:** `~/.cursor/mcp.json`
178
165
 
179
166
  ```json
180
167
  {
@@ -187,20 +174,11 @@ claude mcp add viberag -- npx viberag-mcp
187
174
  }
188
175
  ```
189
176
 
190
- **Verify:** Click MCP icon in Roo Code pane header, verify "viberag" appears in server list
191
-
192
- [Documentation](https://docs.roocode.com/features/mcp/using-mcp-in-roo)
193
-
194
- </details>
195
-
196
- <details>
197
- <summary><strong>VS Code Copilot</strong> — <code>.vscode/mcp.json</code></summary>
198
-
199
- **Manual Setup:**
177
+ **Project Config:** `.cursor/mcp.json`
200
178
 
201
179
  ```json
202
180
  {
203
- "servers": {
181
+ "mcpServers": {
204
182
  "viberag": {
205
183
  "command": "npx",
206
184
  "args": ["viberag-mcp"]
@@ -209,22 +187,14 @@ claude mcp add viberag -- npx viberag-mcp
209
187
  }
210
188
  ```
211
189
 
212
- > **Note:** VS Code uses `"servers"` instead of `"mcpServers"`
213
-
214
- **Verify:** Cmd/Ctrl+Shift+P → "MCP: List Servers", verify "viberag" appears
190
+ **Verify:** Settings Cursor Settings → MCP, verify "viberag" shows with toggle enabled
215
191
 
216
- [Documentation](https://code.visualstudio.com/docs/copilot/chat/mcp-servers)
192
+ [Documentation](https://docs.cursor.com/context/model-context-protocol)
217
193
 
218
194
  </details>
219
195
 
220
- ---
221
-
222
- ### Global Configs
223
-
224
- These editors use global config files. VibeRAG can merge into existing configs.
225
-
226
196
  <details>
227
- <summary><strong>Gemini CLI</strong> — <code>~/.gemini/settings.json</code></summary>
197
+ <summary><strong>Gemini CLI</strong></summary>
228
198
 
229
199
  **CLI Command:**
230
200
 
@@ -232,7 +202,20 @@ These editors use global config files. VibeRAG can merge into existing configs.
232
202
  gemini mcp add viberag -- npx viberag-mcp
233
203
  ```
234
204
 
235
- **Manual Setup:** Add to your existing settings.json:
205
+ **Global Config:** `~/.gemini/settings.json`
206
+
207
+ ```json
208
+ {
209
+ "mcpServers": {
210
+ "viberag": {
211
+ "command": "npx",
212
+ "args": ["viberag-mcp"]
213
+ }
214
+ }
215
+ }
216
+ ```
217
+
218
+ **Project Config:** `.gemini/settings.json`
236
219
 
237
220
  ```json
238
221
  {
@@ -252,22 +235,41 @@ gemini mcp add viberag -- npx viberag-mcp
252
235
  </details>
253
236
 
254
237
  <details>
255
- <summary><strong>OpenAI Codex</strong> — <code>~/.codex/config.toml</code></summary>
238
+ <summary><strong>JetBrains IDEs</strong></summary>
239
+
240
+ **UI Setup:**
241
+
242
+ 1. Open Settings → Tools → AI Assistant → MCP
243
+ 2. Click "Add Server"
244
+ 3. Set name: `viberag`
245
+ 4. Set command: `npx`
246
+ 5. Set args: `viberag-mcp`
247
+
248
+ **Verify:** Settings → Tools → AI Assistant → MCP, verify "viberag" shows green in Status column
249
+
250
+ [Documentation](https://www.jetbrains.com/help/ai-assistant/mcp.html)
251
+
252
+ </details>
253
+
254
+ <details>
255
+ <summary><strong>OpenAI Codex</strong></summary>
256
256
 
257
257
  **CLI Command:**
258
258
 
259
259
  ```bash
260
- codex mcp add viberag -- npx viberag-mcp
260
+ codex mcp add viberag -- npx -y viberag-mcp
261
261
  ```
262
262
 
263
- **Manual Setup:** Add to your config.toml:
263
+ **Global Config:** `~/.codex/config.toml`
264
264
 
265
265
  ```toml
266
266
  [mcp_servers.viberag]
267
267
  command = "npx"
268
- args = ["viberag-mcp"]
268
+ args = ["-y", "viberag-mcp"]
269
269
  ```
270
270
 
271
+ > **Note:** The `-y` flag is required for npx to auto-confirm package installation
272
+
271
273
  **Verify:** Run `/mcp` in Codex TUI, look for "viberag" in server list
272
274
 
273
275
  [Documentation](https://codex.openai.com/docs/tools/mcp-servers)
@@ -275,11 +277,22 @@ args = ["viberag-mcp"]
275
277
  </details>
276
278
 
277
279
  <details>
278
- <summary><strong>OpenCode</strong> — <code>~/.config/opencode/opencode.json</code></summary>
280
+ <summary><strong>OpenCode</strong></summary>
281
+
282
+ **Global Config:** `~/.config/opencode/opencode.json` (Linux/macOS) or `%APPDATA%/opencode/opencode.json` (Windows)
279
283
 
280
- **Config:** `~/.config/opencode/opencode.json` (Linux/macOS) or `%APPDATA%/opencode/opencode.json` (Windows)
284
+ ```json
285
+ {
286
+ "mcp": {
287
+ "viberag": {
288
+ "type": "local",
289
+ "command": ["npx", "-y", "viberag-mcp"]
290
+ }
291
+ }
292
+ }
293
+ ```
281
294
 
282
- **Manual Setup:** Add to your existing opencode.json:
295
+ **Project Config:** `opencode.json`
283
296
 
284
297
  ```json
285
298
  {
@@ -301,9 +314,11 @@ args = ["viberag-mcp"]
301
314
  </details>
302
315
 
303
316
  <details>
304
- <summary><strong>Windsurf</strong> — <code>~/.codeium/windsurf/mcp_config.json</code></summary>
317
+ <summary><strong>Roo Code</strong></summary>
318
+
319
+ **Global Config:** UI only — Click MCP icon in Roo Code pane header → Edit Global MCP
305
320
 
306
- **Manual Setup:** Merge into your existing mcp_config.json:
321
+ **Project Config:** `.roo/mcp.json`
307
322
 
308
323
  ```json
309
324
  {
@@ -316,22 +331,35 @@ args = ["viberag-mcp"]
316
331
  }
317
332
  ```
318
333
 
319
- **Verify:** Click Plugins icon in Cascade panel, verify "viberag" shows in plugin list
334
+ **Verify:** Click MCP icon in Roo Code pane header, verify "viberag" appears in server list
320
335
 
321
- [Documentation](https://docs.windsurf.com/windsurf/cascade/mcp)
336
+ [Documentation](https://docs.roocode.com/features/mcp/using-mcp-in-roo)
322
337
 
323
338
  </details>
324
339
 
325
340
  <details>
326
- <summary><strong>Zed</strong> <code>~/Library/Application Support/Zed/settings.json</code></summary>
341
+ <summary><strong>VS Code Copilot</strong></summary>
327
342
 
328
- **Config:** `~/Library/Application Support/Zed/settings.json` (macOS) or `~/.config/zed/settings.json` (Linux)
343
+ **Global Config:** Add to User `settings.json` under `mcp.servers`:
329
344
 
330
- **Manual Setup:** Merge into your existing settings.json:
345
+ ```json
346
+ {
347
+ "mcp": {
348
+ "servers": {
349
+ "viberag": {
350
+ "command": "npx",
351
+ "args": ["viberag-mcp"]
352
+ }
353
+ }
354
+ }
355
+ }
356
+ ```
357
+
358
+ **Project Config:** `.vscode/mcp.json`
331
359
 
332
360
  ```json
333
361
  {
334
- "context_servers": {
362
+ "servers": {
335
363
  "viberag": {
336
364
  "command": "npx",
337
365
  "args": ["viberag-mcp"]
@@ -340,37 +368,83 @@ args = ["viberag-mcp"]
340
368
  }
341
369
  ```
342
370
 
343
- > **Note:** Zed uses `"context_servers"` instead of `"mcpServers"`
371
+ > **Note:** VS Code uses `"servers"` instead of `"mcpServers"`
344
372
 
345
- **Verify:** Open Agent Panel settings, verify "viberag" shows green indicator
373
+ > **Required:** Enable Agent Mode in VS Code settings:
374
+ >
375
+ > - Settings → search `chat.agent.enabled` → check the box, OR
376
+ > - Add `"chat.agent.enabled": true` to your User `settings.json`
346
377
 
347
- [Documentation](https://zed.dev/docs/ai/mcp)
378
+ **Verify:** Cmd/Ctrl+Shift+P → "MCP: List Servers", verify "viberag" appears
379
+
380
+ [Documentation](https://code.visualstudio.com/docs/copilot/chat/mcp-servers)
348
381
 
349
382
  </details>
350
383
 
351
- ---
384
+ <details>
385
+ <summary><strong>Windsurf</strong></summary>
386
+
387
+ **Global Config:** `~/.codeium/windsurf/mcp_config.json`
388
+
389
+ ```json
390
+ {
391
+ "mcpServers": {
392
+ "viberag": {
393
+ "command": "npx",
394
+ "args": ["viberag-mcp"]
395
+ }
396
+ }
397
+ }
398
+ ```
399
+
400
+ **Verify:** Click Plugins icon in Cascade panel, verify "viberag" shows in plugin list
352
401
 
353
- ### UI-Based Setup
402
+ [Documentation](https://docs.windsurf.com/windsurf/cascade/mcp)
403
+
404
+ </details>
354
405
 
355
406
  <details>
356
- <summary><strong>JetBrains IDEs</strong> — Settings UI</summary>
407
+ <summary><strong>Zed</strong></summary>
357
408
 
358
- **Manual Setup:**
409
+ **Global Config:** `~/.config/zed/settings.json`
359
410
 
360
- 1. Open Settings → Tools → AI Assistant → MCP
361
- 2. Click "Add Server"
362
- 3. Set name: `viberag`
363
- 4. Set command: `npx`
364
- 5. Set args: `viberag-mcp`
411
+ ```json
412
+ {
413
+ "context_servers": {
414
+ "viberag": {
415
+ "source": "custom",
416
+ "command": "npx",
417
+ "args": ["viberag-mcp"]
418
+ }
419
+ }
420
+ }
421
+ ```
365
422
 
366
- **Verify:** Settings → Tools → AI Assistant → MCP, verify "viberag" shows green in Status column
423
+ **Project Config:** `.zed/settings.json`
367
424
 
368
- [Documentation](https://www.jetbrains.com/help/ai-assistant/mcp.html)
425
+ ```json
426
+ {
427
+ "context_servers": {
428
+ "viberag": {
429
+ "source": "custom",
430
+ "command": "npx",
431
+ "args": ["viberag-mcp"]
432
+ }
433
+ }
434
+ }
435
+ ```
436
+
437
+ > **Note:** Zed uses `"context_servers"` instead of `"mcpServers"` and requires `"source": "custom"` for non-extension servers
438
+
439
+ **Verify:** Open Agent Panel settings, verify "viberag" shows green indicator
440
+
441
+ [Documentation](https://zed.dev/docs/ai/mcp)
369
442
 
370
443
  </details>
371
444
 
445
+ ---
372
446
 
373
- ### Exposed MCP Tools
447
+ ## Exposed MCP Tools
374
448
 
375
449
  | Tool | Description |
376
450
  | -------------------------- | ---------------------------------------------------- |
@@ -472,7 +546,6 @@ Check the file watcher for auto-indexing.
472
546
  - Pending changes count
473
547
  - Last update timestamp
474
548
 
475
-
476
549
  ## CLI Commands
477
550
 
478
551
  VibeRAG includes a CLI for easy execution of initialization, indexing, setup, and other things you may want to manually control outside of agent use.
@@ -0,0 +1,10 @@
1
+ /**
2
+ * MCP Setup Comprehensive Integration Tests
3
+ *
4
+ * Tests for all editors covering:
5
+ * - Creating config files (project and global where applicable)
6
+ * - Updating/merging existing config files
7
+ * - Removing viberag from config files
8
+ * - JSONC handling (comments in config files)
9
+ */
10
+ export {};