@anmezing/lce-cloud 1.3.1 → 1.3.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 (3) hide show
  1. package/README.md +39 -2
  2. package/lce-cloud.cjs +157 -157
  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]
@@ -31,6 +34,39 @@ Get your API key from the LCE console. No other installation step is required.
31
34
  `npx` downloads and runs the npm client automatically, so a global npm install is
32
35
  not required.
33
36
 
37
+ The client resolves project roots in this order:
38
+
39
+ 1. Repeatable `--repo <absolute-git-repository>` arguments.
40
+ 2. Standard workspace roots reported by the MCP client through `roots/list`.
41
+ 3. A safety-validated process directory when it is itself a Git repository.
42
+ 4. An absolute `repo_path` supplied on an LCE tool call. This fallback registers and
43
+ starts indexing that repository without restarting the MCP server.
44
+
45
+ Some MCP hosts do not implement `roots/list` and start servers from the editor's
46
+ installation directory. For those hosts, add the project root explicitly:
47
+
48
+ ```json
49
+ {
50
+ "mcpServers": {
51
+ "lce": {
52
+ "command": "npx",
53
+ "args": [
54
+ "-y",
55
+ "@anmezing/lce-cloud@latest",
56
+ "--key",
57
+ "lce_xxxxxxxx",
58
+ "--repo",
59
+ "D:\\code\\my-project"
60
+ ]
61
+ }
62
+ }
63
+ }
64
+ ```
65
+
66
+ Use the native absolute path for Windows, macOS, or Linux. LCE refuses relative
67
+ paths, non-Git directories, home directories, and filesystem roots. `repo_path` is
68
+ handled only by the local npm client and is never forwarded to Relay.
69
+
34
70
  ## Exposed tools
35
71
 
36
72
  The npm client exposes five tools to the coding agent. Three use the tenant-safe
@@ -127,6 +163,7 @@ enhancement request.
127
163
  | --- | --- |
128
164
  | `--key, -k` | API key (required) |
129
165
  | `--cloud` | Relay URL override |
166
+ | `--repo` | Absolute Git repository path; repeatable for multi-root clients |
130
167
  | `--local-knowledge` | Local Graphify/OKF fusion: `auto` (default) or `off` |
131
168
  | `--graphify-root` | Repository-contained Graphify graph path (default: `graphify-out/graph.json`) |
132
169
  | `--okf-root` | Repository-contained OKF bundle path (default: `.okf`) |