own-rag-cli 0.0.9-snapshot → 0.0.11-snapshot
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 +22 -1
- package/bin/indexer_full.py +471 -200
- package/bin/mcp_server.py +90 -21
- package/bin/rag-remove.sh +0 -21
- package/bin/rag-wrapper.sh +60 -3
- package/chroma_monitor.sh +63 -28
- package/package.json +1 -1
- package/rag-setup-macos.run +50 -21
- package/rag-setup.run +50 -21
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# MCP binary checksum (SHA-256, payload without shebang): `
|
|
1
|
+
# MCP binary checksum (SHA-256, payload without shebang): `286e52abcbc295893b501fc8aae092420c452a4d3a4242e25c88e646398190b6`
|
|
2
2
|
|
|
3
3
|
# own-rag
|
|
4
4
|
|
|
@@ -31,6 +31,7 @@ Immediate MCP targets are Claude Code and Cursor, but the server can be used by
|
|
|
31
31
|
```bash
|
|
32
32
|
npm install -g own-rag-cli
|
|
33
33
|
rag run /path/to/your/project
|
|
34
|
+
rag run /path/to/your/project ".js,.py,.md,.java"
|
|
34
35
|
```
|
|
35
36
|
|
|
36
37
|
If you run `rag run` without a path, it asks whether to use the current directory.
|
|
@@ -55,12 +56,22 @@ chmod +x rag-setup-macos.run
|
|
|
55
56
|
|
|
56
57
|
```bash
|
|
57
58
|
rag run /path/to/project # full setup + indexing
|
|
59
|
+
rag run /path/to/project ".js,.py,.md,.java" # indexa só essas extensões
|
|
60
|
+
rag run /path/to/project --skip-index --extensions ".md,.txt"
|
|
58
61
|
rag monitor # interactive Chroma monitor
|
|
59
62
|
rag monitor full # full monitor dashboard
|
|
60
63
|
rag remove # full local uninstall (double confirmation)
|
|
61
64
|
rag remove --force # uninstall without confirmation prompts
|
|
62
65
|
```
|
|
63
66
|
|
|
67
|
+
About extension filter in `rag run`:
|
|
68
|
+
- You can pass extensions as CSV in the 3rd/4th argument, for example:
|
|
69
|
+
- `rag run ./path .js,.py,.md,.java`
|
|
70
|
+
- `rag run ./path --skip-index .md,.txt`
|
|
71
|
+
- `rag run ./path --skip-index --extensions ".md,.txt"`
|
|
72
|
+
- If provided, the indexer uses this whitelist.
|
|
73
|
+
- If omitted, default behavior is kept (ignores binary extensions and `.run`).
|
|
74
|
+
|
|
64
75
|
## Indexing from URL (HTTP/HTTPS)
|
|
65
76
|
|
|
66
77
|
`rag run` now accepts remote URLs in addition to local folders.
|
|
@@ -254,6 +265,16 @@ What each variable does:
|
|
|
254
265
|
- Sets overlap between chunks.
|
|
255
266
|
- After changing: full reindex required.
|
|
256
267
|
|
|
268
|
+
- `MCP_INCLUDE_EXTENSIONS=".js,.py,.md,.java"`
|
|
269
|
+
- Optional whitelist used by `rag run` indexing flow (`indexer_full.py`).
|
|
270
|
+
- When set: only listed extensions are indexed.
|
|
271
|
+
- When unset: default ignore list is used (binary extensions and `.run` are skipped).
|
|
272
|
+
|
|
273
|
+
- `MCP_USAGE_LOG=<path>`
|
|
274
|
+
- Path for usage JSONL log consumed by `rag monitor` option 5/6.
|
|
275
|
+
- Default: `~/.cache/own-rag-cli/logs/mcp_usage.log` (avoids permission issues under `~/.rag_db`).
|
|
276
|
+
- Written by both `mcp-rag-server` tools and `indexer_full.py` runs.
|
|
277
|
+
|
|
257
278
|
- `OWN_RAG_CLI_CONFIG_FILE=<path>`
|
|
258
279
|
- Moves runtime config location from default `~/.own-rag-cli.json`.
|
|
259
280
|
- After changing: restart setup/MCP tools.
|