import Link from "next/link"; import { listDocuments } from "@mcpedia/core"; import { cookies } from "next/headers"; export const dynamic = "force-dynamic"; const SECTIONS = [ { id: "docs", label: "Documentation" }, { id: "writeups", label: "Writeups" }, { id: "research", label: "Research" }, { id: "notes", label: "Notes" }, ] as const; export default async function HomePage() { const all = await listDocuments(); const bySection = SECTIONS.map((section) => ({ ...section, docs: all.filter((d) => d.section === section.id), })); const cookieStore = await cookies(); const canEdit = cookieStore.get("mcpedia_admin")?.value != null; return (
A content-first knowledge base. Humans read the Web UI; AI agents use the MCP server. Both share one Core.