Skip to main content
Glama
index.ts790 B
import * as path from 'path'; import * as os from 'os'; import { MemoryStore, Observation, MemoryQuery, Entity, Relation } from './MemoryStore.js'; 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: MemoryStore = store; // Export interfaces and implementations export { MemoryStore, Observation, MemoryQuery, Entity, Relation } from './MemoryStore.js'; export { JsonlMemoryStore } from './JsonlMemoryStore.js'; // Re-export the graph for backward compatibility export const graph = store.getGraph();

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/flight505/mcp-think-tank'

If you have feedback or need assistance with the MCP directory API, please join our Discord server