> This page is for 文档.

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## 禁用 MCP 服务器端点

ai, docs.yml

现在可以通过在 `docs.yml` 中设置 `page-actions.options.mcp: false` 来完全禁用文档站点上的 MCP 服务器。禁用后，`/_mcp/server` 端点返回 404，MCP URL 从 `llms.txt` 和代理提示中移除，"Connect to Claude Code"/"Connect to Cursor"按钮也会隐藏。

这对于已认证的文档站点尤其有用，因为未认证的 AI 代理可能会发现端点但无法使用它。

**`docs.yml`**

```yaml docs.yml
page-actions:
  options:
    mcp: false
```

阅读文档