├── .env.example ├── .github ├── dependabot.yml └── workflows │ ├── ci.yml │ └── release.yml ├── .gitignore ├── .npmignore ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── SECURITY.md ├── SYSTEM_PROMPT.md ├── biome.json ├── bun.lock ├── claude-desktop-config-example.json ├── package.json ├── research ├── graph-and-decay-implementation-plan.md └── mem0-vs-mcp-memory-comparison.md ├── scripts ├── generate-types.ts └── start-workers.ts ├── src ├── algorithms │ ├── dbscan.ts │ └── scoring.ts ├── cli.ts ├── config │ └── index.ts ├── database │ ├── auto-migrate.ts │ ├── client.ts │ ├── index.ts │ ├── migrate.ts │ └── migrations │ │ ├── 001_initial.ts │ │ ├── 002_current.ts │ │ ├── 003_fix_embeddings.ts │ │ └── 004_regenerate_embeddings.ts ├── index.ts ├── schemas │ └── validation.ts ├── server.ts ├── services │ ├── cache-service.ts │ ├── clustering-service.ts │ ├── compression-service.ts │ ├── context-window-service.ts │ ├── decayService.ts │ ├── embedding-service.ts │ ├── memory-service.ts │ ├── queue-service.ts │ └── traversalService.ts ├── types │ ├── database-generated.ts │ └── database.ts ├── utils │ ├── embedding.ts │ ├── logger.ts │ ├── memory-formatter.ts │ └── text-extraction.ts └── workers │ ├── batch-worker.ts │ ├── clustering-worker.ts │ ├── decay-worker.ts │ └── embedding-worker.ts ├── tests ├── decay-service.test.ts ├── memory-service.test.ts ├── relation-constraint.test.ts ├── test-setup.ts ├── traversal-service.test.ts └── validation.test.ts └── tsconfig.json /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/.env.example -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/.npmignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/SECURITY.md -------------------------------------------------------------------------------- /SYSTEM_PROMPT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/SYSTEM_PROMPT.md -------------------------------------------------------------------------------- /biome.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/biome.json -------------------------------------------------------------------------------- /bun.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/bun.lock -------------------------------------------------------------------------------- /claude-desktop-config-example.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/claude-desktop-config-example.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/package.json -------------------------------------------------------------------------------- /research/graph-and-decay-implementation-plan.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/research/graph-and-decay-implementation-plan.md -------------------------------------------------------------------------------- /research/mem0-vs-mcp-memory-comparison.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/research/mem0-vs-mcp-memory-comparison.md -------------------------------------------------------------------------------- /scripts/generate-types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/scripts/generate-types.ts -------------------------------------------------------------------------------- /scripts/start-workers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/scripts/start-workers.ts -------------------------------------------------------------------------------- /src/algorithms/dbscan.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/algorithms/dbscan.ts -------------------------------------------------------------------------------- /src/algorithms/scoring.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/algorithms/scoring.ts -------------------------------------------------------------------------------- /src/cli.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/cli.ts -------------------------------------------------------------------------------- /src/config/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/config/index.ts -------------------------------------------------------------------------------- /src/database/auto-migrate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/database/auto-migrate.ts -------------------------------------------------------------------------------- /src/database/client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/database/client.ts -------------------------------------------------------------------------------- /src/database/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/database/index.ts -------------------------------------------------------------------------------- /src/database/migrate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/database/migrate.ts -------------------------------------------------------------------------------- /src/database/migrations/001_initial.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/database/migrations/001_initial.ts -------------------------------------------------------------------------------- /src/database/migrations/002_current.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/database/migrations/002_current.ts -------------------------------------------------------------------------------- /src/database/migrations/003_fix_embeddings.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/database/migrations/003_fix_embeddings.ts -------------------------------------------------------------------------------- /src/database/migrations/004_regenerate_embeddings.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/database/migrations/004_regenerate_embeddings.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | import './server.js'; 3 | -------------------------------------------------------------------------------- /src/schemas/validation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/schemas/validation.ts -------------------------------------------------------------------------------- /src/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/server.ts -------------------------------------------------------------------------------- /src/services/cache-service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/services/cache-service.ts -------------------------------------------------------------------------------- /src/services/clustering-service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/services/clustering-service.ts -------------------------------------------------------------------------------- /src/services/compression-service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/services/compression-service.ts -------------------------------------------------------------------------------- /src/services/context-window-service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/services/context-window-service.ts -------------------------------------------------------------------------------- /src/services/decayService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/services/decayService.ts -------------------------------------------------------------------------------- /src/services/embedding-service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/services/embedding-service.ts -------------------------------------------------------------------------------- /src/services/memory-service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/services/memory-service.ts -------------------------------------------------------------------------------- /src/services/queue-service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/services/queue-service.ts -------------------------------------------------------------------------------- /src/services/traversalService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/services/traversalService.ts -------------------------------------------------------------------------------- /src/types/database-generated.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/types/database-generated.ts -------------------------------------------------------------------------------- /src/types/database.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/types/database.ts -------------------------------------------------------------------------------- /src/utils/embedding.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/utils/embedding.ts -------------------------------------------------------------------------------- /src/utils/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/utils/logger.ts -------------------------------------------------------------------------------- /src/utils/memory-formatter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/utils/memory-formatter.ts -------------------------------------------------------------------------------- /src/utils/text-extraction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/utils/text-extraction.ts -------------------------------------------------------------------------------- /src/workers/batch-worker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/workers/batch-worker.ts -------------------------------------------------------------------------------- /src/workers/clustering-worker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/workers/clustering-worker.ts -------------------------------------------------------------------------------- /src/workers/decay-worker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/workers/decay-worker.ts -------------------------------------------------------------------------------- /src/workers/embedding-worker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/src/workers/embedding-worker.ts -------------------------------------------------------------------------------- /tests/decay-service.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/tests/decay-service.test.ts -------------------------------------------------------------------------------- /tests/memory-service.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/tests/memory-service.test.ts -------------------------------------------------------------------------------- /tests/relation-constraint.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/tests/relation-constraint.test.ts -------------------------------------------------------------------------------- /tests/test-setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/tests/test-setup.ts -------------------------------------------------------------------------------- /tests/traversal-service.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/tests/traversal-service.test.ts -------------------------------------------------------------------------------- /tests/validation.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/tests/validation.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scanadi/mcp-ai-memory/HEAD/tsconfig.json --------------------------------------------------------------------------------