UNPKG

mcp-think-tank

Version:

Structured thinking and knowledge management tool for Model Context Protocol

12 lines (11 loc) 548 B
import * as path from 'path'; import * as os from 'os'; import { JsonlMemoryStore } from './JsonlMemoryStore.js'; // Get memory path from environment or use default const memoryPath = process.env.MEMORY_PATH || path.join(os.homedir(), '.mcp-think-tank/memory.jsonl'); // Create a singleton instance of JsonlMemoryStore const store = new JsonlMemoryStore(memoryPath); export const memoryStore = store; export { JsonlMemoryStore } from './JsonlMemoryStore.js'; // Re-export the graph for backward compatibility export const graph = store.getGraph();