import Link from "next/link"; import { listDocuments } from "@mcpedia/core"; import type { DocumentMeta } from "@mcpedia/core"; // Render at request time — content is in Postgres (not available at build in // CI, which has no DB). Request-time rendering is instant at this corpus scale. export const dynamic = "force-dynamic"; const SECTIONS = ["docs", "writeups", "research", "notes"] as const; export default async function Home() { const all = await listDocuments(); const bySection = SECTIONS.map((section) => ({ section, docs: all.filter((d) => d.section === section), })); return (

MCPedia

A content-first knowledge base. Humans read the Web UI; AI agents use the MCP server. Both share one Core.

{bySection.map(({ section, docs }) => (

{section}

{docs.length === 0 ? (

No documents yet.

) : ( )}
))}
); }