Skip to content

Self-hosted MCP server + dashboard giving Claude Code, Cursor & Hermes agents shared long-term memory over a git-backed markdown vault. Agent-native, Obsidian-compatible second brain — markdown RAG, no vector DB.

414 B
Raw Blame
import { getGraph, listNotes } from "@/lib/vault/store";

export const dynamic = "force-dynamic";

/** Light vault stats for the home: note / folder / link counts. */
export function GET() {
  const notes = listNotes();
  const folders = new Set(notes.map((n) => n.folder).filter((f) => f && f !== "root"));
  return Response.json({ notes: notes.length, folders: folders.size, links: getGraph().edges.length });
}