hmem-mcp 3.7.1 → 3.7.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/package.json
CHANGED
|
@@ -19,6 +19,11 @@ Do NOT just read this document — execute a tool call immediately.
|
|
|
19
19
|
If the tool `read_memory` is not available, tell the user:
|
|
20
20
|
"read_memory tool not found. Run `hmem init` to configure the MCP server."
|
|
21
21
|
|
|
22
|
+
**Announcements:** If `read_memory` or `hmem-sync pull` shows urgent announcements
|
|
23
|
+
(yellow warnings at the top), act on them **immediately** before doing anything else.
|
|
24
|
+
These are broadcast messages from the user or another device — typically config changes,
|
|
25
|
+
server migrations, or breaking updates that must be handled first.
|
|
26
|
+
|
|
22
27
|
---
|
|
23
28
|
|
|
24
29
|
## Path A: Fresh Session Start (no context yet)
|
|
@@ -96,12 +101,12 @@ read_memory(context_for="P0029", min_tag_score=7) # stricter — only strong ma
|
|
|
96
101
|
## Adapt Communication to User Skill Level
|
|
97
102
|
|
|
98
103
|
After loading memory, check H-prefix entries for **User Skill Assessments** (e.g. H0010 "User Skill: IT").
|
|
99
|
-
These
|
|
104
|
+
These contain 1-10 scores per subtopic — adapt your language accordingly:
|
|
100
105
|
|
|
101
|
-
- **
|
|
102
|
-
- **
|
|
103
|
-
- **
|
|
104
|
-
- **
|
|
106
|
+
- **1-4**: Explain concepts, avoid jargon, use analogies
|
|
107
|
+
- **5-6**: Brief explanations, some jargon OK
|
|
108
|
+
- **7-8**: Direct technical language, skip basics
|
|
109
|
+
- **9-10**: Peer-level discussion, challenge assumptions
|
|
105
110
|
|
|
106
111
|
If no skill assessment exists yet, create one based on the user's vocabulary and questions
|
|
107
112
|
(see hmem-write skill for the H-prefix convention).
|
|
@@ -176,6 +176,57 @@ Add `HMEM_SYNC_PASSPHRASE` to `.mcp.json` env block and restart the AI tool.
|
|
|
176
176
|
|
|
177
177
|
---
|
|
178
178
|
|
|
179
|
+
## Urgent Announcements
|
|
180
|
+
|
|
181
|
+
Broadcast messages to all synced devices. Each device sees announcements once on the next pull.
|
|
182
|
+
|
|
183
|
+
### When to send
|
|
184
|
+
|
|
185
|
+
- Server migration (new URL, DNS change)
|
|
186
|
+
- Breaking config changes (e.g. "update maxL1Chars to 200")
|
|
187
|
+
- Security issues (compromised token, rotate credentials)
|
|
188
|
+
- Coordinated action needed across all devices
|
|
189
|
+
|
|
190
|
+
### How to send
|
|
191
|
+
|
|
192
|
+
```bash
|
|
193
|
+
# From the directory containing .hmem-sync-config.json:
|
|
194
|
+
npx hmem-sync announce --message "Server URL changing to https://new-server/hmem-sync"
|
|
195
|
+
|
|
196
|
+
# Or via curl:
|
|
197
|
+
curl -X POST https://server/hmem-sync/announcements \
|
|
198
|
+
-H "Authorization: Bearer $TOKEN" \
|
|
199
|
+
-H "Content-Type: application/json" \
|
|
200
|
+
-d '{"message":"Your urgent message here"}'
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### How to edit or delete
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
# List all announcements:
|
|
207
|
+
curl -s https://server/hmem-sync/announcements -H "Authorization: Bearer $TOKEN"
|
|
208
|
+
|
|
209
|
+
# Edit (by ID from list):
|
|
210
|
+
curl -X PUT https://server/hmem-sync/announcements/2 \
|
|
211
|
+
-H "Authorization: Bearer $TOKEN" \
|
|
212
|
+
-H "Content-Type: application/json" \
|
|
213
|
+
-d '{"message":"Corrected message"}'
|
|
214
|
+
|
|
215
|
+
# Delete:
|
|
216
|
+
curl -X DELETE https://server/hmem-sync/announcements/2 \
|
|
217
|
+
-H "Authorization: Bearer $TOKEN"
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
### When you RECEIVE an announcement
|
|
221
|
+
|
|
222
|
+
Announcements appear as yellow warnings before pull output. They indicate urgent action is needed.
|
|
223
|
+
|
|
224
|
+
**Act on them immediately — before any other work.** Do not write to memory, do not start tasks.
|
|
225
|
+
Read the message, execute the requested action (config change, URL update, etc.), verify it worked,
|
|
226
|
+
then continue with normal work.
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
179
230
|
## Troubleshooting
|
|
180
231
|
|
|
181
232
|
| Problem | Cause | Fix |
|