memento-mcp 0.3.11 → 0.3.12

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "memento-mcp",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
4
4
  "mcpName": "io.github.myrakrusemark/memento-protocol",
5
5
  "description": "The Memento Protocol — persistent memory for AI agents",
6
6
  "type": "module",
@@ -73,7 +73,7 @@ if [ -f "$SCRIPT_DIR/../.env" ]; then
73
73
  fi
74
74
 
75
75
  MEMENTO_API="${MEMENTO_API_URL:-https://memento-api.myrakrusemark.workers.dev}"
76
- MEMENTO_KEY="${MEMENTO_API_KEY:?MEMENTO_API_KEY not set — check memento-protocol/.env or .memento.json}"
76
+ MEMENTO_KEY="${MEMENTO_API_KEY:?MEMENTO_API_KEY not set — check memento-mcp/.env or .memento.json}"
77
77
  MEMENTO_WS="${MEMENTO_WORKSPACE:-default}"
78
78
 
79
79
  # Parse transcript to readable text (use fathom's parser if available, else raw)
@@ -69,7 +69,7 @@ if [ -f "$SCRIPT_DIR/../.env" ]; then
69
69
  fi
70
70
 
71
71
  MEMENTO_API="${MEMENTO_API_URL:-https://memento-api.myrakrusemark.workers.dev}"
72
- MEMENTO_KEY="${MEMENTO_API_KEY:?MEMENTO_API_KEY not set — check memento-protocol/.env or .memento.json}"
72
+ MEMENTO_KEY="${MEMENTO_API_KEY:?MEMENTO_API_KEY not set — check memento-mcp/.env or .memento.json}"
73
73
  MEMENTO_WS="${MEMENTO_WORKSPACE:-default}"
74
74
 
75
75
  AUTH_HEADER="Authorization: Bearer $MEMENTO_KEY"
@@ -54,7 +54,7 @@ if [ -f "$SCRIPT_DIR/../.env" ]; then
54
54
  fi
55
55
 
56
56
  MEMENTO_API="${MEMENTO_API_URL:-https://memento-api.myrakrusemark.workers.dev}"
57
- MEMENTO_KEY="${MEMENTO_API_KEY:?MEMENTO_API_KEY not set — check memento-protocol/.env or .memento.json}"
57
+ MEMENTO_KEY="${MEMENTO_API_KEY:?MEMENTO_API_KEY not set — check memento-mcp/.env or .memento.json}"
58
58
  MEMENTO_WS="${MEMENTO_WORKSPACE:-default}"
59
59
 
60
60
  INPUT=$(cat)
@@ -96,8 +96,8 @@ try:
96
96
 
97
97
  memories = data.get('memories', {}).get('matches', [])
98
98
  if memories:
99
- for m in memories[:${RECALL_LIMIT:-5}]:
100
- content = m['content'][:${RECALL_MAX_LENGTH:-120}]
99
+ for m in memories[:${RECALL_LIMIT:-7}]:
100
+ content = m['content']
101
101
  t = abbrev.get(m['type'], m['type'])
102
102
  lines.append(f' 🔹 {content} [{m[\"id\"]} {t}]')
103
103
  count += 1
@@ -55,7 +55,7 @@ if [ -f "$SCRIPT_DIR/../.env" ]; then
55
55
  fi
56
56
 
57
57
  MEMENTO_API="${MEMENTO_API_URL:-https://memento-api.myrakrusemark.workers.dev}"
58
- MEMENTO_KEY="${MEMENTO_API_KEY:?MEMENTO_API_KEY not set — check memento-protocol/.env or .memento.json}"
58
+ MEMENTO_KEY="${MEMENTO_API_KEY:?MEMENTO_API_KEY not set — check memento-mcp/.env or .memento.json}"
59
59
  MEMENTO_WS="${MEMENTO_WORKSPACE:-default}"
60
60
 
61
61
  INPUT=$(cat)
@@ -88,8 +88,8 @@ try:
88
88
 
89
89
  memories = data.get('memories', {}).get('matches', [])
90
90
  if memories:
91
- for m in memories[:${RECALL_LIMIT:-5}]:
92
- content = m['content'][:${RECALL_MAX_LENGTH:-120}]
91
+ for m in memories[:${RECALL_LIMIT:-7}]:
92
+ content = m['content']
93
93
  t = abbrev.get(m['type'], m['type'])
94
94
  lines.append(f' 🔹 {content} [{m[\"id\"]} {t}]')
95
95
  count += 1