Skip to main content
Glama

ToteDB Core

Carry your AI work forward. ToteDB imports conversation exports into local SQLite, keeps alternate replies distinguishable from the current path, and creates a brief another client can read.

Try the browser explorer · Download the built developer kit

Run from this repository

Use Node.js 24 and npm 11. From your terminal run

git clone https://github.com/carterverse/totedb-core.git
cd totedb-core
npm ci --ignore-scripts
npm run build
npm run demo

Run npm run check for the TypeScript checks and test suite.

Related MCP server: coster

Run from the prebuilt ZIP

Use Node.js 24 LTS and npm 11. Extract the ZIP, open a terminal in the folder containing this README and run:

npm ci --omit=dev --ignore-scripts
npm run demo

The CLI is already built. Installation downloads the locked dependencies. The sample uses an isolated temporary database, imports four messages, replays the export, retrieves an alternate reply, writes a handoff and prints a brief. It removes its temporary database when finished. The commands below create durable data.

Use an export

node dist/cli.js project create --workspace Personal --name "My notes"

Copy the returned project ID. Substitute it for PROJECT_ID below and substitute your export path for the example path.

node dist/cli.js validate "./conversations.json" --provider openai
node dist/cli.js import openai "./conversations.json" --project PROJECT_ID --dry-run
node dist/cli.js import openai "./conversations.json" --project PROJECT_ID
node dist/cli.js import report RUN_ID --format json --output report.json
node dist/cli.js search "platform" --project PROJECT_ID
node dist/cli.js search "audio" --project PROJECT_ID --include-alternates
node dist/cli.js memory save --project PROJECT_ID --kind handoff --title "Next review" --content "Check the map proof."
node dist/cli.js brief --project PROJECT_ID

The import prints RUN_ID in the runId field. For split OpenAI exports, extract the ZIP and pass the folder containing conversations-NNN.json to both validate and import. For Claude conversation arrays, use the claude provider and a single JSON file. Exit code 2 indicates warnings or conflicts. Read the output before proceeding. Re-importing a file can add new messages and records conflicts.

Use in an MCP client

For a client that supports a local stdio server, configure the command as node and the arguments as the absolute path to dist/cli.js followed by serve, --transport and stdio. For example:

{
  "mcpServers": {
    "totedb": {
      "command": "node",
      "args": ["/absolute/path/to/totedb/dist/cli.js", "serve", "--transport", "stdio"]
    }
  }
}

Set TOTEDB_DB to the same absolute database path in both clients if overriding the default. Use list_projects, save_handoff and get_project_brief to resume across clients. This preview is intended for local, single-user operation.

Data and limits

The default database is ~/.totedb/totedb.sqlite. Use --db with the CLI or TOTEDB_DB to choose a different file. Message text remains readable in the SQLite file and in exported briefs. Review a brief before sending it to another person or AI provider. To back up an existing database, run node dist/cli.js db migrate and keep the SQLite backup identified by backupPath.

OpenAI current_node ancestry determines the selected path. A missing or invalid current_node triggers a warning and a fallback. Claude input is read in exported message order. Attachment references can survive import even when the underlying files are unavailable. A single-file import parses JSON in memory. Provider formats and platform compatibility vary. Broader export coverage and desktop-client validation remain in progress.

Build and test the source

npm ci --ignore-scripts
npm run check
npm run build

Public preview 0.2.0-alpha.2 derives from core revision 7f1277bb5a33c72200ec7505f9f3eb0c8bc8cd8c. This distribution refreshes the dependency lock, corrects URL and inline-credential redaction bookkeeping, updates the advertised version, and includes a self-contained example. The license is Apache-2.0. See LICENSE and NOTICE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      B
      maintenance
      Local MCP server that lets your AI coding agent query its own cross-tool project history - file/command freshness, past test failures, cost & token spend, cache status, and session handoff - over stdio, 100% local, no telemetry.
      66
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      MCP server that provides offline-first, persistent memory for AI coding assistants. It captures project decisions and conventions into a local SQLite database and syncs them to tool-specific memory files like CLAUDE.md and AGENTS.md.
      19 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Centralizes verbatim local AI conversation history into a SQLite database and exposes it via an MCP server, enabling tools like Claude Code and Codex to retrieve exact context from other tools.
      1 npm
      MIT
    • F
      license
      B
      quality
      B
      maintenance
      Enables an AI assistant to read and manage a local project-management database over stdio: listing and creating projects, tasks, expenses, chats and people, and pulling money, margin, deadline and overdue summaries. It runs on the same service layer and SQLite file as the bundled web UI, so figures shown to the assistant and to the human always agree.
      14
      -