@mattral/storage
v1.1.0
Published
SQLite-backed persistence layer for mcp-reliable
Maintainers
Readme
@mattral/storage
SQLite-backed persistence layer for mcp-reliable
— servers, tools, executions, drift events, alerts, and health-score
history, behind one ReliabilityStore interface.
npm install @mattral/storageUsage
import { SqliteStore } from "@mattral/storage";
const store = new SqliteStore({ path: "./mcp-reliable.db" });
store.upsertServer({ id: "my-server", name: "My Server", /* ... */ });
store.recordExecution({ /* ... */ });
const executions = store.listExecutions({ serverId: "my-server", limit: 100 });Schema migrations run automatically on open (tracked via SQLite's
PRAGMA user_version) — opening an older database file transparently
brings it forward to the current schema.
Learn more
See the mcp-reliable GitHub repo
for the full data model (docs/data-model.md) and how this package fits
into the rest of the system.
License
MIT
