memvid-mcp-server 1.0.1 → 1.0.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.
Files changed (2) hide show
  1. package/dist/index.js +22 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -197,8 +197,30 @@ function registerAskMemory(server) {
197
197
  });
198
198
  }
199
199
 
200
+ // src/tools/context.ts
201
+ import { z as z2 } from "zod";
202
+ import path2 from "path";
203
+ var GetProjectContextSchema = z2.object({});
204
+ async function getProjectContext() {
205
+ const cwd = process.cwd();
206
+ const suggested_project_name = path2.basename(cwd);
207
+ return {
208
+ content: [
209
+ {
210
+ type: "text",
211
+ text: JSON.stringify({
212
+ suggested_project_name,
213
+ cwd,
214
+ hint: "Use 'suggested_project_name' as the 'project_name' argument for other tools if you are unsure."
215
+ }, null, 2)
216
+ }
217
+ ]
218
+ };
219
+ }
220
+
200
221
  // src/tools/index.ts
201
222
  function registerAllTools(server) {
223
+ server.tool("memvid_get_project_context", "Get context about the current project (e.g. inferred project name from CWD) to help the agent decide which memory project to use.", GetProjectContextSchema.shape, async () => getProjectContext());
202
224
  registerCreateMemory(server);
203
225
  registerAddContent(server);
204
226
  registerSearchMemory(server);
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.1",
5
+ "version": "1.0.2",
6
6
  "logo": "https://memvid.io/logo.png",
7
7
  "keywords": [
8
8
  "mcp",