midas-memory-mcp 0.0.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.
@@ -0,0 +1,27 @@
1
+ /** Midas memory types — mirrors `midas/types.py` so records stay portable across the
2
+ * Python/TypeScript split (including sharing one SQLite file between both servers). */
3
+ export type MemoryKind = "note" | "chat" | "mission" | "fact" | "preference" | "constraint";
4
+ export declare const MEMORY_KINDS: readonly MemoryKind[];
5
+ export type MemoryProvenance = "planning" | "action" | "observation" | "user_confirmation";
6
+ export declare const MEMORY_PROVENANCE: readonly MemoryProvenance[];
7
+ export interface MemoryRecord {
8
+ id: string;
9
+ content: string;
10
+ kind: MemoryKind;
11
+ importance: number;
12
+ source: string | null;
13
+ provenance: MemoryProvenance;
14
+ actor: string | null;
15
+ metadata: Record<string, unknown>;
16
+ createdAt: number;
17
+ updatedAt: number;
18
+ embedding: Float32Array | null;
19
+ supersededBy: string | null;
20
+ }
21
+ export interface RecallHit {
22
+ record: MemoryRecord;
23
+ score: number;
24
+ relevance: number;
25
+ importanceNorm: number;
26
+ recency: number;
27
+ }
package/dist/types.js ADDED
@@ -0,0 +1,16 @@
1
+ /** Midas memory types — mirrors `midas/types.py` so records stay portable across the
2
+ * Python/TypeScript split (including sharing one SQLite file between both servers). */
3
+ export const MEMORY_KINDS = [
4
+ "note",
5
+ "chat",
6
+ "mission",
7
+ "fact",
8
+ "preference",
9
+ "constraint",
10
+ ];
11
+ export const MEMORY_PROVENANCE = [
12
+ "planning",
13
+ "action",
14
+ "observation",
15
+ "user_confirmation",
16
+ ];
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "midas-memory-mcp",
3
+ "version": "0.0.3",
4
+ "description": "Midas \u2014 local-first, source-traceable agent memory over MCP (TypeScript port, experimental). No LLM at ingest or query.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "engines": {
8
+ "node": ">=22.5"
9
+ },
10
+ "bin": {
11
+ "midas-mcp": "dist/bin/midas-mcp.js"
12
+ },
13
+ "main": "dist/index.js",
14
+ "types": "dist/index.d.ts",
15
+ "files": [
16
+ "dist",
17
+ "README.md"
18
+ ],
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/vornicx/Midas.git",
22
+ "directory": "packages/midas-ts"
23
+ },
24
+ "scripts": {
25
+ "build": "tsc",
26
+ "test": "npm run build && node --test test/*.test.mjs"
27
+ },
28
+ "keywords": [
29
+ "mcp",
30
+ "agent",
31
+ "memory",
32
+ "local-first",
33
+ "llm"
34
+ ],
35
+ "dependencies": {
36
+ "@modelcontextprotocol/sdk": "^1.0.0",
37
+ "zod": "^3.23.0"
38
+ },
39
+ "devDependencies": {
40
+ "typescript": "^5.5.0",
41
+ "@types/node": "^22.0.0"
42
+ }
43
+ }