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.
- {cortex_local-2.0.5 → cortex_local-2.0.6}/PKG-INFO +12 -1
- {cortex_local-2.0.5 → cortex_local-2.0.6}/README.md +11 -0
- {cortex_local-2.0.5 → cortex_local-2.0.6}/cortex/cli.py +10 -5
- {cortex_local-2.0.5 → cortex_local-2.0.6}/pyproject.toml +1 -1
- {cortex_local-2.0.5 → cortex_local-2.0.6}/cortex/__init__.py +0 -0
- {cortex_local-2.0.5 → cortex_local-2.0.6}/cortex/config.py +0 -0
- {cortex_local-2.0.5 → cortex_local-2.0.6}/cortex/embedder.py +0 -0
- {cortex_local-2.0.5 → cortex_local-2.0.6}/cortex/indexer.py +0 -0
- {cortex_local-2.0.5 → cortex_local-2.0.6}/cortex/mcp_server.py +0 -0
- {cortex_local-2.0.5 → cortex_local-2.0.6}/cortex/state.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cortex-local
|
|
3
|
-
Version: 2.0.
|
|
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
|
-
[
|
|
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{
|
|
62
|
-
click.echo(
|
|
63
|
-
sys.exit(1)
|
|
67
|
+
click.echo(f"MCP registration failed. Run manually:\n {mcp_cmd}")
|
|
68
|
+
click.echo(result.stderr.strip())
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|