memorix 0.9.19 → 0.9.23

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.
package/README.md CHANGED
@@ -67,7 +67,7 @@ Run in terminal:
67
67
  ```bash
68
68
  claude mcp add memorix -- memorix serve
69
69
  ```
70
- Or manually add to `~/.claude.json`:
70
+ Or manually add to `~/.claude.json` (global) or `.claude/settings.json` (project):
71
71
  ```json
72
72
  {
73
73
  "mcpServers": {
@@ -78,6 +78,7 @@ Or manually add to `~/.claude.json`:
78
78
  }
79
79
  }
80
80
  ```
81
+ > **Windows:** `~/.claude.json` is at `C:\Users\<YourUsername>\.claude.json`
81
82
  </details>
82
83
 
83
84
  <details>
@@ -113,12 +114,12 @@ Add to Windsurf MCP settings (`~/.codeium/windsurf/mcp_config.json`):
113
114
  </details>
114
115
 
115
116
  <details>
116
- <summary><strong>VS Code Copilot / Codex / Kiro</strong></summary>
117
+ <summary><strong>VS Code Copilot</strong></summary>
117
118
 
118
- Same format — add to the agent's MCP config file:
119
+ Add to `.vscode/mcp.json` in your project:
119
120
  ```json
120
121
  {
121
- "mcpServers": {
122
+ "servers": {
122
123
  "memorix": {
123
124
  "command": "memorix",
124
125
  "args": ["serve"]
@@ -129,9 +130,20 @@ Same format — add to the agent's MCP config file:
129
130
  </details>
130
131
 
131
132
  <details>
132
- <summary><strong>Antigravity / Gemini CLI</strong></summary>
133
+ <summary><strong>Codex</strong></summary>
133
134
 
134
- Add to `.gemini/settings.json` (project) or `~/.gemini/settings.json` (global):
135
+ Add to `~/.codex/config.toml`:
136
+ ```toml
137
+ [mcp_servers.memorix]
138
+ command = "memorix"
139
+ args = ["serve"]
140
+ ```
141
+ </details>
142
+
143
+ <details>
144
+ <summary><strong>Kiro</strong></summary>
145
+
146
+ Add to `.kiro/settings/mcp.json` (project) or `~/.kiro/settings/mcp.json` (global):
135
147
  ```json
136
148
  {
137
149
  "mcpServers": {
@@ -142,8 +154,12 @@ Add to `.gemini/settings.json` (project) or `~/.gemini/settings.json` (global):
142
154
  }
143
155
  }
144
156
  ```
157
+ </details>
145
158
 
146
- **Antigravity IDE only:** Antigravity uses its own install path as CWD. You **must** add:
159
+ <details>
160
+ <summary><strong>Antigravity</strong></summary>
161
+
162
+ Add to `~/.gemini/antigravity/mcp_config.json`. Antigravity requires `MEMORIX_PROJECT_ROOT`:
147
163
  ```json
148
164
  {
149
165
  "mcpServers": {
@@ -157,8 +173,22 @@ Add to `.gemini/settings.json` (project) or `~/.gemini/settings.json` (global):
157
173
  }
158
174
  }
159
175
  ```
176
+ </details>
177
+
178
+ <details>
179
+ <summary><strong>Gemini CLI</strong></summary>
160
180
 
161
- **Gemini CLI** reads MCP config from the same path. Hooks are automatically installed to `.gemini/settings.json`.
181
+ Add to `.gemini/settings.json` (project) or `~/.gemini/settings.json` (global):
182
+ ```json
183
+ {
184
+ "mcpServers": {
185
+ "memorix": {
186
+ "command": "memorix",
187
+ "args": ["serve"]
188
+ }
189
+ }
190
+ }
191
+ ```
162
192
  </details>
163
193
 
164
194
  ### Step 3: Restart your agent — done!
@@ -189,19 +219,12 @@ If either fails, follow the table below:
189
219
  | Works in terminal but not in IDE | IDE uses a different PATH than your shell | **Windows:** restart IDE after `npm install -g`. **macOS/Linux:** ensure `~/.bashrc` or `~/.zshrc` exports the npm global bin path |
190
220
  | Parameter type errors | Old version or non-Anthropic model quirks | Update: `npm install -g memorix@latest` |
191
221
 
192
- **Correct `.claude.json` config:**
222
+ **Correct config:**
193
223
  ```json
194
- {
195
- "mcpServers": {
196
- "memorix": {
197
- "command": "memorix",
198
- "args": ["serve"]
199
- }
200
- }
201
- }
224
+ "command": "memorix", "args": ["serve"]
202
225
  ```
203
226
 
204
- **❌ Wrong** — do NOT use any of these:
227
+ **❌ Wrong:**
205
228
  ```
206
229
  "command": "npx" ← will timeout
207
230
  "command": "npx -y memorix serve" ← wrong format
