UNPKG

@roottale/cms-mcp

Version:

RootTale CMS integration MCP server — bundled integration docs, Next.js example code, and public API lookup tools. Run with: npx @roottale/cms-mcp

31 lines (27 loc) 1.02 kB
// llms.txt — AEO/GEO(AI 검색·생성엔진 최적화) 마크다운 인덱스. // AI 크롤러(ChatGPT/Claude/Perplexity 등)가 사이트 구조·발행 글을 빠르게 파악. import { createLlmsTxtRoute } from "@roottale/cms-renderer-next/routes"; export const dynamic = "force-dynamic"; const SITE_URL = process.env.NEXT_PUBLIC_SITE_URL?.replace(/\/$/, "") || "https://example.com"; export const GET = createLlmsTxtRoute({ apiKey: process.env.ROOTTALE_API_KEY!, apiBase: process.env.ROOTTALE_API_BASE, siteUrl: SITE_URL, title: "예시 사이트", description: "최신 소식과 인사이트", sections: [ // (선택) 정적 페이지 링크 그룹 — 발행 글 목록("## 블로그")은 자동 포함됨. { title: "주요 페이지", links: [ { title: "서비스 소개", url: `${SITE_URL}/services`, note: "제공 서비스 안내", }, { title: "상담 문의", url: `${SITE_URL}/contact` }, ], }, ], });