agent-memory-store 0.0.3 → 0.0.5
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 +57 -27
- package/package.json +1 -1
- package/src/store.js +3 -3
package/README.MD
CHANGED
|
@@ -18,16 +18,16 @@ Agents read and write **chunks** (markdown files with YAML frontmatter) through
|
|
|
18
18
|
└────────────────┬─────────────────-┘
|
|
19
19
|
│ MCP tools
|
|
20
20
|
┌──────────▼──────────┐
|
|
21
|
-
│
|
|
22
|
-
│ search · write
|
|
23
|
-
│ read · state · list
|
|
21
|
+
│ agent-memory-store │
|
|
22
|
+
│ search · write │
|
|
23
|
+
│ read · state · list │
|
|
24
24
|
└──────────┬──────────┘
|
|
25
25
|
│
|
|
26
26
|
┌──────────▼──────────┐
|
|
27
|
-
│ .agent-memory-store/
|
|
28
|
-
│ ├── chunks/
|
|
29
|
-
│ └── state/
|
|
30
|
-
|
|
27
|
+
│ .agent-memory-store/ │
|
|
28
|
+
│ ├── chunks/ │
|
|
29
|
+
│ └── state/ │
|
|
30
|
+
└──────────────────────┘
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
## Features
|
|
@@ -52,7 +52,9 @@ No installation needed:
|
|
|
52
52
|
npx agent-memory-store
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
By default, memory is stored in `.agent-memory-store/` inside the directory where the server starts — so each project gets its own isolated store automatically.
|
|
56
|
+
|
|
57
|
+
To use a custom path:
|
|
56
58
|
|
|
57
59
|
```bash
|
|
58
60
|
AGENT_STORE_PATH=/your/project/.agent-memory-store npx agent-memory-store
|
|
@@ -69,10 +71,7 @@ Add to your project's `claude.mcp.json` (or `~/.claude/claude.mcp.json` for glob
|
|
|
69
71
|
"mcpServers": {
|
|
70
72
|
"agent-memory-store": {
|
|
71
73
|
"command": "npx",
|
|
72
|
-
"args": ["-y", "agent-memory-store"]
|
|
73
|
-
"env": {
|
|
74
|
-
"AGENT_STORE_PATH": "/your/project/.agent-memory-store"
|
|
75
|
-
}
|
|
74
|
+
"args": ["-y", "agent-memory-store"]
|
|
76
75
|
}
|
|
77
76
|
}
|
|
78
77
|
}
|
|
@@ -81,10 +80,7 @@ Add to your project's `claude.mcp.json` (or `~/.claude/claude.mcp.json` for glob
|
|
|
81
80
|
Or using the Claude Code CLI:
|
|
82
81
|
|
|
83
82
|
```bash
|
|
84
|
-
claude mcp add agent-memory-store
|
|
85
|
-
--command "npx" \
|
|
86
|
-
--args "-y agent-memory-store" \
|
|
87
|
-
--env "AGENT_STORE_PATH=/your/project/.agent-memory-store"
|
|
83
|
+
claude mcp add agent-memory-store --command "npx" --args "-y agent-memory-store"
|
|
88
84
|
```
|
|
89
85
|
|
|
90
86
|
### opencode
|
|
@@ -93,13 +89,12 @@ Add to your `opencode.json`:
|
|
|
93
89
|
|
|
94
90
|
```json
|
|
95
91
|
{
|
|
92
|
+
"$schema": "https://opencode.ai/config.json",
|
|
96
93
|
"mcp": {
|
|
97
94
|
"agent-memory-store": {
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"AGENT_STORE_PATH": "/your/project/.agent-memory-store"
|
|
102
|
-
}
|
|
95
|
+
"type": "local",
|
|
96
|
+
"command": ["npx", "-y", "agent-memory-store"],
|
|
97
|
+
"enabled": true
|
|
103
98
|
}
|
|
104
99
|
}
|
|
105
100
|
}
|
|
@@ -112,11 +107,46 @@ Add to your MCP settings file:
|
|
|
112
107
|
```json
|
|
113
108
|
{
|
|
114
109
|
"servers": {
|
|
110
|
+
"agent-memory-store": {
|
|
111
|
+
"command": "npx",
|
|
112
|
+
"args": ["-y", "agent-memory-store"]
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Custom storage path
|
|
119
|
+
|
|
120
|
+
If you need to store memory outside the project directory, set `AGENT_STORE_PATH` in the environment block.
|
|
121
|
+
|
|
122
|
+
**Claude Code:**
|
|
123
|
+
|
|
124
|
+
```json
|
|
125
|
+
{
|
|
126
|
+
"mcpServers": {
|
|
115
127
|
"agent-memory-store": {
|
|
116
128
|
"command": "npx",
|
|
117
129
|
"args": ["-y", "agent-memory-store"],
|
|
118
130
|
"env": {
|
|
119
|
-
"AGENT_STORE_PATH": "/
|
|
131
|
+
"AGENT_STORE_PATH": "/absolute/path/to/.agent-memory-store"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
**opencode:**
|
|
139
|
+
|
|
140
|
+
```json
|
|
141
|
+
{
|
|
142
|
+
"$schema": "https://opencode.ai/config.json",
|
|
143
|
+
"mcp": {
|
|
144
|
+
"agent-memory-store": {
|
|
145
|
+
"type": "local",
|
|
146
|
+
"command": ["npx", "-y", "agent-memory-store"],
|
|
147
|
+
"enabled": true,
|
|
148
|
+
"environment": {
|
|
149
|
+
"AGENT_STORE_PATH": "/absolute/path/to/.agent-memory-store"
|
|
120
150
|
}
|
|
121
151
|
}
|
|
122
152
|
}
|
|
@@ -125,9 +155,9 @@ Add to your MCP settings file:
|
|
|
125
155
|
|
|
126
156
|
### Environment variables
|
|
127
157
|
|
|
128
|
-
| Variable | Default | Description
|
|
129
|
-
| ------------------ | ----------------------- |
|
|
130
|
-
| `AGENT_STORE_PATH` | `./.agent-memory-store` |
|
|
158
|
+
| Variable | Default | Description |
|
|
159
|
+
| ------------------ | ----------------------- | ------------------------------------------------------------------ |
|
|
160
|
+
| `AGENT_STORE_PATH` | `./.agent-memory-store` | Custom path to the storage directory. Omit to use project default. |
|
|
131
161
|
|
|
132
162
|
## Tools
|
|
133
163
|
|
|
@@ -171,7 +201,7 @@ value any (set_state only) Any JSON-serializable value.
|
|
|
171
201
|
|
|
172
202
|
## Storage format
|
|
173
203
|
|
|
174
|
-
Each chunk is a plain `.md` file under `.
|
|
204
|
+
Each chunk is a plain `.md` file under `.agent-memory-store/chunks/`:
|
|
175
205
|
|
|
176
206
|
```markdown
|
|
177
207
|
---
|
|
@@ -254,7 +284,7 @@ BM25 ranks documents by term frequency and inverse document frequency, normalize
|
|
|
254
284
|
## Development
|
|
255
285
|
|
|
256
286
|
```bash
|
|
257
|
-
git clone https://github.com/
|
|
287
|
+
git clone https://github.com/vbfs/agent-memory-store
|
|
258
288
|
cd agent-memory-store
|
|
259
289
|
npm install
|
|
260
290
|
npm start
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-memory-store",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "Local-first MCP memory server for multi-agent systems. BM25 search, zero external dependencies, file-based persistence.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./src/index.js",
|
package/src/store.js
CHANGED
|
@@ -25,9 +25,9 @@ import matter from "gray-matter";
|
|
|
25
25
|
import { createHash } from "crypto";
|
|
26
26
|
import { BM25 } from "./bm25.js";
|
|
27
27
|
|
|
28
|
-
const STORE_PATH = process.env.
|
|
29
|
-
? path.resolve(process.env.
|
|
30
|
-
: path.join(process.cwd(), ".
|
|
28
|
+
const STORE_PATH = process.env.AGENT_STORE_PATH
|
|
29
|
+
? path.resolve(process.env.AGENT_STORE_PATH)
|
|
30
|
+
: path.join(process.cwd(), ".agent-memory-store");
|
|
31
31
|
|
|
32
32
|
const CHUNKS_DIR = path.join(STORE_PATH, "chunks");
|
|
33
33
|
const STATE_DIR = path.join(STORE_PATH, "state");
|