> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/documentation/zh/analytics/insights/agents-and-mcp.md). Agents can also search and read this documentation through its [MCP server](https://gitbook.com/docs/~gitbook/mcp).

# Agents 与 MCP

跟踪大语言模型、编码代理和爬虫如何阅读你的文档

此 **Agents & MCP** 报告涵盖所有阅读您网站的非人类对象：LLM、编程代理、爬虫，以及连接到您网站 [MCP 服务器](https://gitbook.com/docs/documentation/zh/ai-for-your-readers/mcp-servers-for-published-docs.md).

如需打开此报告，请前往 **分析 → Agents & MCP** （位于网站侧边栏中）。

页面顶部会显示代理阅读的页面、它们占网站全部阅读量的比例，以及 MCP 调用次数。 **谁在阅读此网站** 图表将阅读量分为用户和代理两类，方便您观察这种比例随时间的变化。请参阅 [站点分析](https://gitbook.com/docs/documentation/zh/analytics/insights.md) 了解筛选条件、时间范围和时段比较。

<figure><img src="https://2111890564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fgit-blob-85f4debf645aef85c676d674edc9b0988d6b5d04%2F26_09_11_analytics_agents.png?alt=media&amp;token=2a40eedc-2477-498d-ba2d-d0214bd16f84" alt="The Agents &#x26; MCP report showing agent page reads, share of site reads, MCP calls, and reads over time"><figcaption><p>《代理与 MCP》报告。</p></figcaption></figure>

## 入口

代理通过多个入口访问你的内容，报告会统计每一种：

* **Markdown**：以 `.md`.
* **llms.txt**：您的 [适用于 LLM](https://gitbook.com/docs/documentation/zh/getting-started/llm-ready-docs.md) 的索引文件。
* **MCP**：通过您网站的 MCP 服务器进行的读取。
* **网站页面浏览量** 和 **RSS**：代理像浏览器一样读取您的网站。

## MCP 活动

三个卡片展示了工具如何使用您的文档：它们调用的 **MCP 工具** 、运行的 **MCP 搜索查询** ，以及通过 MCP 阅读的 **页面**。这些信息共同展示了您产品中的 AI 集成依赖文档的哪些部分。

## 哪些代理，以及它们读取了什么

**代理** 按阅读您网站的客户端对其排名。选择一种访问渠道，查看通过该渠道阅读的客户端。未表明身份的客户端会归为 **未识别**.

**已阅读页面** 按代理通过相应访问渠道阅读内容的数量对您的内容进行排名。

{% hint style="info" %}
如果代理很少访问您的内容，请参阅 [为 LLM 准备好的文档](https://gitbook.com/docs/documentation/zh/getting-started/llm-ready-docs.md) 了解如何让 AI 工具更容易发现和阅读您的网站。
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://gitbook.com/docs/documentation/zh/analytics/insights/agents-and-mcp.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