package/README.zh-CN.md CHANGED
@@ -67,7 +67,7 @@ npm install -g memorix
67
67
  ```bash
68
68
  claude mcp add memorix -- memorix serve
69
69
  ```
70
- 或手动添加到 `~/.claude.json`:
70
+ 或手动添加到 `~/.claude.json`(全局)或 `.claude/settings.json`(项目级):
71
71
  ```json
72
72
  {
73
73
  "mcpServers": {
@@ -78,6 +78,7 @@ claude mcp add memorix -- memorix serve
78
78
  }
79
79
  }
80
80
  ```
81
+ > **Windows 用户:** `~/.claude.json` 位于 `C:\Users\你的用户名\.claude.json`
81
82
  </details>
82
83
 
83
84
  <details>
@@ -113,12 +114,12 @@ claude mcp add memorix -- memorix serve
113
114
  </details>
114
115
 
115
116
  <details>
116
- <summary><strong>VS Code Copilot / Codex / Kiro</strong></summary>
117
+ <summary><strong>VS Code Copilot</strong></summary>
117
118
 
118
- 同样的格式 — 添加到对应 Agent 的 MCP 配置文件:
119
+ 添加到项目目录的 `.vscode/mcp.json`:
119
120
  ```json
120
121
  {
121
- "mcpServers": {
122
+ "servers": {
122
123
  "memorix": {
123
124
  "command": "memorix",
124
125
  "args": ["serve"]
@@ -129,9 +130,20 @@ claude mcp add memorix -- memorix serve
129
130
  </details>
130
131
 
131
132
  <details>
132
- <summary><strong>Antigravity / Gemini CLI</strong></summary>
133
+ <summary><strong>Codex</strong></summary>
133
134
 
134
- 添加到 `.gemini/settings.json`(项目级)或 `~/.gemini/settings.json`(全局):
135
+ 添加到 `~/.codex/config.toml`:
136
+ ```toml
137
+ [mcp_servers.memorix]
138
+ command = "memorix"
139
+ args = ["serve"]
140
+ ```
141
+ </details>
142
+
143
+ <details>
144
+ <summary><strong>Kiro</strong></summary>
145
+
146
+ 添加到 `.kiro/settings/mcp.json`(项目级)或 `~/.kiro/settings/mcp.json`(全局):
135
147
  ```json
136
148
  {
137
149
  "mcpServers": {
@@ -142,8 +154,12 @@ claude mcp add memorix -- memorix serve
142
154
  }
143
155
  }
144
156
  ```
157
+ </details>
145
158
 
146
- **仅 Antigravity IDE:** Antigravity 使用自身安装路径作为工作目录,**必须**添加:
159
+ <details>
160
+ <summary><strong>Antigravity</strong></summary>
161
+
162
+ 添加到 `~/.gemini/antigravity/mcp_config.json`。Antigravity 必须设置 `MEMORIX_PROJECT_ROOT`:
147
163
  ```json
148
164
  {
149
165
  "mcpServers": {
@@ -157,8 +173,22 @@ claude mcp add memorix -- memorix serve
157
173
  }
158
174
  }
159
175
  ```
176
+ </details>
177
+
178
+ <details>
179
+ <summary><strong>Gemini CLI</strong></summary>
160
180
 
161
- **Gemini CLI** 读取相同路径的 MCP 配置。Hooks 会自动安装到 `.gemini/settings.json`。
181
+ 添加到 `.gemini/settings.json`(项目级)或 `~/.gemini/settings.json`(全局):
182
+ ```json
183
+ {
184
+ "mcpServers": {
185
+ "memorix": {
186
+ "command": "memorix",
187
+ "args": ["serve"]
188
+ }
189
+ }
190
+ }
191
+ ```
162
192
  </details>
163
193
 
164
194
  ### 第三步:重启你的 Agent — 完成!
@@ -189,19 +219,12 @@ memorix serve --cwd . # 应该显示 "[memorix] MCP Server running on stdio"
189
219
  | 终端里能用但 IDE 里不行 | IDE 使用的 PATH 和终端不同 | **Windows:** 安装后重启 IDE。**macOS/Linux:** 确保 `~/.bashrc` 或 `~/.zshrc` 导出了 npm 全局 bin 路径 |
190
220
  | 参数类型错误 | 版本过旧或非 Anthropic 模型的兼容问题 | 更新:`npm install -g memorix@latest` |
191
221
 
192
- **正确的 `.claude.json` 配置:**
222
+ **正确配置:**
193
223
  ```json
194
- {
195
- "mcpServers": {
196
- "memorix": {
197
- "command": "memorix",
198
- "args": ["serve"]
199
- }
200
- }
201
- }
224
+ "command": "memorix", "args": ["serve"]
202
225
  ```
203
226
 
204
- **❌ 错误写法** — 不要用这些:
227
+ **❌ 错误写法:**
205
228
  ```
206
229
  "command": "npx" ← 会超时
207
230
  "command": "npx -y memorix serve" ← 格式错误