Skip to content

Commit 9e792e4

Browse files
committed
refactor: complete brainspace → memory-access rename in source code
- Updated setup.sh with new package name and DB paths - Updated server.py: MCP server name and default DB path - Updated cli.py: docstrings and help text - Updated hooks/scripts/pre-compact.sh: comments - Verified zero remaining references to 'brainspace' or 'sem-mem' Ready for v0.1.2 release to PyPI
1 parent a36cfcb commit 9e792e4

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

hooks/scripts/pre-compact.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# otherwise be lost when the conversation window is compacted.
55
#
66
# Strategy: Read hook input, output a system message instructing Claude
7-
# to store key insights via sem-mem MCP tools before compaction.
7+
# to store key insights via memory-access MCP tools before compaction.
88

99
set -euo pipefail
1010

scripts/setup.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
# One-time setup script for the sem-mem MCP server.
2+
# One-time setup script for the memory-access MCP server.
33
# Usage: bash scripts/setup.sh
44
# Safe to run multiple times (idempotent).
55
set -euo pipefail
@@ -23,17 +23,17 @@ else
2323
info "uv installed ($(uv --version))"
2424
fi
2525

26-
# 2. Install the sem-mem package
27-
if uv tool list 2>/dev/null | grep -q '^sem-mem '; then
28-
info "sem-mem is already installed"
26+
# 2. Install the memory-access package
27+
if uv tool list 2>/dev/null | grep -q '^memory-access '; then
28+
info "memory-access is already installed"
2929
else
30-
echo "Installing sem-mem..."
31-
uv tool install sem-mem
32-
info "sem-mem installed"
30+
echo "Installing memory-access..."
31+
uv tool install memory-access
32+
info "memory-access installed"
3333
fi
3434

3535
# 3. Create default DB directory
36-
DB_DIR="$HOME/.claude/sem-mem"
36+
DB_DIR="$HOME/.claude/memory-access"
3737
mkdir -p "$DB_DIR"
3838
info "Database directory ready: $DB_DIR"
3939

@@ -59,14 +59,14 @@ fi
5959
# 5. Summary
6060
echo ""
6161
echo "========================================="
62-
echo " sem-mem setup complete"
62+
echo " memory-access setup complete"
6363
echo "========================================="
6464
echo ""
6565
echo "Run the MCP server:"
66-
echo " uv tool run sem-mem"
66+
echo " uv tool run memory-access"
6767
echo ""
6868
echo "Or install as a Claude Code plugin:"
69-
echo " claude plugin install sem-mem@brainspace"
69+
echo " claude plugin install memory-access@emmahyde"
7070
echo ""
7171
echo "Default database location:"
7272
echo " $DB_DIR/memory.db"

src/memory_access/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
def main():
9-
"""Entry point for sem-mem CLI."""
9+
"""Entry point for memory-access CLI."""
1010
if len(sys.argv) > 1 and sys.argv[1] == "kb":
1111
return _run_kb_cli()
1212

@@ -16,7 +16,7 @@ def main():
1616

1717

1818
def _run_kb_cli():
19-
parser = argparse.ArgumentParser(prog="sem-mem kb")
19+
parser = argparse.ArgumentParser(prog="memory-access kb")
2020
sub = parser.add_subparsers(dest="command", required=True)
2121

2222
# new
@@ -128,4 +128,4 @@ async def _cmd_refresh(app, ingestor, args):
128128
# Re-ingest — we need the original URL, but it's not stored on the KB model.
129129
# For now, require --crawl or --scrape on refresh too, or look for source_url from old chunks.
130130
# Since we don't store the source URL on the KB, print a message.
131-
print(f"Chunks cleared. Use 'sem-mem kb new' with --crawl/--scrape to re-ingest.", file=sys.stderr)
131+
print(f"Chunks cleared. Use 'memory-access kb new' with --crawl/--scrape to re-ingest.", file=sys.stderr)

src/memory_access/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ async def create_app(
233233
) -> SemMemApp:
234234
db_path = db_path or os.environ.get(
235235
"MEMORY_DB_PATH",
236-
os.path.expanduser("~/.claude/sem-mem/memory.db"),
236+
os.path.expanduser("~/.claude/memory-access/memory.db"),
237237
)
238238
store = InsightStore(db_path)
239239
await store.initialize()
@@ -246,7 +246,7 @@ async def create_app(
246246

247247

248248
def create_mcp_server() -> FastMCP:
249-
mcp = FastMCP("sem-mem")
249+
mcp = FastMCP("memory-access")
250250
app: SemMemApp | None = None
251251

252252
@mcp.tool()

0 commit comments

Comments
 (0)