@regsorm/code-index-mcp 1.2.2 → 1.2.3

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 (2) hide show
  1. package/README.md +33 -13
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -14,22 +14,42 @@ npm install -g @regsorm/code-index-mcp
14
14
 
15
15
  Поддерживаемые платформы: Windows x64, Linux x64, macOS arm64.
16
16
 
17
- ## Запуск как MCP-сервера
17
+ ## Запуск
18
18
 
19
- ```bash
20
- npx @regsorm/code-index-mcp serve --path /path/to/your/repo
21
- ```
19
+ Программа работает двумя процессами: фоновый индексатор строит индекс, MCP-сервер его читает. Без индексатора инструменты отвечают `daemon_offline`.
22
20
 
23
- Транспорт по умолчанию — `stdio`. Для подключения к Claude Code / Cursor добавьте в MCP-конфигурацию:
21
+ 1. Задайте переменную `CODE_INDEX_HOME` — папку для настроек и служебных файлов (например `C:\tools\code-index`).
22
+ 2. Создайте в ней `daemon.toml` со списком папок:
24
23
 
25
- ```json
26
- {
27
- "code-index": {
28
- "command": "npx",
29
- "args": ["-y", "@regsorm/code-index-mcp", "serve", "--path", "/path/to/your/repo"]
30
- }
31
- }
32
- ```
24
+ ```toml
25
+ [daemon]
26
+ http_host = "127.0.0.1"
27
+ http_port = 8015
28
+
29
+ [[paths]]
30
+ path = "C:/path/to/your/repo"
31
+ alias = "main"
32
+ ```
33
+
34
+ 3. Запустите индексатор:
35
+
36
+ ```bash
37
+ npx @regsorm/code-index-mcp daemon run
38
+ ```
39
+
40
+ 4. Подключите MCP-сервер. Транспорт по умолчанию — `stdio`; для Claude Code / Cursor добавьте в MCP-конфигурацию:
41
+
42
+ ```json
43
+ {
44
+ "code-index": {
45
+ "command": "npx",
46
+ "args": ["-y", "@regsorm/code-index-mcp", "serve", "--path", "main=C:/path/to/your/repo"],
47
+ "env": { "CODE_INDEX_HOME": "C:\\tools\\code-index" }
48
+ }
49
+ }
50
+ ```
51
+
52
+ Папка в `--path` должна быть перечислена в `daemon.toml`.
33
53
 
34
54
  ## Документация
35
55
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regsorm/code-index-mcp",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Rust code index MCP server (BSL/1C-aware). Static binary auto-downloaded for your OS. Tree-sitter AST, federation, sub-ms search.",
5
5
  "mcpName": "io.github.Regsorm/code-index",
6
6
  "keywords": [