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.

380 B
Raw Blame
import { setActive } from "@/lib/repos";
import { rebuildIndex } from "@/lib/vault/store";

export const dynamic = "force-dynamic";

export async function POST(req: Request) {
  const { id } = await req.json().catch(() => ({}));
  if (!id) return Response.json({ error: "id required" }, { status: 400 });
  setActive(id);
  rebuildIndex();
  return Response.json({ ok: true });
}