@exaudeus/memory-mcp 1.9.1 → 1.9.3

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/dist/index.js CHANGED
@@ -215,7 +215,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
215
215
  // --- Retrieval ---
216
216
  {
217
217
  name: 'brief',
218
- description: `Session start for a project. Returns your preferences (global), gotchas, and recent work for this project and branch. Also surfaces stale entries that need review. Call once at the beginning of a conversation. Lobe names: ${currentLobeNames.join(', ') || 'none configured'}. Example: brief(lobe: "${currentLobeNames[0] ?? 'my-project'}")`,
218
+ description: `Start of conversation — call once to load context for a project. Returns stored preferences, gotchas overview, stale entries needing review, and entry counts. Example: {"lobe": "${currentLobeNames[0] ?? 'my-project'}"} Surfaces everything previously saved via learn/gotcha/convention/prefer. Call once at session start. Results stay valid for the entire conversation no need to re-call.`,
219
219
  inputSchema: {
220
220
  type: 'object',
221
221
  properties: {
@@ -226,14 +226,14 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
226
226
  },
227
227
  {
228
228
  name: 'recall',
229
- description: `Search stored knowledge by relevance within a project. BEFORE starting a task, describe what you are about to do in natural language and get relevant knowledge back (semantic + keyword search). Example: recall(lobe: "${currentLobeNames[0] ?? 'my-project'}", context: "how does auth token refresh work") or recall(lobe: "${currentLobeNames[0] ?? 'my-project'}", context: "refactoring the payment webhook handler")`,
229
+ description: `Before starting a task, surface prior knowledge you haven't loaded yet. Searches stored memory using semantic + keyword matching. Example: {"context": "auth token refresh", "lobe": "${currentLobeNames[0] ?? 'my-project'}"} Searches YOUR memory entries (from learn/gotcha/convention/prefer). Does NOT search the codebase or the internet. Call once per area. Skip if you already recalled this topic or received it from brief(). Knowledge stays in your context. Required param: "context" the area you need knowledge about.`,
230
230
  inputSchema: {
231
231
  type: 'object',
232
232
  properties: {
233
233
  lobe: lobeProperty,
234
234
  context: {
235
235
  type: 'string',
236
- description: 'Describe what you are about to do, in natural language.',
236
+ description: 'The topic or area you need knowledge about. Describe in natural language — e.g. "auth token refresh", "how modules communicate", "payment webhook handler".',
237
237
  },
238
238
  maxResults: {
239
239
  type: 'number',
@@ -246,7 +246,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
246
246
  },
247
247
  {
248
248
  name: 'gotchas',
249
- description: `Pitfalls in a project, optionally scoped to an area. Check BEFORE making changes to avoid known traps. Example: gotchas(lobe: "${currentLobeNames[0] ?? 'my-project'}", area: "auth") or gotchas(lobe: "${currentLobeNames[0] ?? 'my-project'}") for all gotchas.`,
249
+ description: `Before making changes to an area, check for known pitfalls. Retrieves stored gotchas, optionally filtered. Example: {"lobe": "${currentLobeNames[0] ?? 'my-project'}", "area": "auth"} or {"lobe": "${currentLobeNames[0] ?? 'my-project'}"} for all. brief() already includes a gotchas overview. Use this when you need gotchas for a specific area not covered in the briefing.`,
250
250
  inputSchema: {
251
251
  type: 'object',
252
252
  properties: {
@@ -261,7 +261,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
261
261
  },
262
262
  {
263
263
  name: 'conventions',
264
- description: `Coding patterns and standards in a project, optionally scoped to an area. Check BEFORE writing new code to follow established patterns. Example: conventions(lobe: "${currentLobeNames[0] ?? 'my-project'}", area: "testing") or conventions(lobe: "${currentLobeNames[0] ?? 'my-project'}") for all conventions.`,
264
+ description: `Before writing new code, check how this codebase does things. Retrieves stored conventions, optionally filtered. Example: {"lobe": "${currentLobeNames[0] ?? 'my-project'}", "area": "testing"} or {"lobe": "${currentLobeNames[0] ?? 'my-project'}"} for all. recall() also surfaces conventions. Use this for focused convention lookup, recall() for broader cross-topic search.`,
265
265
  inputSchema: {
266
266
  type: 'object',
267
267
  properties: {
@@ -277,7 +277,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
277
277
  // --- Storage ---
278
278
  {
279
279
  name: 'gotcha',
280
- description: `Flag a pitfall you hit what you expected vs what actually happened. Gets priority in brief and recall results. Returns related knowledge you might want to review. Example: gotcha(lobe: "${currentLobeNames[0] ?? 'my-project'}", observation: "Gradle cache must be cleaned after Tuist changes or builds silently use stale artifacts")`,
280
+ description: `When something surprises you or doesn't work as expected, flag it here. Example: {"lobe": "${currentLobeNames[0] ?? 'my-project'}", "observation": "Gradle cache must be cleaned after Tuist changes or builds silently use stale artifacts"} Store facts that help future sessions, not notes about this one. Wrong: "Build failed because of stale cache." Right: "Gradle cache must be cleaned after Tuist changes." One insight per call. Persists across sessions, gets priority in brief() and recall(). Returns related knowledge. Required params: "lobe", "observation".`,
281
281
  inputSchema: {
282
282
  type: 'object',
283
283
  properties: {
@@ -298,7 +298,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
298
298
  },
299
299
  {
300
300
  name: 'convention',
301
- description: `Record a codebase pattern you observed how the code is structured, naming rules, architectural decisions. For personal rules or preferences, use prefer() instead. Returns related knowledge. Example: convention(lobe: "${currentLobeNames[0] ?? 'my-project'}", observation: "All ViewModels use StateFlow for UI state. LiveData is banned.")`,
301
+ description: `When you notice a pattern the codebase follows, record it here. For personal style rules, use prefer() instead. Example: {"lobe": "${currentLobeNames[0] ?? 'my-project'}", "observation": "All ViewModels use StateFlow for UI state. LiveData is banned."} Store facts that help future sessions, not notes about this one. Wrong: "Migrated to StateFlow." Right: "All ViewModels use StateFlow." One insight per call. Persists across sessions, surfaces in brief() and recall(). Returns related knowledge. Required params: "lobe", "observation".`,
302
302
  inputSchema: {
303
303
  type: 'object',
304
304
  properties: {
@@ -319,7 +319,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
319
319
  },
320
320
  {
321
321
  name: 'learn',
322
- description: `Store architecture, dependencies, decisions, progress, or any knowledge not covered by gotcha() or convention(). Use this as the catch-all for insights worth remembering. Returns related knowledge. Example: learn(lobe: "${currentLobeNames[0] ?? 'my-project'}", observation: "Payments module depends on auth for tokens only no other cross-module dependency")`,
322
+ description: `When you understand how something works architecture, dependencies, module boundaries store it here. Catch-all for knowledge not covered by gotcha/convention. Example: {"lobe": "${currentLobeNames[0] ?? 'my-project'}", "observation": "Payments module depends on auth for tokens only, no other cross-module dependency"} Store facts that help future sessions, not actions you took or bugs you fixed. Wrong: "Fixed the null pointer in UserService." Right: "UserService.getUser() returns null when session expires — callers must handle this." One insight per call. Persists across sessions. Returns related knowledge. Required params: "lobe", "observation".`,
323
323
  inputSchema: {
324
324
  type: 'object',
325
325
  properties: {
@@ -340,7 +340,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
340
340
  },
341
341
  {
342
342
  name: 'prefer',
343
- description: `When your user corrects you or states a working-style rule, record it here. Persists globally by default and is surfaced in every brief(). Optionally scope to a specific project. Example: prefer(rule: "Never use !! operator") or prefer(rule: "Use Anvil for DI", lobe: "${currentLobeNames[0] ?? 'my-project'}")`,
343
+ description: `When the user corrects you or states how they want things done, record it here. Example: {"rule": "Never use !! operator"} or {"rule": "Use Anvil for DI", "lobe": "${currentLobeNames[0] ?? 'my-project'}"} Highest trust level. Persists across sessions, surfaced in every brief(). Omit lobe for global preferences; add lobe to scope to one project. Required param: "rule".`,
344
344
  inputSchema: {
345
345
  type: 'object',
346
346
  properties: {
@@ -359,7 +359,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
359
359
  // --- Maintenance ---
360
360
  {
361
361
  name: 'fix',
362
- description: `Correct or delete a memory entry. IDs appear in brief(), recall(), gotchas(), and conventions() results. Pass correction to update content; omit correction to delete the entry entirely. Example: fix(id: "gotcha-a1b2c3d4", correction: "Fixed in v2.3 cache is auto-cleaned now") or fix(id: "gotcha-a1b2c3d4") to delete.`,
362
+ description: `When a stored entry is wrong or outdated, correct or delete it. IDs appear in brief/recall/gotchas/conventions results. Example: {"id": "gotcha-3f7a", "correction": "Updated text"} to replace, or {"id": "gotcha-3f7a"} to delete. Required param: "id". Pass "correction" to update; omit to delete.`,
363
363
  inputSchema: {
364
364
  type: 'object',
365
365
  properties: {
@@ -384,7 +384,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
384
384
  // but are hidden from tool discovery. Agents use the new v2 tools above.
385
385
  {
386
386
  name: 'memory_bootstrap',
387
- description: 'First-time setup: scan repo structure, README, and build system to seed initial knowledge. Run once per new codebase. If the lobe does not exist yet, provide "root" to auto-add it to memory-config.json and proceed without a manual restart.',
387
+ description: 'First time with a new codebase — scans repo structure, README, and build system to seed initial memory. Run once per project. Example: {"lobe": "my-project"} or {"lobe": "new-project", "root": "/path/to/repo"} to auto-create lobe.',
388
388
  inputSchema: {
389
389
  type: 'object',
390
390
  properties: {
package/dist/normalize.js CHANGED
@@ -23,16 +23,18 @@ const TOOL_ALIASES = {
23
23
  memory_store: { scope: 'topic' },
24
24
  // Legacy tools: "description"/"task" mean "context"
25
25
  memory_context: { description: 'context', task: 'context' },
26
- // v2 retrieval tools: "query"/"search"/"description"/"task" mean "context"
27
- recall: { query: 'context', search: 'context', description: 'context', task: 'context' },
28
- // v2 storage tools: "content"/"note"/"fact" mean "observation"
29
- gotcha: { content: 'observation', note: 'observation', fact: 'observation', message: 'observation' },
30
- convention: { content: 'observation', note: 'observation', fact: 'observation', message: 'observation' },
31
- learn: { content: 'observation', note: 'observation', fact: 'observation', message: 'observation' },
32
- // v2 prefer: "preference"/"pref" mean "rule"
33
- prefer: { preference: 'rule', pref: 'rule' },
34
- // v2 fix: "text"/"content"/"replacement" mean "correction"
35
- fix: { text: 'correction', content: 'correction', replacement: 'correction' },
26
+ // v2 retrieval tools: tool-name-as-param + common guesses map to "context"
27
+ recall: { recall: 'context', query: 'context', search: 'context', description: 'context', task: 'context', topic: 'context', area: 'context' },
28
+ // v2 brief: common guesses map to "lobe"
29
+ brief: { project: 'lobe' },
30
+ // v2 storage tools: tool-name-as-param + common guesses all map to "observation"
31
+ gotcha: { gotcha: 'observation', content: 'observation', note: 'observation', fact: 'observation', message: 'observation', pitfall: 'observation', trap: 'observation' },
32
+ convention: { convention: 'observation', content: 'observation', note: 'observation', fact: 'observation', message: 'observation', pattern: 'observation', rule: 'observation' },
33
+ learn: { learn: 'observation', knowledge: 'observation', insight: 'observation', content: 'observation', note: 'observation', fact: 'observation', message: 'observation' },
34
+ // v2 prefer: tool-name-as-param + common guesses map to "rule"
35
+ prefer: { prefer: 'rule', preference: 'rule', pref: 'rule', observation: 'rule', content: 'rule' },
36
+ // v2 fix: tool-name-as-param + common guesses map to "correction"
37
+ fix: { fix: 'correction', text: 'correction', content: 'correction', replacement: 'correction', update: 'correction' },
36
38
  // v2 retrieval: "filter"/"keyword" mean "area"
37
39
  gotchas: { filter: 'area', keyword: 'area', query: 'area', search: 'area' },
38
40
  conventions: { filter: 'area', keyword: 'area', query: 'area', search: 'area' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exaudeus/memory-mcp",
3
- "version": "1.9.1",
3
+ "version": "1.9.3",
4
4
  "description": "Codebase memory MCP server - persistent, evolving knowledge for AI coding agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",