codebase-memory-mcp 0.6.0__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.
@@ -0,0 +1,55 @@
1
+ # Binaries
2
+ code-graph-mcp
3
+ /codebase-memory-mcp
4
+ bin/
5
+ *.exe
6
+ *.dll
7
+ *.so
8
+ *.dylib
9
+
10
+ # Test artifacts
11
+ *.test
12
+ *.out
13
+ coverage.txt
14
+
15
+ # Test fixture temp dirs (created by C test suite in CWD instead of /tmp/)
16
+ cbm_*/
17
+ cli-*/
18
+
19
+ # IDE
20
+ .idea/
21
+ .vscode/
22
+ *.swp
23
+ *.swo
24
+
25
+ # OS
26
+ .DS_Store
27
+ Thumbs.db
28
+
29
+ # Database files (local cache)
30
+ *.db
31
+ *.db-wal
32
+ *.db-shm
33
+
34
+ # MCP config (user-local, generated by install command)
35
+ .mcp.json
36
+
37
+ # MCP Registry auth tokens
38
+ .mcpregistry_*
39
+
40
+ # Local project memory (Claude Code auto-memory)
41
+ memory/
42
+ reference/
43
+
44
+ # Build artifacts
45
+ build/
46
+ node_modules/
47
+ graph-ui/dist/
48
+
49
+ # Generated reports
50
+ BENCHMARK_REPORT.md
51
+ TEST_PLAN.md
52
+ CHANGELOG.md
53
+
54
+ # Soak test output
55
+ soak-results/
@@ -0,0 +1,54 @@
1
+ Metadata-Version: 2.4
2
+ Name: codebase-memory-mcp
3
+ Version: 0.6.0
4
+ Summary: Fast code intelligence engine for AI coding agents — single static binary MCP server
5
+ Project-URL: Homepage, https://github.com/DeusData/codebase-memory-mcp
6
+ Project-URL: Repository, https://github.com/DeusData/codebase-memory-mcp
7
+ Project-URL: Issues, https://github.com/DeusData/codebase-memory-mcp/issues
8
+ License: MIT
9
+ Keywords: ai,claude,code-intelligence,codebase,llm,mcp,memory
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Environment :: Console
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Operating System :: MacOS
15
+ Classifier: Operating System :: Microsoft :: Windows
16
+ Classifier: Operating System :: POSIX :: Linux
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
19
+ Classifier: Topic :: Software Development
20
+ Requires-Python: >=3.8
21
+ Description-Content-Type: text/markdown
22
+
23
+ # codebase-memory-mcp
24
+
25
+ **Fast code intelligence engine for AI coding agents.** Indexes an average repository in milliseconds, the Linux kernel (28M LOC) in 3 minutes. Answers structural queries in under 1ms.
26
+
27
+ This package installs the `codebase-memory-mcp` binary from [GitHub Releases](https://github.com/DeusData/codebase-memory-mcp/releases). The binary is downloaded on first run and cached in your OS cache directory.
28
+
29
+ ## Installation
30
+
31
+ ```bash
32
+ pip install codebase-memory-mcp
33
+ # or
34
+ pipx install codebase-memory-mcp
35
+ ```
36
+
37
+ ## Usage
38
+
39
+ ```bash
40
+ codebase-memory-mcp install # configure your coding agents
41
+ codebase-memory-mcp --help
42
+ ```
43
+
44
+ ## Supported platforms
45
+
46
+ | OS | Architecture |
47
+ |---------|-------------|
48
+ | macOS | arm64, amd64 |
49
+ | Linux | arm64, amd64 |
50
+ | Windows | amd64 |
51
+
52
+ ## Full documentation
53
+
54
+ See [github.com/DeusData/codebase-memory-mcp](https://github.com/DeusData/codebase-memory-mcp)
@@ -0,0 +1,32 @@
1
+ # codebase-memory-mcp
2
+
3
+ **Fast code intelligence engine for AI coding agents.** Indexes an average repository in milliseconds, the Linux kernel (28M LOC) in 3 minutes. Answers structural queries in under 1ms.
4
+
5
+ This package installs the `codebase-memory-mcp` binary from [GitHub Releases](https://github.com/DeusData/codebase-memory-mcp/releases). The binary is downloaded on first run and cached in your OS cache directory.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ pip install codebase-memory-mcp
11
+ # or
12
+ pipx install codebase-memory-mcp
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ```bash
18
+ codebase-memory-mcp install # configure your coding agents
19
+ codebase-memory-mcp --help
20
+ ```
21
+
22
+ ## Supported platforms
23
+
24
+ | OS | Architecture |
25
+ |---------|-------------|
26
+ | macOS | arm64, amd64 |
27
+ | Linux | arm64, amd64 |
28
+ | Windows | amd64 |
29
+
30
+ ## Full documentation
31
+
32
+ See [github.com/DeusData/codebase-memory-mcp](https://github.com/DeusData/codebase-memory-mcp)
@@ -0,0 +1,35 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "codebase-memory-mcp"
7
+ version = "0.6.0"
8
+ description = "Fast code intelligence engine for AI coding agents — single static binary MCP server"
9
+ readme = "README.md"
10
+ license = { text = "MIT" }
11
+ requires-python = ">=3.8"
12
+ keywords = ["mcp", "claude", "code-intelligence", "codebase", "memory", "ai", "llm"]
13
+ classifiers = [
14
+ "Development Status :: 4 - Beta",
15
+ "Environment :: Console",
16
+ "Intended Audience :: Developers",
17
+ "License :: OSI Approved :: MIT License",
18
+ "Operating System :: MacOS",
19
+ "Operating System :: POSIX :: Linux",
20
+ "Operating System :: Microsoft :: Windows",
21
+ "Programming Language :: Python :: 3",
22
+ "Topic :: Software Development",
23
+ "Topic :: Scientific/Engineering :: Artificial Intelligence",
24
+ ]
25
+
26
+ [project.urls]
27
+ Homepage = "https://github.com/DeusData/codebase-memory-mcp"
28
+ Repository = "https://github.com/DeusData/codebase-memory-mcp"
29
+ Issues = "https://github.com/DeusData/codebase-memory-mcp/issues"
30
+
31
+ [project.scripts]
32
+ codebase-memory-mcp = "codebase_memory_mcp:main"
33
+
34
+ [tool.hatch.build.targets.wheel]
35
+ packages = ["src/codebase_memory_mcp"]
@@ -0,0 +1,17 @@
1
+ """
2
+ codebase-memory-mcp — Fast code intelligence engine for AI coding agents.
3
+ Downloads and runs the codebase-memory-mcp binary from GitHub Releases.
4
+ """
5
+
6
+ try:
7
+ from importlib.metadata import version, PackageNotFoundError
8
+ try:
9
+ __version__ = version("codebase-memory-mcp")
10
+ except PackageNotFoundError:
11
+ __version__ = "unknown"
12
+ except ImportError:
13
+ __version__ = "unknown"
14
+
15
+ from ._cli import main
16
+
17
+ __all__ = ["main", "__version__"]
@@ -0,0 +1,4 @@
1
+ from ._cli import main
2
+
3
+ if __name__ == "__main__":
4
+ main()
@@ -0,0 +1,122 @@
1
+ """Downloads the codebase-memory-mcp binary on first run, then exec's it."""
2
+
3
+ import os
4
+ import sys
5
+ import platform
6
+ import stat
7
+ import shutil
8
+ import tempfile
9
+ import urllib.request
10
+ import urllib.error
11
+ from pathlib import Path
12
+
13
+ REPO = "DeusData/codebase-memory-mcp"
14
+
15
+
16
+ def _version() -> str:
17
+ try:
18
+ from importlib.metadata import version
19
+ return version("codebase-memory-mcp")
20
+ except Exception:
21
+ return "0.6.0"
22
+
23
+
24
+ def _os_name() -> str:
25
+ p = sys.platform
26
+ if p == "linux":
27
+ return "linux"
28
+ if p == "darwin":
29
+ return "darwin"
30
+ if p == "win32":
31
+ return "windows"
32
+ sys.exit(f"codebase-memory-mcp: unsupported platform: {p}")
33
+
34
+
35
+ def _arch() -> str:
36
+ m = platform.machine().lower()
37
+ if m in ("arm64", "aarch64"):
38
+ return "arm64"
39
+ if m in ("x86_64", "amd64"):
40
+ return "amd64"
41
+ sys.exit(f"codebase-memory-mcp: unsupported architecture: {m}")
42
+
43
+
44
+ def _cache_dir() -> Path:
45
+ if sys.platform == "win32":
46
+ base = Path(os.environ.get("LOCALAPPDATA", Path.home() / "AppData" / "Local"))
47
+ elif sys.platform == "darwin":
48
+ base = Path.home() / "Library" / "Caches"
49
+ else:
50
+ base = Path(os.environ.get("XDG_CACHE_HOME", Path.home() / ".cache"))
51
+ return base / "codebase-memory-mcp"
52
+
53
+
54
+ def _bin_path(version: str) -> Path:
55
+ name = "codebase-memory-mcp.exe" if sys.platform == "win32" else "codebase-memory-mcp"
56
+ return _cache_dir() / version / name
57
+
58
+
59
+ def _download(version: str) -> Path:
60
+ os_name = _os_name()
61
+ arch = _arch()
62
+ ext = "zip" if os_name == "windows" else "tar.gz"
63
+ url = (
64
+ f"https://github.com/{REPO}/releases/download/v{version}"
65
+ f"/codebase-memory-mcp-{os_name}-{arch}.{ext}"
66
+ )
67
+
68
+ dest = _bin_path(version)
69
+ dest.parent.mkdir(parents=True, exist_ok=True)
70
+
71
+ print(
72
+ f"codebase-memory-mcp: downloading v{version} for {os_name}/{arch}...",
73
+ file=sys.stderr,
74
+ )
75
+
76
+ with tempfile.TemporaryDirectory() as tmp:
77
+ tmp_archive = os.path.join(tmp, f"cbm.{ext}")
78
+ try:
79
+ urllib.request.urlretrieve(url, tmp_archive)
80
+ except urllib.error.HTTPError as e:
81
+ sys.exit(
82
+ f"codebase-memory-mcp: download failed ({e})\n"
83
+ f"URL: {url}\n"
84
+ f"See https://github.com/{REPO}/releases for available versions."
85
+ )
86
+
87
+ if ext == "tar.gz":
88
+ import tarfile
89
+ with tarfile.open(tmp_archive) as tf:
90
+ tf.extractall(tmp)
91
+ else:
92
+ import zipfile
93
+ with zipfile.ZipFile(tmp_archive) as zf:
94
+ zf.extractall(tmp)
95
+
96
+ bin_name = "codebase-memory-mcp.exe" if os_name == "windows" else "codebase-memory-mcp"
97
+ extracted = os.path.join(tmp, bin_name)
98
+ if not os.path.exists(extracted):
99
+ sys.exit(f"codebase-memory-mcp: binary not found after extraction")
100
+
101
+ shutil.copy2(extracted, dest)
102
+ current = dest.stat().st_mode
103
+ dest.chmod(current | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
104
+
105
+ return dest
106
+
107
+
108
+ def main() -> None:
109
+ version = _version()
110
+ bin_path = _bin_path(version)
111
+
112
+ if not bin_path.exists():
113
+ bin_path = _download(version)
114
+
115
+ args = [str(bin_path)] + sys.argv[1:]
116
+
117
+ if sys.platform != "win32":
118
+ os.execv(str(bin_path), args)
119
+ else:
120
+ import subprocess
121
+ result = subprocess.run(args)
122
+ sys.exit(result.returncode)