@anmezing/lce-cloud 1.3.2 → 1.3.4

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 (3) hide show
  1. package/README.md +53 -8
  2. package/lce-cloud.cjs +170 -170
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -6,7 +6,10 @@ repository-contained Graphify and OKF knowledge.
6
6
 
7
7
  ## Usage
8
8
 
9
- Add to your MCP configuration (Cursor / Claude Code):
9
+ Add LCE to any editor, IDE, or coding agent that can launch a local stdio MCP server.
10
+ Use the JSON or TOML shape required by that client.
11
+
12
+ Generic JSON:
10
13
 
11
14
  ```json
12
15
  {
@@ -19,7 +22,7 @@ Add to your MCP configuration (Cursor / Claude Code):
19
22
  }
20
23
  ```
21
24
 
22
- Codex (`config.toml`):
25
+ Generic TOML:
23
26
 
24
27
  ```toml
25
28
  [mcp_servers.lce]
@@ -27,20 +30,61 @@ command = "npx"
27
30
  args = ["-y", "@anmezing/lce-cloud@latest", "--key", "lce_xxxxxxxx"]
28
31
  ```
29
32
 
30
- Get your API key from the LCE console. No other installation step is required.
31
- `npx` downloads and runs the npm client automatically, so a global npm install is
32
- not required.
33
+ Get your API key from the LCE console. For faster and more reliable startup, install
34
+ the client globally and use `lce-cloud` as the MCP command:
35
+
36
+ ```bash
37
+ npm install -g @anmezing/lce-cloud@latest
38
+ ```
39
+
40
+ The generated `npx` configuration remains fully supported and runs the same client.
41
+ Both launch modes provide file watching, automatic incremental indexing, and branch
42
+ view tracking while the MCP process is running.
43
+
44
+ The client resolves project roots in this order:
45
+
46
+ 1. Repeatable `--repo <absolute-git-repository>` arguments.
47
+ 2. Standard workspace roots reported by the MCP client through `roots/list`.
48
+ 3. A safety-validated process directory when it is itself a Git repository.
49
+ 4. An absolute `repo_path` supplied on an LCE tool call. This fallback registers and
50
+ starts indexing that repository without restarting the MCP server.
51
+
52
+ Some MCP hosts do not implement `roots/list` and start servers from the editor's
53
+ installation directory. For those hosts, add the project root explicitly:
54
+
55
+ ```json
56
+ {
57
+ "mcpServers": {
58
+ "lce": {
59
+ "command": "npx",
60
+ "args": [
61
+ "-y",
62
+ "@anmezing/lce-cloud@latest",
63
+ "--key",
64
+ "lce_xxxxxxxx",
65
+ "--repo",
66
+ "D:\\code\\my-project"
67
+ ]
68
+ }
69
+ }
70
+ }
71
+ ```
72
+
73
+ Use the native absolute path for Windows, macOS, or Linux. LCE refuses relative
74
+ paths, non-Git directories, home directories, and filesystem roots. `repo_path` is
75
+ handled only by the local npm client and is never forwarded to Relay.
33
76
 
34
77
  ## Exposed tools
35
78
 
36
- The npm client exposes five tools to the coding agent. Three use the tenant-safe
37
- server index, while two run against the local Git checkout:
79
+ The npm client exposes six tools to the coding agent. Four use the tenant-safe
80
+ server index or its synchronization state, while two run against the local Git checkout:
38
81
 
39
82
  | Tool | Runs in | Function |
40
83
  | --- | --- | --- |
41
84
  | `codebase-retrieval` | LCE server + local npm client | Semantic retrieval, coarse ranking, and reranking, complemented by local Graphify/OKF evidence when present |
42
85
  | `codebase_symbol_graph` | LCE server | Symbol definitions, references, call chains, dependencies, and change impact |
43
86
  | `codebase_enhance_prompt` | LCE server | Convert a natural-language task into a code-grounded implementation brief |
87
+ | `codebase_index_status` | LCE client + Relay | Report readiness, synchronization progress, and failure details for one or all project roots |
44
88
  | `codebase_git_context` | Local npm client | Git status, diffs, history, blame, and branch context from the current checkout |
45
89
  | `codebase_review_changes` | Local npm client | Build a review range, identify risks, and produce retrieval and test plans |
46
90
 
@@ -85,7 +129,7 @@ to the project's `AGENTS.md`, `CLAUDE.md`, or `.cursor/rules` file:
85
129
  ```markdown
86
130
  ## LCE tool usage
87
131
 
88
- - The default npx configuration downloads and runs the npm client automatically; no global install is required.
132
+ - Prefer a global `@anmezing/lce-cloud` installation for faster and more reliable startup; the generated npx configuration remains functionally equivalent.
89
133
  - (Server-provided) Use `codebase-retrieval` first to find, understand, or locate code with a natural-language request.
90
134
  - (Server-provided) Use `codebase_symbol_graph` for definitions, references, call chains, dependencies, and change impact.
91
135
  - (Server-provided) Use `codebase_enhance_prompt` to turn a task into a code-grounded implementation brief.
@@ -127,6 +171,7 @@ enhancement request.
127
171
  | --- | --- |
128
172
  | `--key, -k` | API key (required) |
129
173
  | `--cloud` | Relay URL override |
174
+ | `--repo` | Absolute Git repository path; repeatable for multi-root clients |
130
175
  | `--local-knowledge` | Local Graphify/OKF fusion: `auto` (default) or `off` |
131
176
  | `--graphify-root` | Repository-contained Graphify graph path (default: `graphify-out/graph.json`) |
132
177
  | `--okf-root` | Repository-contained OKF bundle path (default: `.okf`) |