memvid-mcp-server 1.0.4 → 1.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 CHANGED
@@ -53,7 +53,7 @@ Add the following to your `claude_desktop_config.json`:
53
53
 
54
54
  1. **`create_or_open_memory`**: Initialize a new project memory or open an existing one.
55
55
  2. **`add_content`**: Add text and metadata to the memory.
56
- 3. **`search_memory`**: Search your memory.
56
+ 3. **`search_memory`**: Search your memory. Use `query="*"` to list all recent items.
57
57
  4. **`ask_memory`**: (Optional) Ask questions about your memory using an LLM.
58
58
 
59
59
  ## Development
package/dist/index.js CHANGED
@@ -149,15 +149,24 @@ function registerSearchMemory(server) {
149
149
  server.tool("search_memory", "Search for content in the project's memory using semantic search.", SearchMemorySchema.shape, async (args) => {
150
150
  const manager = MemoryManager.getInstance();
151
151
  const mem = await manager.getMemory(args.project_name);
152
- const results = await mem.find(args.query, {
153
- k: args.limit,
154
- mode: args.mode
155
- });
156
- const hits = results.hits || [];
152
+ let results;
153
+ if (args.query === "*") {
154
+ if (typeof mem.timeline === "function") {
155
+ results = await mem.timeline({ k: args.limit });
156
+ } else {
157
+ results = await mem.find(undefined, { k: args.limit });
158
+ }
159
+ } else {
160
+ results = await mem.find(args.query, {
161
+ k: args.limit,
162
+ mode: args.mode
163
+ });
164
+ }
165
+ const hits = Array.isArray(results) ? results : results.hits || [];
157
166
  const formatted = hits.map((hit) => {
158
167
  return `[Title: ${hit.title || "Untitled"}]
159
- ${hit.snippet || hit.text}
160
- (Score: ${hit.score})`;
168
+ ${hit.snippet || hit.text || hit.preview}
169
+ (Score: ${hit.score || "N/A"})`;
161
170
  }).join(`
162
171
 
163
172
  ---
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "memvid-mcp-server",
3
3
  "module": "index.ts",
4
4
  "description": "MCP Server for Memvid",
5
- "version": "1.0.4",
5
+ "version": "1.0.5",
6
6
  "logo": "https://memvid.io/logo.png",
7
7
  "keywords": [
8
8
  "mcp",