@vheins/local-memory-mcp 0.7.3 → 0.7.4
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/{chunk-ZCK6RZFX.js → chunk-BSASVWKJ.js} +44 -22
- package/dist/dashboard/public/assets/{index-Bd8FKzVy.js → index-CkSUOqPH.js} +1 -1
- package/dist/dashboard/public/assets/index-OXSJZbwn.css +1 -0
- package/dist/dashboard/public/index.html +2 -2
- package/dist/dashboard/server.js +52 -3
- package/dist/mcp/server.js +151 -23
- package/package.json +1 -1
- package/dist/dashboard/public/assets/index-Bd7v94SO.css +0 -1
|
@@ -2170,7 +2170,8 @@ var MemoryStoreSchema = z.object({
|
|
|
2170
2170
|
supersedes: z.string().uuid().optional(),
|
|
2171
2171
|
tags: z.array(z.string()).optional(),
|
|
2172
2172
|
metadata: z.record(z.string(), z.any()).optional(),
|
|
2173
|
-
is_global: z.boolean().default(false)
|
|
2173
|
+
is_global: z.boolean().default(false),
|
|
2174
|
+
structured: z.boolean().default(false)
|
|
2174
2175
|
});
|
|
2175
2176
|
var MemoryUpdateSchema = z.object({
|
|
2176
2177
|
id: z.string().uuid(),
|
|
@@ -2185,7 +2186,8 @@ var MemoryUpdateSchema = z.object({
|
|
|
2185
2186
|
tags: z.array(z.string()).optional(),
|
|
2186
2187
|
metadata: z.record(z.string(), z.any()).optional(),
|
|
2187
2188
|
is_global: z.boolean().optional(),
|
|
2188
|
-
completed_at: z.string().optional()
|
|
2189
|
+
completed_at: z.string().optional(),
|
|
2190
|
+
structured: z.boolean().default(false)
|
|
2189
2191
|
}).refine(
|
|
2190
2192
|
(data) => data.type !== void 0 || data.content !== void 0 || data.title !== void 0 || data.importance !== void 0 || data.status !== void 0 || data.supersedes !== void 0 || data.tags !== void 0 || data.metadata !== void 0 || data.is_global !== void 0 || data.agent !== void 0 || data.role !== void 0 || data.completed_at !== void 0,
|
|
2191
2193
|
{ message: "At least one field must be provided for update" }
|
|
@@ -2208,7 +2210,8 @@ var MemorySearchSchema = z.object({
|
|
|
2208
2210
|
var MemoryAcknowledgeSchema = z.object({
|
|
2209
2211
|
memory_id: z.string().uuid(),
|
|
2210
2212
|
status: z.enum(["used", "irrelevant", "contradictory"]),
|
|
2211
|
-
application_context: z.string().min(10).optional()
|
|
2213
|
+
application_context: z.string().min(10).optional(),
|
|
2214
|
+
structured: z.boolean().default(false)
|
|
2212
2215
|
});
|
|
2213
2216
|
var MemoryRecapSchema = z.object({
|
|
2214
2217
|
repo: z.string().min(1).transform(normalizeRepo),
|
|
@@ -2219,13 +2222,15 @@ var MemoryRecapSchema = z.object({
|
|
|
2219
2222
|
var MemoryDeleteSchema = z.object({
|
|
2220
2223
|
repo: z.string().min(1).transform(normalizeRepo).optional(),
|
|
2221
2224
|
id: z.string().uuid().optional(),
|
|
2222
|
-
ids: z.array(z.string().uuid()).min(1).optional()
|
|
2225
|
+
ids: z.array(z.string().uuid()).min(1).optional(),
|
|
2226
|
+
structured: z.boolean().default(false)
|
|
2223
2227
|
}).refine((data) => data.id !== void 0 || data.ids !== void 0, {
|
|
2224
2228
|
message: "Either 'id' or 'ids' must be provided for deletion"
|
|
2225
2229
|
});
|
|
2226
2230
|
var MemorySummarizeSchema = z.object({
|
|
2227
2231
|
repo: z.string().min(1).transform(normalizeRepo),
|
|
2228
|
-
signals: z.array(z.string().max(200)).min(1)
|
|
2232
|
+
signals: z.array(z.string().max(200)).min(1),
|
|
2233
|
+
structured: z.boolean().default(false)
|
|
2229
2234
|
});
|
|
2230
2235
|
var MemorySynthesizeSchema = z.object({
|
|
2231
2236
|
repo: z.string().min(1).transform(normalizeRepo).optional(),
|
|
@@ -2235,7 +2240,8 @@ var MemorySynthesizeSchema = z.object({
|
|
|
2235
2240
|
include_tasks: z.boolean().default(true),
|
|
2236
2241
|
use_tools: z.boolean().default(true),
|
|
2237
2242
|
max_iterations: z.number().int().min(1).max(5).default(3),
|
|
2238
|
-
max_tokens: z.number().int().min(128).max(4e3).default(1200)
|
|
2243
|
+
max_tokens: z.number().int().min(128).max(4e3).default(1200),
|
|
2244
|
+
structured: z.boolean().default(false)
|
|
2239
2245
|
});
|
|
2240
2246
|
var TaskStatusSchema = z.enum(["backlog", "pending", "in_progress", "completed", "canceled", "blocked"]);
|
|
2241
2247
|
var TaskPrioritySchema = z.number().min(1).max(5);
|
|
@@ -2273,7 +2279,8 @@ var TaskCreateSchema = z.object({
|
|
|
2273
2279
|
depends_on: z.string().uuid().optional(),
|
|
2274
2280
|
est_tokens: z.number().int().min(0).optional(),
|
|
2275
2281
|
// Allow bulk tasks
|
|
2276
|
-
tasks: z.array(SingleTaskCreateSchema).min(1).optional()
|
|
2282
|
+
tasks: z.array(SingleTaskCreateSchema).min(1).optional(),
|
|
2283
|
+
structured: z.boolean().default(false)
|
|
2277
2284
|
}).refine(
|
|
2278
2285
|
(data) => {
|
|
2279
2286
|
if (data.tasks) return true;
|
|
@@ -2282,7 +2289,8 @@ var TaskCreateSchema = z.object({
|
|
|
2282
2289
|
{ message: "Either 'tasks' array or single task fields (task_code, phase, title, description) must be provided" }
|
|
2283
2290
|
);
|
|
2284
2291
|
var TaskCreateInteractiveSchema = SingleTaskCreateSchema.partial().extend({
|
|
2285
|
-
repo: z.string().min(1).transform(normalizeRepo).optional()
|
|
2292
|
+
repo: z.string().min(1).transform(normalizeRepo).optional(),
|
|
2293
|
+
structured: z.boolean().default(false)
|
|
2286
2294
|
});
|
|
2287
2295
|
var TaskUpdateSchema = z.object({
|
|
2288
2296
|
repo: z.string().min(1).transform(normalizeRepo),
|
|
@@ -2304,7 +2312,8 @@ var TaskUpdateSchema = z.object({
|
|
|
2304
2312
|
parent_id: z.string().uuid().optional(),
|
|
2305
2313
|
depends_on: z.string().uuid().optional(),
|
|
2306
2314
|
est_tokens: z.number().int().min(0).optional(),
|
|
2307
|
-
force: z.boolean().optional()
|
|
2315
|
+
force: z.boolean().optional(),
|
|
2316
|
+
structured: z.boolean().default(false)
|
|
2308
2317
|
}).refine((data) => data.id !== void 0 || data.ids !== void 0, {
|
|
2309
2318
|
message: "Either 'id' or 'ids' must be provided for update"
|
|
2310
2319
|
}).refine((data) => Object.keys(data).length > 2, {
|
|
@@ -2330,13 +2339,15 @@ var TaskSearchSchema = z.object({
|
|
|
2330
2339
|
var TaskDeleteSchema = z.object({
|
|
2331
2340
|
repo: z.string().min(1).transform(normalizeRepo),
|
|
2332
2341
|
id: z.string().uuid().optional(),
|
|
2333
|
-
ids: z.array(z.string().uuid()).min(1).optional()
|
|
2342
|
+
ids: z.array(z.string().uuid()).min(1).optional(),
|
|
2343
|
+
structured: z.boolean().default(false)
|
|
2334
2344
|
}).refine((data) => data.id !== void 0 || data.ids !== void 0, {
|
|
2335
2345
|
message: "Either 'id' or 'ids' must be provided for deletion"
|
|
2336
2346
|
});
|
|
2337
2347
|
var MemoryDetailSchema = z.object({
|
|
2338
2348
|
id: z.string().uuid().optional(),
|
|
2339
|
-
code: z.string().max(20).optional()
|
|
2349
|
+
code: z.string().max(20).optional(),
|
|
2350
|
+
structured: z.boolean().default(false)
|
|
2340
2351
|
}).refine((data) => data.id !== void 0 || data.code !== void 0, {
|
|
2341
2352
|
message: "Either id or code must be provided"
|
|
2342
2353
|
});
|
|
@@ -2378,7 +2389,8 @@ var TOOL_DEFINITIONS = [
|
|
|
2378
2389
|
description: "Allow the sampled model to call local memory/task tools during synthesis when the client supports sampling.tools."
|
|
2379
2390
|
},
|
|
2380
2391
|
max_iterations: { type: "number", minimum: 1, maximum: 5, default: 3 },
|
|
2381
|
-
max_tokens: { type: "number", minimum: 128, maximum: 4e3, default: 1200 }
|
|
2392
|
+
max_tokens: { type: "number", minimum: 128, maximum: 4e3, default: 1200 },
|
|
2393
|
+
structured: { type: "boolean", default: false, description: "If true, returns structured JSON results." }
|
|
2382
2394
|
},
|
|
2383
2395
|
required: ["objective"]
|
|
2384
2396
|
},
|
|
@@ -2421,7 +2433,8 @@ var TOOL_DEFINITIONS = [
|
|
|
2421
2433
|
priority: { type: "number", minimum: 1, maximum: 5, default: 3 },
|
|
2422
2434
|
agent: { type: "string" },
|
|
2423
2435
|
role: { type: "string" },
|
|
2424
|
-
doc_path: { type: "string" }
|
|
2436
|
+
doc_path: { type: "string" },
|
|
2437
|
+
structured: { type: "boolean", default: false, description: "If true, returns structured JSON result." }
|
|
2425
2438
|
}
|
|
2426
2439
|
},
|
|
2427
2440
|
outputSchema: {
|
|
@@ -2444,7 +2457,8 @@ var TOOL_DEFINITIONS = [
|
|
|
2444
2457
|
inputSchema: {
|
|
2445
2458
|
type: "object",
|
|
2446
2459
|
properties: {
|
|
2447
|
-
id: { type: "string", format: "uuid", description: "Memory entry ID" }
|
|
2460
|
+
id: { type: "string", format: "uuid", description: "Memory entry ID" },
|
|
2461
|
+
structured: { type: "boolean", default: false, description: "If true, returns structured JSON details." }
|
|
2448
2462
|
},
|
|
2449
2463
|
required: ["id"]
|
|
2450
2464
|
}
|
|
@@ -2548,7 +2562,8 @@ var TOOL_DEFINITIONS = [
|
|
|
2548
2562
|
description: "If true, this memory is shared across all repositories"
|
|
2549
2563
|
},
|
|
2550
2564
|
ttlDays: { type: "number", minimum: 1 },
|
|
2551
|
-
supersedes: { type: "string", format: "uuid" }
|
|
2565
|
+
supersedes: { type: "string", format: "uuid" },
|
|
2566
|
+
structured: { type: "boolean", default: false, description: "If true, returns structured JSON of the stored memory." }
|
|
2552
2567
|
},
|
|
2553
2568
|
required: ["type", "title", "content", "importance", "scope", "agent", "model"]
|
|
2554
2569
|
},
|
|
@@ -2581,7 +2596,8 @@ var TOOL_DEFINITIONS = [
|
|
|
2581
2596
|
properties: {
|
|
2582
2597
|
memory_id: { type: "string", format: "uuid" },
|
|
2583
2598
|
status: { type: "string", enum: ["used", "irrelevant", "contradictory"] },
|
|
2584
|
-
application_context: { type: "string", minLength: 10 }
|
|
2599
|
+
application_context: { type: "string", minLength: 10 },
|
|
2600
|
+
structured: { type: "boolean", default: false, description: "If true, returns structured JSON result." }
|
|
2585
2601
|
},
|
|
2586
2602
|
required: ["memory_id", "status"]
|
|
2587
2603
|
},
|
|
@@ -2632,7 +2648,8 @@ var TOOL_DEFINITIONS = [
|
|
|
2632
2648
|
tags: { type: "array", items: { type: "string" } },
|
|
2633
2649
|
metadata: { type: "object" },
|
|
2634
2650
|
is_global: { type: "boolean" },
|
|
2635
|
-
completed_at: { type: "string" }
|
|
2651
|
+
completed_at: { type: "string" },
|
|
2652
|
+
structured: { type: "boolean", default: false, description: "If true, returns structured JSON of the updated memory." }
|
|
2636
2653
|
},
|
|
2637
2654
|
required: ["id"]
|
|
2638
2655
|
},
|
|
@@ -2756,7 +2773,8 @@ var TOOL_DEFINITIONS = [
|
|
|
2756
2773
|
items: { type: "string", maxLength: 200 },
|
|
2757
2774
|
minItems: 1,
|
|
2758
2775
|
description: "High-level signals to include in summary"
|
|
2759
|
-
}
|
|
2776
|
+
},
|
|
2777
|
+
structured: { type: "boolean", default: false, description: "If true, returns structured JSON of the summary." }
|
|
2760
2778
|
},
|
|
2761
2779
|
required: ["repo", "signals"]
|
|
2762
2780
|
},
|
|
@@ -2791,7 +2809,8 @@ var TOOL_DEFINITIONS = [
|
|
|
2791
2809
|
items: { type: "string", format: "uuid" },
|
|
2792
2810
|
minItems: 1,
|
|
2793
2811
|
description: "Array of memory IDs to delete"
|
|
2794
|
-
}
|
|
2812
|
+
},
|
|
2813
|
+
structured: { type: "boolean", default: false, description: "If true, returns structured JSON result." }
|
|
2795
2814
|
}
|
|
2796
2815
|
},
|
|
2797
2816
|
outputSchema: {
|
|
@@ -2939,7 +2958,8 @@ var TOOL_DEFINITIONS = [
|
|
|
2939
2958
|
required: ["task_code", "phase", "title", "description"]
|
|
2940
2959
|
},
|
|
2941
2960
|
description: "Array of tasks for bulk creation"
|
|
2942
|
-
}
|
|
2961
|
+
},
|
|
2962
|
+
structured: { type: "boolean", default: false, description: "If true, returns structured JSON result." }
|
|
2943
2963
|
},
|
|
2944
2964
|
required: ["repo"]
|
|
2945
2965
|
},
|
|
@@ -3005,7 +3025,8 @@ var TOOL_DEFINITIONS = [
|
|
|
3005
3025
|
force: {
|
|
3006
3026
|
type: "boolean",
|
|
3007
3027
|
description: "If true, bypasses status transition validation (e.g. pending -> completed)."
|
|
3008
|
-
}
|
|
3028
|
+
},
|
|
3029
|
+
structured: { type: "boolean", default: false, description: "If true, returns structured JSON result." }
|
|
3009
3030
|
},
|
|
3010
3031
|
required: ["repo"]
|
|
3011
3032
|
},
|
|
@@ -3042,7 +3063,8 @@ var TOOL_DEFINITIONS = [
|
|
|
3042
3063
|
properties: {
|
|
3043
3064
|
repo: { type: "string", description: "Repository name" },
|
|
3044
3065
|
id: { type: "string", format: "uuid", description: "Task ID (for single deletion)" },
|
|
3045
|
-
ids: { type: "array", items: { type: "string", format: "uuid" }, description: "Task IDs (for bulk deletion)" }
|
|
3066
|
+
ids: { type: "array", items: { type: "string", format: "uuid" }, description: "Task IDs (for bulk deletion)" },
|
|
3067
|
+
structured: { type: "boolean", default: false, description: "If true, returns structured JSON result." }
|
|
3046
3068
|
},
|
|
3047
3069
|
required: ["repo"]
|
|
3048
3070
|
},
|