cortex-local 2.0.5__tar.gz → 2.0.6__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cortex-local
3
- Version: 2.0.5
3
+ Version: 2.0.6
4
4
  Summary: Local semantic search MCP server — notes + code, embedded Qdrant, fastembed
5
5
  Requires-Python: >=3.11
6
6
  Requires-Dist: click>=8.0.0
@@ -25,6 +25,17 @@ cortex install
25
25
 
26
26
  `cortex install` downloads embedding models and registers the MCP server in Claude Code. Restart Claude Code after.
27
27
 
28
+ ### Legacy CPUs (no SSE4.2 / X86_V2)
29
+
30
+ NumPy 2.x requires SSE4.2. If you get a `RuntimeError: NumPy was built with baseline optimizations (X86_V2)` error, use the legacy extra with Python 3.12:
31
+
32
+ ```bash
33
+ pipx install "cortex-local[legacy]" --python /path/to/python3.12
34
+ cortex install
35
+ ```
36
+
37
+ `[legacy]` pins `numpy==1.26.4` which has no SSE4.2 requirement. Python 3.12 is required because numpy 1.26.x has no wheels for 3.13+.
38
+
28
39
  ## Usage
29
40
 
30
41
  ```bash
@@ -11,6 +11,17 @@ cortex install
11
11
 
12
12
  `cortex install` downloads embedding models and registers the MCP server in Claude Code. Restart Claude Code after.
13
13
 
14
+ ### Legacy CPUs (no SSE4.2 / X86_V2)
15
+
16
+ NumPy 2.x requires SSE4.2. If you get a `RuntimeError: NumPy was built with baseline optimizations (X86_V2)` error, use the legacy extra with Python 3.12:
17
+
18
+ ```bash
19
+ pipx install "cortex-local[legacy]" --python /path/to/python3.12
20
+ cortex install
21
+ ```
22
+
23
+ `[legacy]` pins `numpy==1.26.4` which has no SSE4.2 requirement. Python 3.12 is required because numpy 1.26.x has no wheels for 3.13+.
24
+
14
25
  ## Usage
15
26
 
16
27
  ```bash
@@ -1,5 +1,6 @@
1
1
  """cortex CLI — index <path> and serve (stdio MCP)."""
2
2
 
3
+ import shutil
3
4
  import subprocess
4
5
  import sys
5
6
  from pathlib import Path
@@ -49,15 +50,19 @@ def install_cmd() -> None:
49
50
  from .embedder import pull_models as _pull
50
51
  click.echo("Downloading embedding models...")
51
52
  _pull()
53
+ mcp_cmd = "claude mcp add cortex --transport stdio cortex serve"
54
+ claude = shutil.which("claude")
55
+ if not claude:
56
+ click.echo("Models ready. Register MCP manually (claude not found in PATH):")
57
+ click.echo(f" {mcp_cmd}")
58
+ return
52
59
  click.echo("Registering MCP server in Claude Code...")
53
60
  result = subprocess.run(
54
- ["claude", "mcp", "add", "cortex", "--transport", "stdio", "cortex", "serve"],
61
+ [claude, "mcp", "add", "cortex", "--transport", "stdio", "cortex", "serve"],
55
62
  capture_output=True, text=True,
56
- shell=(sys.platform == "win32"),
57
63
  )
58
64
  if result.returncode == 0:
59
65
  click.echo("Done. cortex is ready — restart Claude Code to activate.")
60
66
  else:
61
- click.echo(f"MCP registration failed:\n{result.stderr}")
62
- click.echo("Run manually: claude mcp add cortex --transport stdio cortex serve")
63
- sys.exit(1)
67
+ click.echo(f"MCP registration failed. Run manually:\n {mcp_cmd}")
68
+ click.echo(result.stderr.strip())
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "cortex-local"
7
- version = "2.0.5"
7
+ version = "2.0.6"
8
8
  description = "Local semantic search MCP server — notes + code, embedded Qdrant, fastembed"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"