neuronlayer 0.2.8 → 0.2.11

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.
@@ -1,6 +1,6 @@
1
- # MemoryLayer + Claude Code Setup Guide
1
+ # NeuronLayer + Claude Code Setup Guide
2
2
 
3
- This guide explains how to configure MemoryLayer as an MCP server for [Claude Code](https://code.claude.com/) (Anthropic's CLI tool).
3
+ This guide explains how to configure NeuronLayer as an MCP server for [Claude Code](https://code.claude.com/) (Anthropic's CLI tool).
4
4
 
5
5
  ---
6
6
 
@@ -8,15 +8,15 @@ This guide explains how to configure MemoryLayer as an MCP server for [Claude Co
8
8
 
9
9
  1. **Node.js 18+** installed
10
10
  2. **Claude Code** installed (`npm install -g @anthropic-ai/claude-code`)
11
- 3. **MemoryLayer** built (`npm run build`)
11
+ 3. **NeuronLayer** built (`npm run build`)
12
12
 
13
13
  ---
14
14
 
15
15
  ## Quick Setup (Recommended)
16
16
 
17
- The easiest and most reliable way to configure MemoryLayer for Claude Code is using our automated initialization command.
17
+ The easiest and most reliable way to configure NeuronLayer for Claude Code is using our automated initialization command.
18
18
 
19
- ### Step 1: Initialize MemoryLayer
19
+ ### Step 1: Initialize NeuronLayer
20
20
 
21
21
  Run this command in the root of your project:
22
22
 
@@ -24,7 +24,7 @@ Run this command in the root of your project:
24
24
  npx neuronlayer init .
25
25
  ```
26
26
 
27
- This will automatically configure `.mcp.json` in your project with the exact absolute paths and platform-specific commands required for Claude Code to connect smoothly to MemoryLayer.
27
+ This will automatically configure `.mcp.json` in your project with the exact absolute paths and platform-specific commands required for Claude Code to connect smoothly to NeuronLayer.
28
28
 
29
29
  ### Step 2: Verify Connection
30
30
 
@@ -81,7 +81,7 @@ If you want to create `.mcp.json` in your project root manually:
81
81
  "neuronlayer": {
82
82
  "type": "stdio",
83
83
  "command": "node",
84
- "args": ["/absolute/path/to/memorylayer/dist/index.js", "--project", "."],
84
+ "args": ["/absolute/path/to/neuronlayer/dist/index.js", "--project", "."],
85
85
  "env": {}
86
86
  }
87
87
  }
@@ -115,7 +115,7 @@ On native Windows (not WSL), use the `cmd /c` wrapper for proper execution:
115
115
 
116
116
  ```bash
117
117
  # Using CLI
118
- claude mcp add --transport stdio memorylayer -- cmd /c node C:\path\to\memorylayer\dist\index.js --project .
118
+ claude mcp add --transport stdio neuronlayer -- cmd /c node C:\path\to\neuronlayer\dist\index.js --project .
119
119
  ```
120
120
 
121
121
  **In `.mcp.json`:**
@@ -123,10 +123,10 @@ claude mcp add --transport stdio memorylayer -- cmd /c node C:\path\to\memorylay
123
123
  ```json
124
124
  {
125
125
  "mcpServers": {
126
- "memorylayer": {
126
+ "neuronlayer": {
127
127
  "type": "stdio",
128
128
  "command": "cmd",
129
- "args": ["/c", "node", "C:\\path\\to\\memorylayer\\dist\\index.js", "--project", "."],
129
+ "args": ["/c", "node", "C:\\path\\to\\neuronlayer\\dist\\index.js", "--project", "."],
130
130
  "env": {}
131
131
  }
132
132
  }
@@ -138,13 +138,13 @@ claude mcp add --transport stdio memorylayer -- cmd /c node C:\path\to\memorylay
138
138
  WSL works like Linux:
139
139
 
140
140
  ```bash
141
- claude mcp add --transport stdio memorylayer -- node /path/to/memorylayer/dist/index.js --project .
141
+ claude mcp add --transport stdio neuronlayer -- node /path/to/neuronlayer/dist/index.js --project .
142
142
  ```
143
143
 
144
144
  ### macOS / Linux
145
145
 
146
146
  ```bash
147
- claude mcp add --transport stdio memorylayer -- node /path/to/memorylayer/dist/index.js --project .
147
+ claude mcp add --transport stdio neuronlayer -- node /path/to/neuronlayer/dist/index.js --project .
148
148
  ```
149
149
 
150
150
  **In `.mcp.json`:**
@@ -152,10 +152,10 @@ claude mcp add --transport stdio memorylayer -- node /path/to/memorylayer/dist/i
152
152
  ```json
153
153
  {
154
154
  "mcpServers": {
155
- "memorylayer": {
155
+ "neuronlayer": {
156
156
  "type": "stdio",
157
157
  "command": "node",
158
- "args": ["/Users/you/memorylayer/dist/index.js", "--project", "."],
158
+ "args": ["/Users/you/neuronlayer/dist/index.js", "--project", "."],
159
159
  "env": {}
160
160
  }
161
161
  }
@@ -166,29 +166,29 @@ claude mcp add --transport stdio memorylayer -- node /path/to/memorylayer/dist/i
166
166
 
167
167
  ## After npm Publish
168
168
 
169
- Once MemoryLayer is published to npm, setup becomes simpler:
169
+ Once NeuronLayer is published to npm, setup becomes simpler:
170
170
 
171
171
  ### CLI Command
172
172
 
173
173
  ```bash
174
174
  # Install globally
175
- npm install -g memorylayer
175
+ npm install -g neuronlayer
176
176
 
177
177
  # Add to Claude Code
178
- claude mcp add --transport stdio memorylayer -- memorylayer --project .
178
+ claude mcp add --transport stdio neuronlayer -- neuronlayer --project .
179
179
  ```
180
180
 
181
181
  ### Using npx
182
182
 
183
183
  ```bash
184
184
  # Without installation
185
- claude mcp add --transport stdio memorylayer -- npx -y memorylayer --project .
185
+ claude mcp add --transport stdio neuronlayer -- npx -y neuronlayer --project .
186
186
  ```
187
187
 
188
188
  **Windows (with npx):**
189
189
 
190
190
  ```bash
191
- claude mcp add --transport stdio memorylayer -- cmd /c npx -y memorylayer --project .
191
+ claude mcp add --transport stdio neuronlayer -- cmd /c npx -y neuronlayer --project .
192
192
  ```
193
193
 
194
194
  ### Project `.mcp.json`
@@ -196,10 +196,10 @@ claude mcp add --transport stdio memorylayer -- cmd /c npx -y memorylayer --proj
196
196
  ```json
197
197
  {
198
198
  "mcpServers": {
199
- "memorylayer": {
199
+ "neuronlayer": {
200
200
  "type": "stdio",
201
201
  "command": "npx",
202
- "args": ["-y", "memorylayer", "--project", "."],
202
+ "args": ["-y", "neuronlayer", "--project", "."],
203
203
  "env": {}
204
204
  }
205
205
  }
@@ -210,18 +210,18 @@ claude mcp add --transport stdio memorylayer -- cmd /c npx -y memorylayer --proj
210
210
 
211
211
  ## Environment Variables
212
212
 
213
- ### MemoryLayer Configuration
213
+ ### NeuronLayer Configuration
214
214
 
215
215
  | Variable | Default | Description |
216
216
  |----------|---------|-------------|
217
- | `MEMORYLAYER_MAX_TOKENS` | 6000 | Maximum tokens for context assembly |
218
- | `MEMORYLAYER_DEBUG` | false | Enable debug logging |
217
+ | `NEURONLAYER_MAX_TOKENS` | 6000 | Maximum tokens for context assembly |
218
+ | `NEURONLAYER_DEBUG` | false | Enable debug logging |
219
219
 
220
220
  ```bash
221
221
  claude mcp add --transport stdio \
222
- --env MEMORYLAYER_MAX_TOKENS=8000 \
223
- --env MEMORYLAYER_DEBUG=true \
224
- memorylayer -- node dist/index.js --project .
222
+ --env NEURONLAYER_MAX_TOKENS=8000 \
223
+ --env NEURONLAYER_DEBUG=true \
224
+ neuronlayer -- node dist/index.js --project .
225
225
  ```
226
226
 
227
227
  ### Claude Code MCP Settings
@@ -240,7 +240,7 @@ MCP_TIMEOUT=120000 MAX_MCP_OUTPUT_TOKENS=50000 claude
240
240
 
241
241
  ## Available MCP Tools
242
242
 
243
- Once connected, Claude Code can use these MemoryLayer tools:
243
+ Once connected, Claude Code can use these NeuronLayer tools:
244
244
 
245
245
  ### Core Tools
246
246
 
@@ -345,16 +345,16 @@ Ensure you're using the `cmd /c` wrapper:
345
345
 
346
346
  ```bash
347
347
  # Wrong
348
- claude mcp add --transport stdio memorylayer -- node dist/index.js --project .
348
+ claude mcp add --transport stdio neuronlayer -- node dist/index.js --project .
349
349
 
350
350
  # Correct
351
- claude mcp add --transport stdio memorylayer -- cmd /c node dist/index.js --project .
351
+ claude mcp add --transport stdio neuronlayer -- cmd /c node dist/index.js --project .
352
352
  ```
353
353
 
354
354
  ### "Server not found" or "ENOENT"
355
355
 
356
356
  1. Verify the path to `dist/index.js` is correct and absolute
357
- 2. Ensure MemoryLayer is built: `npm run build`
357
+ 2. Ensure NeuronLayer is built: `npm run build`
358
358
  3. Check Node.js is in your PATH
359
359
 
360
360
  ### "MCP server not connected"
@@ -395,7 +395,7 @@ Or set in `.mcp.json`:
395
395
  ```json
396
396
  {
397
397
  "mcpServers": {
398
- "memorylayer": {
398
+ "neuronlayer": {
399
399
  "type": "stdio",
400
400
  "command": "node",
401
401
  "args": ["dist/index.js", "--project", "."],
@@ -417,13 +417,13 @@ claude --log-level DEBUG
417
417
 
418
418
  ## Importing from Claude Desktop
419
419
 
420
- If you already have MemoryLayer configured in Claude Desktop:
420
+ If you already have NeuronLayer configured in Claude Desktop:
421
421
 
422
422
  ```bash
423
423
  # Import all servers from Claude Desktop
424
424
  claude mcp add-from-claude-desktop
425
425
 
426
- # Select memorylayer from the list
426
+ # Select neuronlayer from the list
427
427
 
428
428
  # Verify import
429
429
  claude mcp list
@@ -433,14 +433,14 @@ claude mcp list
433
433
 
434
434
  ## Data Storage
435
435
 
436
- MemoryLayer stores data locally:
436
+ NeuronLayer stores data locally:
437
437
 
438
438
  ```
439
- ~/.memorylayer/
439
+ ~/.neuronlayer/
440
440
  ├── registry.json # Project registry
441
441
  └── projects/
442
442
  └── {project-name}-{hash}/
443
- ├── memorylayer.db # SQLite database
443
+ ├── neuronlayer.db # SQLite database
444
444
  └── tier1.json # Working context
445
445
  ```
446
446
 
@@ -465,7 +465,7 @@ MemoryLayer stores data locally:
465
465
  - [Claude Code MCP Guide](https://code.claude.com/docs/en/mcp)
466
466
  - [Claude Code Settings](https://code.claude.com/docs/en/settings)
467
467
  - [MCP Protocol Specification](https://modelcontextprotocol.io/)
468
- - [MemoryLayer Documentation](./INDEX.md)
468
+ - [NeuronLayer Documentation](./INDEX.md)
469
469
 
470
470
  ---
471
471
 
@@ -475,7 +475,7 @@ MemoryLayer stores data locally:
475
475
 
476
476
  ```bash
477
477
  # One-liner setup
478
- claude mcp add --transport stdio memorylayer -- node /path/to/memorylayer/dist/index.js --project .
478
+ claude mcp add --transport stdio neuronlayer -- node /path/to/neuronlayer/dist/index.js --project .
479
479
  ```
480
480
 
481
481
  ### Full `.mcp.json` Example
@@ -483,16 +483,16 @@ claude mcp add --transport stdio memorylayer -- node /path/to/memorylayer/dist/i
483
483
  ```json
484
484
  {
485
485
  "mcpServers": {
486
- "memorylayer": {
486
+ "neuronlayer": {
487
487
  "type": "stdio",
488
488
  "command": "node",
489
489
  "args": [
490
- "/path/to/memorylayer/dist/index.js",
490
+ "/path/to/neuronlayer/dist/index.js",
491
491
  "--project",
492
492
  "."
493
493
  ],
494
494
  "env": {
495
- "MEMORYLAYER_MAX_TOKENS": "8000"
495
+ "NEURONLAYER_MAX_TOKENS": "8000"
496
496
  }
497
497
  }
498
498
  }
@@ -1,6 +1,6 @@
1
- # MemoryLayer + OpenCode Setup Guide
1
+ # NeuronLayer + OpenCode Setup Guide
2
2
 
3
- This guide explains how to configure MemoryLayer as an MCP server for [OpenCode](https://opencode.ai).
3
+ This guide explains how to configure NeuronLayer as an MCP server for [OpenCode](https://opencode.ai).
4
4
 
5
5
  ---
6
6
 
@@ -8,15 +8,15 @@ This guide explains how to configure MemoryLayer as an MCP server for [OpenCode]
8
8
 
9
9
  1. **Node.js 18+** installed
10
10
  2. **OpenCode** installed (`npm install -g opencode`)
11
- 3. **MemoryLayer** built (`npm run build`)
11
+ 3. **NeuronLayer** built (`npm run build`)
12
12
 
13
13
  ---
14
14
 
15
15
  ## Quick Setup (Recommended)
16
16
 
17
- The easiest and most reliable way to configure MemoryLayer for OpenCode is using our automated initialization command.
17
+ The easiest and most reliable way to configure NeuronLayer for OpenCode is using our automated initialization command.
18
18
 
19
- ### Step 1: Initialize MemoryLayer
19
+ ### Step 1: Initialize NeuronLayer
20
20
 
21
21
  Run this command in the root of your project:
22
22
 
@@ -24,7 +24,7 @@ Run this command in the root of your project:
24
24
  npx neuronlayer init .
25
25
  ```
26
26
 
27
- This will automatically detect your operating system and generate the correct `opencode.json` configuration file with the exact absolute paths required for OpenCode to connect to MemoryLayer.
27
+ This will automatically detect your operating system and generate the correct `opencode.json` configuration file with the exact absolute paths required for OpenCode to connect to NeuronLayer.
28
28
 
29
29
  ### Step 2: Start OpenCode
30
30
 
@@ -66,7 +66,7 @@ If you prefer to configure OpenCode manually, create an `opencode.json` file in
66
66
  "mcp": {
67
67
  "neuronlayer": {
68
68
  "type": "local",
69
- "command": ["cmd", "/c", "node", "C:\\Users\\YOUR_USERNAME\\path\\to\\memorylayer\\dist\\index.js", "--project", "C:\\Users\\YOUR_USERNAME\\path\\to\\your\\project"],
69
+ "command": ["cmd", "/c", "node", "C:\\Users\\YOUR_USERNAME\\path\\to\\neuronlayer\\dist\\index.js", "--project", "C:\\Users\\YOUR_USERNAME\\path\\to\\your\\project"],
70
70
  "enabled": true
71
71
  }
72
72
  }
@@ -80,7 +80,7 @@ If you prefer to configure OpenCode manually, create an `opencode.json` file in
80
80
  "mcp": {
81
81
  "neuronlayer": {
82
82
  "type": "local",
83
- "command": ["node", "/home/user/memorylayer/dist/index.js", "--project", "/home/user/myproject"],
83
+ "command": ["node", "/home/user/neuronlayer/dist/index.js", "--project", "/home/user/myproject"],
84
84
  "enabled": true
85
85
  }
86
86
  }
@@ -100,9 +100,9 @@ For system-wide availability, create the config in your home directory:
100
100
  {
101
101
  "$schema": "https://opencode.ai/config.json",
102
102
  "mcp": {
103
- "memorylayer": {
103
+ "neuronlayer": {
104
104
  "type": "local",
105
- "command": ["node", "/absolute/path/to/memorylayer/dist/index.js", "--project", "."],
105
+ "command": ["node", "/absolute/path/to/neuronlayer/dist/index.js", "--project", "."],
106
106
  "enabled": true
107
107
  }
108
108
  }
@@ -113,7 +113,7 @@ For system-wide availability, create the config in your home directory:
113
113
 
114
114
  ## After npm Publish
115
115
 
116
- Once MemoryLayer is published to npm, setup becomes simpler:
116
+ Once NeuronLayer is published to npm, setup becomes simpler:
117
117
 
118
118
  ### Using npx
119
119
 
@@ -121,9 +121,9 @@ Once MemoryLayer is published to npm, setup becomes simpler:
121
121
  {
122
122
  "$schema": "https://opencode.ai/config.json",
123
123
  "mcp": {
124
- "memorylayer": {
124
+ "neuronlayer": {
125
125
  "type": "local",
126
- "command": ["npx", "-y", "memorylayer", "--project", "."],
126
+ "command": ["npx", "-y", "neuronlayer", "--project", "."],
127
127
  "enabled": true
128
128
  }
129
129
  }
@@ -133,16 +133,16 @@ Once MemoryLayer is published to npm, setup becomes simpler:
133
133
  ### Global Install
134
134
 
135
135
  ```bash
136
- npm install -g memorylayer
136
+ npm install -g neuronlayer
137
137
  ```
138
138
 
139
139
  ```json
140
140
  {
141
141
  "$schema": "https://opencode.ai/config.json",
142
142
  "mcp": {
143
- "memorylayer": {
143
+ "neuronlayer": {
144
144
  "type": "local",
145
- "command": ["memorylayer", "--project", "."],
145
+ "command": ["neuronlayer", "--project", "."],
146
146
  "enabled": true
147
147
  }
148
148
  }
@@ -166,13 +166,13 @@ npm install -g memorylayer
166
166
  {
167
167
  "$schema": "https://opencode.ai/config.json",
168
168
  "mcp": {
169
- "memorylayer": {
169
+ "neuronlayer": {
170
170
  "type": "local",
171
- "command": ["node", "C:\\path\\to\\memorylayer\\dist\\index.js", "--project", "."],
171
+ "command": ["node", "C:\\path\\to\\neuronlayer\\dist\\index.js", "--project", "."],
172
172
  "enabled": true,
173
173
  "environment": {
174
- "MEMORYLAYER_MAX_TOKENS": "8000",
175
- "MEMORYLAYER_DEBUG": "true"
174
+ "NEURONLAYER_MAX_TOKENS": "8000",
175
+ "NEURONLAYER_DEBUG": "true"
176
176
  }
177
177
  }
178
178
  }
@@ -183,7 +183,7 @@ npm install -g memorylayer
183
183
 
184
184
  ## Available Tools (51 Total)
185
185
 
186
- Once connected, OpenCode's AI can use all MemoryLayer tools:
186
+ Once connected, OpenCode's AI can use all NeuronLayer tools:
187
187
 
188
188
  ### Core Tools (5)
189
189
  | Tool | Description |
@@ -293,7 +293,7 @@ Once connected, OpenCode's AI can use all MemoryLayer tools:
293
293
  "command": ["node", "dist/index.js", "--project", "."]
294
294
 
295
295
  // ✅ CORRECT - Absolute path
296
- "command": ["node", "C:\\Users\\you\\memorylayer\\dist\\index.js", "--project", "."]
296
+ "command": ["node", "C:\\Users\\you\\neuronlayer\\dist\\index.js", "--project", "."]
297
297
  ```
298
298
 
299
299
  ### "Configuration is invalid"
@@ -310,18 +310,18 @@ Ensure `command` is an array of strings:
310
310
 
311
311
  ### Server starts but immediately fails
312
312
 
313
- **Check if MemoryLayer runs manually first:**
313
+ **Check if NeuronLayer runs manually first:**
314
314
 
315
315
  ```bash
316
- node C:\path\to\memorylayer\dist\index.js --project C:\path\to\your\project
316
+ node C:\path\to\neuronlayer\dist\index.js --project C:\path\to\your\project
317
317
  ```
318
318
 
319
- If you see errors, the issue is with MemoryLayer itself, not OpenCode.
319
+ If you see errors, the issue is with NeuronLayer itself, not OpenCode.
320
320
 
321
321
  **Common errors:**
322
322
  - "Cannot find module" - Run `npm run build` first
323
323
  - "ENOENT" - Path is wrong
324
- - Database errors - Delete `~/.memorylayer/projects/` and retry
324
+ - Database errors - Delete `~/.neuronlayer/projects/` and retry
325
325
 
326
326
  ### "No tools available" after connecting
327
327
 
@@ -331,23 +331,23 @@ If you see errors, the issue is with MemoryLayer itself, not OpenCode.
331
331
 
332
332
  ### Check Server Startup Manually
333
333
 
334
- Test if MemoryLayer starts correctly:
334
+ Test if NeuronLayer starts correctly:
335
335
 
336
336
  ```bash
337
337
  # Windows
338
- node C:\path\to\memorylayer\dist\index.js --project C:\path\to\project
338
+ node C:\path\to\neuronlayer\dist\index.js --project C:\path\to\project
339
339
 
340
340
  # macOS/Linux
341
- node /path/to/memorylayer/dist/index.js --project /path/to/project
341
+ node /path/to/neuronlayer/dist/index.js --project /path/to/project
342
342
  ```
343
343
 
344
344
  You should see:
345
345
  ```
346
- MemoryLayer starting...
346
+ NeuronLayer starting...
347
347
  Project: /path/to/project
348
348
  Indexing started...
349
349
  Indexing complete: XX files indexed
350
- MemoryLayer MCP server started
350
+ NeuronLayer MCP server started
351
351
  ```
352
352
 
353
353
  ### View Debug Logs
@@ -358,16 +358,16 @@ Run OpenCode with debug logging:
358
358
  opencode --log-level DEBUG
359
359
  ```
360
360
 
361
- ### Reset MemoryLayer Data
361
+ ### Reset NeuronLayer Data
362
362
 
363
363
  If you have persistent issues, clear the data:
364
364
 
365
365
  ```bash
366
366
  # Windows
367
- rmdir /s %USERPROFILE%\.memorylayer
367
+ rmdir /s %USERPROFILE%\.neuronlayer
368
368
 
369
369
  # macOS/Linux
370
- rm -rf ~/.memorylayer
370
+ rm -rf ~/.neuronlayer
371
371
  ```
372
372
 
373
373
  ---
@@ -400,14 +400,14 @@ Once configured, try these prompts:
400
400
 
401
401
  ## Data Storage
402
402
 
403
- MemoryLayer stores data in:
403
+ NeuronLayer stores data in:
404
404
 
405
405
  ```
406
- ~/.memorylayer/
406
+ ~/.neuronlayer/
407
407
  ├── registry.json # Project registry
408
408
  └── projects/
409
409
  └── {project-name}-{hash}/
410
- ├── memorylayer.db # SQLite database
410
+ ├── neuronlayer.db # SQLite database
411
411
  └── tier1.json # Working context
412
412
  ```
413
413
 
@@ -417,8 +417,8 @@ MemoryLayer stores data in:
417
417
 
418
418
  - [OpenCode Documentation](https://opencode.ai/docs/)
419
419
  - [MCP Protocol](https://modelcontextprotocol.io/)
420
- - [MemoryLayer API Reference](./API.md)
421
- - [MemoryLayer Architecture](./ARCHITECTURE.md)
420
+ - [NeuronLayer API Reference](./API.md)
421
+ - [NeuronLayer Architecture](./ARCHITECTURE.md)
422
422
 
423
423
  ---
424
424
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neuronlayer",
3
- "version": "0.2.8",
3
+ "version": "0.2.11",
4
4
  "description": "MCP server that gives AI assistants persistent understanding of your codebase",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",