让你的网站被 AI 搜索引擎收录、被 AI Agent 调用。一个配置文件,UI 零改动。
现有 Next.js 应用自动获得完整的 AI 接口 —— 发现、检索、工具调用。
你的内容出现在 ChatGPT、Perplexity、Google AI Overviews 中。结构化的 llms.txt 和逐页 Markdown 让 AI 可引用你。
使用类型安全的 Schema 定义 Action,自动生成 OpenAPI 端点和 MCP 工具,任何 Agent 均可调用。
MDX 页面编译为丰富的知识图谱,AI 系统获取摘要、主题、问答对和语义关系。
一等公民的 MCP 服务器支持。Claude Desktop、Cursor 及任何 MCP 客户端可直连你的站点。
仅使用开放标准 —— OpenAPI、JSON-LD、llms.txt、MCP。兼容任何 AI 提供商。MIT 许可。
init、build、doctor CLI。类型安全配置。CI 友好检查。开发时热更新。适用于任何 Next.js 应用。
MDX 页面编译为语义图谱,AI 搜索引擎通过 llms.txt、Markdown 和 JSON-LD 获取结构化、可引用的内容。
# Acme Documentation
> The complete toolkit for building
> modern web applications.
## Docs
- [Getting Started](/docs/start)
Install and configure in 60 seconds.
- [Authentication](/docs/auth)
Secure your app with built-in auth.
- [Deployment](/docs/deploy)
Deploy anywhere with one command.使用 Zod Schema 定义 Action,自动生成 OpenAPI 端点、MCP 工具和 tools.json —— 一次定义,多处暴露。
import { defineAction } from "next-ai-ready"
import { z } from "zod"
defineAction({
name: "search_docs",
description: "Search documentation.",
input: z.object({
query: z.string(),
limit: z.number().default(5),
}),
public: true,
handler: async ({ query, limit }) => {
return await searchIndex(query, limit)
},
})