mem0-open-mcp 0.1.6__tar.gz → 0.1.7__tar.gz
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.
- {mem0_open_mcp-0.1.6 → mem0_open_mcp-0.1.7}/PKG-INFO +1 -1
- {mem0_open_mcp-0.1.6 → mem0_open_mcp-0.1.7}/pyproject.toml +1 -1
- {mem0_open_mcp-0.1.6 → mem0_open_mcp-0.1.7}/src/mem0_server/cli.py +32 -4
- {mem0_open_mcp-0.1.6 → mem0_open_mcp-0.1.7}/.env.example +0 -0
- {mem0_open_mcp-0.1.6 → mem0_open_mcp-0.1.7}/.github/workflows/publish.yml +0 -0
- {mem0_open_mcp-0.1.6 → mem0_open_mcp-0.1.7}/.gitignore +0 -0
- {mem0_open_mcp-0.1.6 → mem0_open_mcp-0.1.7}/Dockerfile +0 -0
- {mem0_open_mcp-0.1.6 → mem0_open_mcp-0.1.7}/README.md +0 -0
- {mem0_open_mcp-0.1.6 → mem0_open_mcp-0.1.7}/docker-compose.yaml +0 -0
- {mem0_open_mcp-0.1.6 → mem0_open_mcp-0.1.7}/examples/ollama-config.yaml +0 -0
- {mem0_open_mcp-0.1.6 → mem0_open_mcp-0.1.7}/mem0-open-mcp.example.yaml +0 -0
- {mem0_open_mcp-0.1.6 → mem0_open_mcp-0.1.7}/src/mem0_server/__init__.py +0 -0
- {mem0_open_mcp-0.1.6 → mem0_open_mcp-0.1.7}/src/mem0_server/api/__init__.py +0 -0
- {mem0_open_mcp-0.1.6 → mem0_open_mcp-0.1.7}/src/mem0_server/api/routes.py +0 -0
- {mem0_open_mcp-0.1.6 → mem0_open_mcp-0.1.7}/src/mem0_server/config/__init__.py +0 -0
- {mem0_open_mcp-0.1.6 → mem0_open_mcp-0.1.7}/src/mem0_server/config/loader.py +0 -0
- {mem0_open_mcp-0.1.6 → mem0_open_mcp-0.1.7}/src/mem0_server/config/schema.py +0 -0
- {mem0_open_mcp-0.1.6 → mem0_open_mcp-0.1.7}/src/mem0_server/mcp/__init__.py +0 -0
- {mem0_open_mcp-0.1.6 → mem0_open_mcp-0.1.7}/src/mem0_server/mcp/server.py +0 -0
- {mem0_open_mcp-0.1.6 → mem0_open_mcp-0.1.7}/src/mem0_server/server.py +0 -0
- {mem0_open_mcp-0.1.6 → mem0_open_mcp-0.1.7}/src/mem0_server/utils/__init__.py +0 -0
- {mem0_open_mcp-0.1.6 → mem0_open_mcp-0.1.7}/tests/test_api.py +0 -0
- {mem0_open_mcp-0.1.6 → mem0_open_mcp-0.1.7}/tests/test_config.py +0 -0
|
@@ -213,8 +213,10 @@ def _run_memory_tests(config: Mem0ServerConfig) -> bool:
|
|
|
213
213
|
memory = Memory.from_config(mem0_config)
|
|
214
214
|
console.print("[green]✓[/green]")
|
|
215
215
|
|
|
216
|
-
|
|
216
|
+
# 1. Add memory
|
|
217
|
+
console.print(" [dim]1. Adding test memory...[/dim]", end=" ")
|
|
217
218
|
add_result = memory.add(test_memory_text, user_id=test_user_id)
|
|
219
|
+
memory_id = None
|
|
218
220
|
if add_result and add_result.get("results"):
|
|
219
221
|
first_result = add_result["results"][0]
|
|
220
222
|
memory_id = first_result.get("id") if first_result else None
|
|
@@ -225,14 +227,40 @@ def _run_memory_tests(config: Mem0ServerConfig) -> bool:
|
|
|
225
227
|
else:
|
|
226
228
|
console.print("[green]✓ Added[/green]")
|
|
227
229
|
|
|
228
|
-
|
|
230
|
+
# 2. List memories
|
|
231
|
+
console.print(" [dim]2. Listing memories...[/dim]", end=" ")
|
|
232
|
+
list_result = memory.get_all(user_id=test_user_id)
|
|
233
|
+
if list_result and list_result.get("results"):
|
|
234
|
+
stored_count = len(list_result["results"])
|
|
235
|
+
console.print(f"[green]✓ Found {stored_count} memory(s)[/green]")
|
|
236
|
+
# Get memory_id from list if not captured from add
|
|
237
|
+
if not memory_id and stored_count > 0:
|
|
238
|
+
memory_id = list_result["results"][0].get("id")
|
|
239
|
+
else:
|
|
240
|
+
console.print("[red]✗ Memory not stored[/red]")
|
|
241
|
+
return False
|
|
242
|
+
|
|
243
|
+
# 3. Search memories
|
|
244
|
+
console.print(" [dim]3. Searching memories...[/dim]", end=" ")
|
|
229
245
|
search_result = memory.search("test memory verification", user_id=test_user_id, limit=5)
|
|
230
246
|
if search_result and search_result.get("results"):
|
|
231
247
|
console.print(f"[green]✓ Found {len(search_result['results'])} result(s)[/green]")
|
|
232
248
|
else:
|
|
233
|
-
console.print("[yellow]⚠ No results (may be
|
|
249
|
+
console.print("[yellow]⚠ No search results (indexing may be delayed)[/yellow]")
|
|
250
|
+
|
|
251
|
+
# 4. Delete single memory
|
|
252
|
+
console.print(" [dim]4. Deleting single memory...[/dim]", end=" ")
|
|
253
|
+
if memory_id:
|
|
254
|
+
delete_result = memory.delete(memory_id)
|
|
255
|
+
if delete_result and delete_result.get("message"):
|
|
256
|
+
console.print(f"[green]✓ Deleted (id: {memory_id[:8]}...)[/green]")
|
|
257
|
+
else:
|
|
258
|
+
console.print("[green]✓ Deleted[/green]")
|
|
259
|
+
else:
|
|
260
|
+
console.print("[yellow]⚠ Skipped (no memory_id)[/yellow]")
|
|
234
261
|
|
|
235
|
-
|
|
262
|
+
# 5. Cleanup remaining test data
|
|
263
|
+
console.print(" [dim]5. Cleaning up test data...[/dim]", end=" ")
|
|
236
264
|
memory.delete_all(user_id=test_user_id)
|
|
237
265
|
console.print("[green]✓ Cleaned[/green]")
|
|
238
266
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|