opencode-mempalace 0.1.1 → 0.1.2

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.
package/README.md CHANGED
@@ -13,8 +13,35 @@ Auto-registers the MemPalace MCP server, injects the memory protocol into the sy
13
13
  }
14
14
  ```
15
15
 
16
- Requires the mempalace-js MCP server and a running [ChromaDB](https://www.trychroma.com/) instance.
16
+ ## Prerequisites
17
17
 
18
+ ### 1. ChromaDB
19
+
20
+ The mempalace MCP server requires a running [ChromaDB](https://www.trychroma.com/) instance for vector storage.
21
+
22
+ ```bash
23
+ # Docker (recommended)
24
+ docker run -d --name chromadb \
25
+ -p 127.0.0.1:8000:8000 \
26
+ -v chromadb-data:/chroma/chroma \
27
+ --restart unless-stopped \
28
+ chromadb/chroma:latest
29
+
30
+ # Or pip
31
+ pip install chromadb
32
+ chroma run --host 0.0.0.0 --port 8000
33
+ ```
34
+
35
+ ### 2. mempalace-js
36
+
37
+ Install the [mempalace-js](https://github.com/nguyentamdat/mempalace-js) MCP server:
38
+
39
+ ```bash
40
+ npm install -g @nguyentamdat/mempalace
41
+ # Or clone and build
42
+ git clone https://github.com/nguyentamdat/mempalace-js.git
43
+ cd mempalace-js && bun install
44
+ ```
18
45
  ## What it does
19
46
 
20
47
  1. **MCP auto-registration** — Adds the mempalace MCP server to your OpenCode session automatically (19 tools: search, diary, knowledge graph, entity management, etc.)
@@ -31,7 +58,7 @@ Pass options via your OpenCode plugin config:
31
58
  | `disableMcp` | `boolean` | `false` | Skip auto-registering MCP server |
32
59
  | `disableProtocol` | `boolean` | `false` | Skip injecting PALACE_PROTOCOL |
33
60
  | `disableAutoLoad` | `boolean` | `false` | Skip auto-loading context on first message |
34
-
61
+ | `chromaUrl` | `string` | `http://localhost:8001` | ChromaDB server URL |
35
62
  ## MCP Tools
36
63
 
37
64
  The mempalace MCP server exposes 19 tools:
@@ -58,6 +85,17 @@ The mempalace MCP server exposes 19 tools:
58
85
  | `mempalace_graph_stats` | Graph structure statistics |
59
86
  | `mempalace_get_aaak_spec` | AAAK compression dialect spec |
60
87
 
88
+ ## Environment Variables
89
+
90
+ | Variable | Description | Default |
91
+ |---|---|---|
92
+ | `CHROMA_URL` | ChromaDB server URL | `http://localhost:8000` |
93
+ | `MEMPALACE_PALACE_PATH` | Palace data directory | `~/.mempalace/palace` |
94
+
95
+ ## Related
96
+
97
+ - [mempalace-js](https://github.com/nguyentamdat/mempalace-js) — Full Bun/TypeScript port of the mempalace system (CLI + MCP server)
98
+ - [mempalace](https://github.com/milla-jovovich/mempalace) — Original Python implementation
61
99
  ## Acknowledgements
62
100
 
63
101
  This project is a Bun/TypeScript port of the original [mempalace](https://github.com/milla-jovovich/mempalace) by [milla-jovovich](https://github.com/milla-jovovich). The palace architecture, AAAK compression dialect, knowledge graph design, and MCP tool definitions all originate from their work.
package/dist/index.js CHANGED
@@ -50,7 +50,8 @@ var mempalacePlugin = async (_input, options) => {
50
50
  if (!config.mcp.mempalace) {
51
51
  config.mcp.mempalace = {
52
52
  type: "local",
53
- command: mcpCommand
53
+ command: mcpCommand,
54
+ environment: { CHROMA_URL: opts.chromaUrl ?? "http://localhost:8001" }
54
55
  };
55
56
  }
56
57
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-mempalace",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "OpenCode plugin for MemPalace memory system — auto-registers MCP server, injects memory protocol into system prompt, and loads context on session start",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",