供 AI agent 使用
这份文档除了网页,还提供四种便于程序读取的形式。你用 AI agent 或编程助手接入时,把其中一种交给它,它就能自己查阅文档。
| 形式 | 地址 | 适合 |
|---|---|---|
| 文档索引 | https://education.help.truezir.com/llms.txt |
让 agent 先看到全部页面的标题和地址,再按需读取 |
| 全文 | https://education.help.truezir.com/llms-full.txt |
一次把全部文档放进上下文 |
| 单页的 Markdown | 页面地址去掉结尾的 /,加上 .md |
只读取某一页 |
| MCP 服务 | https://education.help.truezir.com/mcp |
让 agent 按问题搜索文档,并读取相关的页面 |
API 本身的机器可读描述是 OpenAPI,地址见请求和响应的约定。
文档索引和全文
Section titled “文档索引和全文”llms.txt 按 llms.txt 约定列出每一页的标题、地址和一句说明,地址指向这一页的 Markdown。llms-full.txt 是全部页面的 Markdown 依次相接。
curl https://education.help.truezir.com/llms.txt单页的 Markdown
Section titled “单页的 Markdown”每一页都有一份 Markdown 原文,内容和网页相同。
| 网页 | Markdown |
|---|---|
https://education.help.truezir.com/homework/quickstart/ |
https://education.help.truezir.com/homework/quickstart.md |
https://education.help.truezir.com/ |
https://education.help.truezir.com/index.md |
MCP 服务
Section titled “MCP 服务”MCP(Model Context Protocol)是 AI 应用连接外部工具的开放协议。这份文档的 MCP 服务让 agent 用两个工具查阅文档,读取文档不需要 API 密钥。
| 工具 | 作用 | 参数 |
|---|---|---|
search_docs |
按关键词搜索文档,返回最相关的若干段落,以及每一段所在页面的标题和地址 | query:要搜索的内容;product(可选):只搜索 homework 或 video-generation |
read_page |
读取一页的 Markdown 全文 | path:页面的路径,例如 /homework/quickstart/ |
服务的地址是 https://education.help.truezir.com/mcp,传输方式是 Streamable HTTP。
在 Claude Code 里连接
Section titled “在 Claude Code 里连接”claude mcp add --transport http ningting-docs https://education.help.truezir.com/mcp在支持 MCP 配置文件的客户端里连接
Section titled “在支持 MCP 配置文件的客户端里连接”{ "mcpServers": { "ningting-docs": { "type": "http", "url": "https://education.help.truezir.com/mcp" } }}MCP 服务只提供文档,不代你调用 API。agent 调用 API 时仍然使用你的 API 密钥,见认证。