mem0-open-mcp 0.1.8__py3-none-any.whl → 0.1.9__py3-none-any.whl

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
1
  Metadata-Version: 2.4
2
2
  Name: mem0-open-mcp
3
- Version: 0.1.8
3
+ Version: 0.1.9
4
4
  Summary: Open-source MCP server for mem0 - local LLMs, self-hosted, Docker-free
5
5
  Author: Alex
6
6
  License-Expression: Apache-2.0
@@ -1,15 +1,15 @@
1
1
  mem0_server/__init__.py,sha256=FrcCqmcA_VSR57xjgdQ1obSrsSzxDsDsXdEGSdVhUq0,379
2
- mem0_server/cli.py,sha256=JQViA0ZBCZLGzEuV9qXlJgdeApGMmQWRgWiY1doFUlA,28970
2
+ mem0_server/cli.py,sha256=5XKhq2QdNQCH1yPlLEal_0jcee6QEOjuhA-c6HqmX2s,29308
3
3
  mem0_server/server.py,sha256=Obc2eZaAYuZdUgYpOY8qWwbOXgc3w1vRmmEF3tc0gdI,12494
4
4
  mem0_server/api/__init__.py,sha256=JOOnrq3v7yym3xotMkOUAoZj1zjhI8C_a1wEdbpCakQ,122
5
5
  mem0_server/api/routes.py,sha256=fBOeQ1kckEa9Nr57cutCunhG9D1J5zYrv9sFiYcZ1yQ,21743
6
6
  mem0_server/config/__init__.py,sha256=Z0GWnr8I7VbrUfVLeA37K9qHOsK7HJOHiGELbWp8YcI,733
7
- mem0_server/config/loader.py,sha256=LPobv8BSyPShJ_27d_hwsx9EhAJPDdzWJMrUGJ4Qdt8,8373
7
+ mem0_server/config/loader.py,sha256=0z_huOq1NS4reGEKDySj8RJf1ou_v5LcQtK4LVafX8w,8337
8
8
  mem0_server/config/schema.py,sha256=HnFWUR4KxwHkyukFw_ptMCHt7K26Zl7AU02-5jdtjL4,12731
9
9
  mem0_server/mcp/__init__.py,sha256=8BWWjlJj5_jdeUuQFN4i5hm5Zd3Pk0cCR2Vf0G4eUB4,127
10
10
  mem0_server/mcp/server.py,sha256=Y_f8upEtvjr0JjZaUQ4YWLRrof9btR2ds8FL2DucCZI,184
11
11
  mem0_server/utils/__init__.py,sha256=GvVR3Tz4OmU2gRGCbTyQg5Xip5cAx7KW6ToIh2sKA4w,41
12
- mem0_open_mcp-0.1.8.dist-info/METADATA,sha256=Yt9jHUkYgOn3ivUZIq6d8Edtwn5Q3KgHPbURKSR_1Ko,4908
13
- mem0_open_mcp-0.1.8.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
14
- mem0_open_mcp-0.1.8.dist-info/entry_points.txt,sha256=WXqVdvwhFvMkzAmNtdlHlRZV23yikM43BtB8S4F9ByE,54
15
- mem0_open_mcp-0.1.8.dist-info/RECORD,,
12
+ mem0_open_mcp-0.1.9.dist-info/METADATA,sha256=PELs2oUxbtGLi7evz6wOkK_TRV2zeOnb3IV6XpSnewQ,4908
13
+ mem0_open_mcp-0.1.9.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
14
+ mem0_open_mcp-0.1.9.dist-info/entry_points.txt,sha256=WXqVdvwhFvMkzAmNtdlHlRZV23yikM43BtB8S4F9ByE,54
15
+ mem0_open_mcp-0.1.9.dist-info/RECORD,,
mem0_server/cli.py CHANGED
@@ -204,7 +204,7 @@ def _run_memory_tests(config: Mem0ServerConfig) -> bool:
204
204
  console.print("[bold]Running memory tests...[/bold]\n")
205
205
 
206
206
  test_user_id = f"__test_user_{uuid.uuid4().hex[:8]}"
