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.

397 B
Raw Blame
import { createFolder } from "@/lib/vault/write";

export const dynamic = "force-dynamic";

export async function POST(req: Request) {
  const { path } = await req.json().catch(() => ({}));
  if (!path || typeof path !== "string") return Response.json({ error: "path required" }, { status: 400 });
  const created = await createFolder(path);
  return Response.json({ ok: true, path: created });
}