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.

363 B
Raw Blame
import { getBacklinks, getOutlinks } from "@/lib/vault/store";

export const dynamic = "force-dynamic";

export async function GET(req: Request) {
  const p = new URL(req.url).searchParams.get("path");
  if (!p) return Response.json({ error: "path required" }, { status: 400 });
  return Response.json({ backlinks: getBacklinks(p), outlinks: getOutlinks(p) });
}