MCPcopy
hub / github.com/benjitaylor/agentation / getDbPath

Function getDbPath

mcp/src/server/sqlite.ts:33–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31// -----------------------------------------------------------------------------
32
33function getDbPath(): string {
34 const dataDir = join(homedir(), ".agentation");
35 if (!existsSync(dataDir)) {
36 mkdirSync(dataDir, { recursive: true });
37 }
38 return join(dataDir, "store.db");
39}
40
41function initDatabase(db: Database.Database): void {
42 db.exec(`

Callers 2

createSQLiteStoreFunction · 0.85
createTenantStoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…