207
- test_memory_text = "This is a test memory for connectivity verification."
207
+ test_memory_text = "My name is TestUser and I prefer dark mode. I work as a software engineer."
208
208
  max_retries = 20
209
209
  retry_interval = 0.5
210
210
 
@@ -220,15 +220,16 @@ def _run_memory_tests(config: Mem0ServerConfig) -> bool:
220
220
  console.print(" [dim]1. Adding test memory...[/dim]", end=" ")
221
221
  add_result = memory.add(test_memory_text, user_id=test_user_id)
222
222
  memory_id = None
223
- if add_result and add_result.get("results"):
223
+ if add_result and add_result.get("results") and len(add_result["results"]) > 0:
224
224
  first_result = add_result["results"][0]
225
225
  memory_id = first_result.get("id") if first_result else None
226
226
  if memory_id:
227
227
  console.print(f"[green]✓ Added (id: {memory_id[:8]}...)[/green]")
228
228
  else:
229
- console.print("[green] Added[/green]")
229
+ console.print("[yellow] No memory extracted by LLM[/yellow]")
230
230
  else:
231
- console.print("[green] Added[/green]")
231
+ console.print("[yellow] No memory extracted by LLM[/yellow]")
232
+ console.print(f" [dim]add_result: {add_result}[/dim]")
232
233
 
233
234
  # 2. List memories (with retry)
234
235
  console.print(" [dim]2. Listing memories...[/dim]", end=" ")
@@ -765,11 +766,11 @@ def status(
765
766
  @app.command()
766
767
  def init(
767
768
  path: Annotated[
768
- Path,
769
+ Path | None,
769
770
  typer.Argument(
770
- help="Path to create configuration file.",
771
+ help="Path to create configuration file. Defaults to ~/.config/mem0-open-mcp.yaml",
771
772
  ),
772
- ] = Path("mem0-open-mcp.yaml"),
773
+ ] = None,
773
774
  force: Annotated[
774
775
  bool,
775
776
  typer.Option("--force", "-f", help="Overwrite existing file."),
@@ -782,15 +783,19 @@ def init(
782
783
  mem0-open-mcp init ./config.yaml
783
784
  mem0-open-mcp init --force
784
785
  """
785
- if path.exists() and not force:
786
- console.print(f"[red]File already exists: {path}[/red]")
786
+ default_path = Path.home() / ".mem0-open-mcp.yaml"
787
+ target_path = path if path else default_path
788
+
789
+ if target_path.exists() and not force:
790
+ console.print(f"[red]File already exists: {target_path}[/red]")
787
791
  console.print("[dim]Use --force to overwrite[/dim]")
788
792
  raise typer.Exit(1)
789
793
 
790
- saved_path = ConfigLoader.create_default_config_file(path)
791
- console.print(f"[green]✓[/green] Created default configuration: [cyan]{saved_path}[/cyan]")
794
+ saved_path = ConfigLoader.create_default_config_file(target_path)
795
+ console.print(f"[green]✓[/green] Created configuration file:")
796
+ console.print(f" [cyan]{saved_path.absolute()}[/cyan]")
792
797
  console.print("\n[dim]Edit the file to customize your settings, then run:[/dim]")
793
- console.print(f" [bold]mem0-open-mcp serve --config {saved_path}[/bold]")
798
+ console.print(" [bold]mem0-open-mcp serve[/bold]")
794
799
 
795
800
 
796
801
  if __name__ == "__main__":
@@ -28,13 +28,12 @@ class ConfigLoader:
28
28
  """Load and save mem0-server configuration from various sources."""
29
29
 
30
30
  DEFAULT_CONFIG_PATHS = [
31
+ Path.home() / ".mem0-open-mcp.yaml",
31
32
  Path("mem0-open-mcp.yaml"),
32
33
  Path("mem0-open-mcp.yml"),
33
34
  Path("mem0-open-mcp.json"),
34
- Path("mem0-open-mcp.yaml"),
35
- Path("mem0-server.yml"),
36
35
  Path.home() / ".config" / "mem0-open-mcp" / "config.yaml",
37
- Path.home() / ".mem0-open-mcp.yaml",
36
+ Path("mem0-server.yml"),
38
37
  ]
39
38
 
40
39
  def __init__(self, config_path: Path | str | None = None):