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.

450 B
Raw Blame
import { captureNote } from "@/lib/harness";

export const dynamic = "force-dynamic";

export async function POST(req: Request) {
  const { text } = await req.json().catch(() => ({}));
  if (!text || typeof text !== "string") return Response.json({ error: "text required" }, { status: 400 });
  try {
    return Response.json(await captureNote(text));
  } catch (e) {
    return Response.json({ error: (e as Error).message }, { status: 500 });
  }
}