---
title: 简介
description: next-ai-ready 是什么，为什么需要它。
canonical_url: https://nextaiready.com/zh/docs/introduction
url: https://nextaiready.com/zh/docs/introduction
last_updated: 2026-08-25
updated: 2026-08-25
author: next-ai-ready 团队
summary: next-ai-ready 是什么，为什么需要它。
topics: [next.js, aeo, introduction]
---

# 简介

传统网站为浏览器而生。`next-ai-ready` 让你的 Next.js 站点被 **AI 可读**、被 **Agent 可调用**。

## 问题

搜索正在变化，用户越来越多地通过 AI 系统获取答案。传统 SEO 仍然是基础，而清晰的机器可读表示可以为 AI 消费者提供另一条稳定的内容发现与读取路径。

与此同时，AI Agent 正在兴起。它们需要**调用你的功能** —— 而不只是阅读你的页面。但目前没有标准方式将 Next.js 功能暴露给 Agent。

## 解决方案

`next-ai-ready` 是 Next.js 的 **AEO + Agent-API 层**。一个配置文件，UI 零改动：

- **知识平面** — 你的内容通过 `llms.txt`、逐页 Markdown、JSON-LD 变得 AI 可读
- **能力平面** — 你的功能通过 OpenAPI、MCP、`tools.json` 变得 AI 可调用

## 工作原理

```bash
pnpm add next-ai-ready
npx next-ai-ready init
npx next-ai-ready build
```

`init` 命令生成路由处理器和配置文件。`build` 命令扫描你的 MDX 内容，将一切编译为 AI 消费者所需的产出物。

这些产出物改善的是技术可访问性，不保证被索引、获得排名、被引用或出现在 AI 生成的回答中。

你现有的 UI 不受影响。框架添加**新路由**来提供内容和能力的 AI 优化表示。

## 产出物一览

| 产出物             | 消费者                   |
| --------------- | --------------------- |
| `/llms.txt`     | AI 搜索爬虫               |
| `/sitemap.md`   | Agent 可读的页面发现目录       |
| `/openapi.json` | Agent 框架              |
| `/api/mcp`      | Claude Desktop、Cursor |
| `/<page>.md`    | RAG 管道                |
| `JSON-LD`       | 搜索引擎                  |
| `/tools.json`   | OpenAI 工具格式           |

## 选择下一步

- [完成 10 分钟快速开始](/zh/docs/guides/quickstart)，安装并验证所有生成产物。
- [为 Next.js 站点添加 llms.txt](/zh/docs/guides/nextjs-llms-txt)，建立清晰的 AI 内容索引与逐页 Markdown。
- [连接 MCP 客户端](/zh/docs/guides/mcp-integration)，让 Agent 搜索内容或调用经过许可的工具。
- [为 AI 爬虫配置 robots.txt](/zh/docs/guides/robots-txt)，在不削弱正常搜索发现的前提下声明明确的抓取策略。
