Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
baa1b3a
refactor: restructured mcp components into `vault-core` package
colecrouter Aug 15, 2025
1293a5e
refactor(reddit): move validation into another
colecrouter Aug 15, 2025
b599eb7
feat: added `vault-core` functionality
colecrouter Aug 15, 2025
094b03f
feat: new vault system
colecrouter Aug 19, 2025
748a70d
refactor: `Codec` usage.
colecrouter Aug 19, 2025
95f9a2d
refactor: prototype for SQLite remote queries
colecrouter Aug 19, 2025
eae5655
removed FS related code
colecrouter Sep 11, 2025
37a69d9
removed vault client-service architecture
colecrouter Sep 11, 2025
61ef7cb
feat: added std utils for adapters/etc.
colecrouter Sep 13, 2025
4c430dd
added standard schema validation package
colecrouter Sep 13, 2025
154ede2
feat: markdown parser dogfoods yaml parser
colecrouter Sep 13, 2025
b8f1de6
adapter/core refactor and reddit adapter migration
colecrouter Oct 3, 2025
ee7ca25
tests: added core tests & fixes
colecrouter Oct 7, 2025
6a14f45
feat: added migration script for adapters
colecrouter Oct 7, 2025
694eaff
feat: strict checking between validator & schema
colecrouter Oct 8, 2025
d41278f
feat: added vault-demo
colecrouter Oct 21, 2025
1258ed0
ci: fix ci `package.json` scripts for both projects
colecrouter Oct 21, 2025
502d48c
fix: update demo-mcp & usage
colecrouter Oct 22, 2025
4d9c3af
fix: missing/transient deps
colecrouter Oct 29, 2025
e15d721
fix: vault demo readme instructions
colecrouter Oct 29, 2025
98ac6dc
Merge remote-tracking branch 'origin/main' into new-adapter-architecture
braden-w Nov 26, 2025
69828e9
fix: resolve merge conflicts and update vault-core imports
braden-w Nov 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions apps/demo-mcp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,52 @@ bun run apps/demo-mcp/src/cli.ts import reddit --file ./export_username_date.zip

This creates a SQLite database at `.data/reddit.db` with your Reddit posts, comments, and other data.

## Plaintext export/import (Markdown)

Export database rows to deterministic plaintext files under `vault/<adapter>/...` using Markdown (with frontmatter):

```bash
bun run apps/demo-mcp/src/cli.ts export-fs reddit --db ./.data/reddit.db --repo .
```

Import files from the repo back into the database:

```bash
bun run apps/demo-mcp/src/cli.ts import-fs reddit --db ./.data/reddit.db --repo .
```

Notes:

- Files are Markdown only, written under `vault/<adapter>/<table>/<pk...>.md`.

## Try it

1) Import your Reddit export into a local DB

```bash
bun run apps/demo-mcp/src/cli.ts import reddit --file ./export_username_date.zip --db ./.data/reddit.db
```

2) Export DB rows to Markdown files in your repo

```bash
bun run apps/demo-mcp/src/cli.ts export-fs reddit --db ./.data/reddit.db --repo .
```

You should see Markdown files under `vault/reddit/<table>/...`. To re-import from files into the DB:

```bash
bun run apps/demo-mcp/src/cli.ts import-fs reddit --db ./.data/reddit.db --repo .
```

### CLI usage

```bash
bun run apps/demo-mcp/src/cli.ts --help
# or
bun run apps/demo-mcp/src/cli.ts help
```

## MCP Integration with Claude Code

Once you have imported your data, you can connect the database to Claude Code for natural language querying.
Expand Down
11 changes: 7 additions & 4 deletions apps/demo-mcp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@
"type": "module",
"description": "Minimal CLI to import Reddit export ZIP into a local LibSQL DB using the Reddit adapter",
"scripts": {
"dev": "bun run src/cli.ts import",
"import": "bun run src/cli.ts import",
"serve": "bun run src/cli.ts serve",
"check": "tsc --noEmit"
"dev": "bun run src/cli.ts import reddit",
"import": "bun run src/cli.ts import reddit",
"export-fs": "bun run src/cli.ts export-fs reddit",
"import-fs": "bun run src/cli.ts import-fs reddit",
"sync": "bun run src/cli.ts sync reddit",
"serve": "bun run src/cli.ts serve"
},
"dependencies": {
"@libsql/client": "^0.11.0",
"@repo/vault-core": "workspace:*",
"drizzle-orm": "catalog:"
}
}
Loading
Loading