@muvon/octofs 0.20.5 → 0.21.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.
Files changed (2) hide show
  1. package/README.md +31 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -130,10 +130,35 @@ cargo build --release
130
130
 
131
131
  ## Quick Start
132
132
 
133
+ ### Pair with Octocode
134
+
135
+ The shared-ID workflow requires the next Octocode release or a build of the updated source. OctoFS’s existing line-ID format is unchanged.
136
+
137
+ Use [Octocode](https://github.com/muvon/octocode) to find definitions, usages, and code relationships, then use OctoFS to read or edit the matching files. Octocode's MCP `structural_search` emits the same `N:hh|content` source line IDs that OctoFS accepts for `batch_edit`, using their shared Octolib utility. You do not need another `view` just to obtain IDs for lines already returned.
138
+
139
+ Run both servers against the same checkout. IDs describe that source snapshot: changed targets are verified at edit time, and an error supplies current context rather than guessing where to write. Exact-name lookups return complete small definitions; previews of larger matches name the ranges you can read with OctoFS.
140
+
133
141
  ### 1. Configure Your AI Assistant
134
142
 
135
143
  The CLI uses a `mcp` subcommand — your config must pass `["mcp"]` as args.
136
144
 
145
+ **Claude Code (CLI):**
146
+
147
+ ```bash
148
+ claude mcp add octofs -- octofs mcp --path /path/to/your/project
149
+ claude mcp add octocode -- octocode mcp --path /path/to/your/project
150
+ ```
151
+
152
+ **Codex CLI:**
153
+
154
+ ```bash
155
+ codex mcp add octofs -- octofs mcp --path /path/to/your/project
156
+ codex mcp add octocode -- octocode mcp --path /path/to/your/project
157
+ codex mcp list
158
+ ```
159
+
160
+ The Octocode registration is optional. Install the servers you use and replace the paths with the same absolute checkout path. See the [official Codex MCP documentation](https://developers.openai.com/codex/mcp).
161
+
137
162
  **Cursor** (`~/.cursor/mcp.json`):
138
163
  ```json
139
164
  {
@@ -223,7 +248,7 @@ Ask your AI assistant to:
223
248
  ### Line Identifiers
224
249
 
225
250
  Every line is addressed by a composite id `N:hh` — its 1-indexed position plus a
226
- 2-character hex hash (FNV-1a) of its content. `view` renders lines as `N:hh|content`:
251
+ 2-character hex hash (FNV-1a) of its content. Octocode structural-search source output uses the same shared utility and IDs. `view` renders lines as `N:hh|content`:
227
252
 
228
253
  ```
229
254
  1:a3|fn main() {
@@ -497,10 +522,11 @@ can retarget without a re-view. The result is a diff with fresh ids.
497
522
  }
498
523
  ```
499
524
 
500
- `from_end` is optional (omit to copy a single line). `from_start`, `from_end`, and
501
- `append_line` each accept a line number or a line id (`"12:a3"`, verified against
502
- the file). `append_line` positions the copy in the target: `0` = beginning,
503
- `-1` = end, `N` = after line N.
525
+ `from_end` is optional (omit to copy a single line). `from_start` and `from_end`
526
+ each accept a line number or a line id (`"12:a3"`, verified against the file).
527
+ `append_line` positions the copy in the target: a line id to insert after
528
+ (verified against the target), `0` = beginning, or `-1` = end. Like every edit
529
+ target it takes no other plain line number.
504
530
 
505
531
  ---
506
532
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muvon/octofs",
3
- "version": "0.20.5",
3
+ "version": "0.21.0",
4
4
  "description": "Standalone MCP filesystem tools server \u2014 view, edit, shell, workdir.",
5
5
  "mcpName": "io.github.Muvon/octofs",
6
6
  "bin": {