> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bitiful.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bitiful.com/_mcp/server.
> If something on this page is wrong or missing, POST JSON {"page": "<page URL>", "message": "<what is wrong>"} to https://docs.bitiful.com/_biti/feedback/agent.

# 在 AI 工具中使用文档

> 把缤纷云文档接入 Claude Code、Codex、Cursor、VS Code 等 AI 工具：MCP 服务地址、可用工具，以及 llms.txt 与页面 Markdown 版本。

文档站提供一个只读的 MCP 服务，接入后 AI 工具可以直接检索和读取文档页面，不用再复制粘贴。

> **Note**
>
> 这个 MCP 服务只提供文档内容，与 S4 的 [AccessKey](https://docs.bitiful.com/bitiful-s4/handbook/access-keys.md) 无关，不需要填密钥。

## 服务地址

| 项目   | 值                                      |
| :--- | -------------------------------------- |
| 地址   | `https://docs.bitiful.com/_mcp/server` |
| 传输方式 | Streamable HTTP，返回 JSON                |
| 认证   | 不需要                                    |
| 权限   | 只读                                     |

提供的工具：

| 工具            | 作用          |
| :------------ | ----------- |
| `search_docs` | 按关键词检索文档    |
| `get_page`    | 读取某个页面的完整内容 |
| `list_pages`  | 列出全部页面      |

## Claude Code

```bash
claude mcp add --transport http bitiful-docs https://docs.bitiful.com/_mcp/server
```

添加后用 `/mcp` 查看连接状态和可用的工具。

## Codex

```bash
codex mcp add bitiful-docs --url https://docs.bitiful.com/_mcp/server
```

也可以直接写进 `~/.codex/config.toml`：

```toml title="~/.codex/config.toml"
[mcp_servers.bitiful-docs]
url = "https://docs.bitiful.com/_mcp/server"
```

## Cursor

写入 `~/.cursor/mcp.json`：

```json title="~/.cursor/mcp.json"
{
  "mcpServers": {
    "bitiful-docs": {
      "url": "https://docs.bitiful.com/_mcp/server"
    }
  }
}
```

## VS Code

写入项目里的 `.vscode/mcp.json`：

```json title=".vscode/mcp.json"
{
  "servers": {
    "bitiful-docs": {
      "type": "http",
      "url": "https://docs.bitiful.com/_mcp/server"
    }
  }
}
```

## 其他工具

任何支持 Streamable HTTP 的 MCP 客户端，填同一个地址即可：`https://docs.bitiful.com/_mcp/server`。

## 不接 MCP 也能读

- 整站索引：[llms.txt](https://docs.bitiful.com/llms.txt)，按标题列出全部页面；
- 单个页面：在页面网址后加 `.md`，例如 `https://docs.bitiful.com/clients/rclone.md`，拿到 Markdown 原文。

## 常见问题

<details>
<summary>能用它读写存储桶吗</summary>

不能。它只负责文档的检索和读取。管理 S4 请用 [SDK](https://docs.bitiful.com/developer/sdk/intro.md)、[命令行工具](https://docs.bitiful.com/clients/overview.md) 或 [API](https://docs.bitiful.com/developer/api/s4.md)。

</details>

<details>
<summary>需要账户或密钥吗</summary>

不需要，服务对公开访问，也没有认证步骤。

</details>

<details>
<summary>读到的内容和页面不一致</summary>

让模型重新调用一次 `get_page`，或直接打开页面网址加 `.md` 看 Markdown 原文。

</details>
