> ## Documentation Index
> Fetch the complete documentation index at: https://docs-docflow.textin.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 安装 Docflow 文档 MCP

> 连接 TextIn Docflow 文档 MCP 服务，让 Agent 获得文档检索能力

## 01 什么是 Docflow 文档 MCP

TextIn Docflow 文档 MCP 是一个基于 [Model Context Protocol](https://modelcontextprotocol.io/) 的服务，为 AI Coding Agent 提供 TextIn Docflow 的文档检索能力。

接入后，你的 Agent 可以：

* 查询 Docflow API 文档
* 获取接口参数说明
* 检索使用示例和最佳实践

## 02 安装步骤

<Tabs>
  <Tab title="Claude Code">
    ### 添加 MCP 服务

    在终端中执行以下命令：

    ```bash theme={null}
    claude mcp add textin-docflow-docs --transport sse http://docflow.textin.com/textin-docs/mcp
    ```

    ### 确认安装成功

    运行以下命令查看已添加的 MCP 服务列表：

    ```bash theme={null}
    claude mcp list
    ```

    输出中应包含 `textin-docflow-docs`。
  </Tab>

  <Tab title="Codex">
    ### 添加 MCP 服务

    在终端中执行以下命令：

    ```bash theme={null}
    codex mcp add textin-docflow-docs --url http://docflow.textin.com/textin-docs/mcp
    ```

    ### 确认安装成功

    运行以下命令查看已添加的 MCP 服务列表：

    ```bash theme={null}
    codex mcp list
    ```

    输出中应包含 `textin-docflow-docs`。
  </Tab>

  <Tab title="Cursor">
    ### 添加 MCP 服务

    1. 打开 **Cursor** → **Preferences** → **Cursor Settings**
    2. 在左侧导航选择 **Tools & MCPs**
    3. 点击 **Add Custom MCP**
    4. 填入以下 JSON 配置：

    ```json theme={null}
    {
      "mcpServers": {
        "textin-docflow-docs": {
          "url": "http://docflow.textin.com/textin-docs/mcp"
        }
      }
    }
    ```

    5. 保存后确认 `textin-docflow-docs` 状态为已连接
  </Tab>

  <Tab title="VS Code Chat">
    ### 添加 MCP 服务

    通过命令面板（`Ctrl+Shift+P` / `Cmd+Shift+P`）搜索 **MCP: Add Server**，依次：

    1. 选择 **HTTP (http or sse)**
    2. 输入服务 URL：`http://docflow.textin.com/textin-docs/mcp`
    3. 输入服务 ID：`textin-docflow-docs`

    ### 确认安装成功

    通过命令面板（`Ctrl+Shift+P` / `Cmd+Shift+P`）运行 **MCP: List Servers**，确认 `textin-docflow-docs` 状态为已连接。
  </Tab>

  <Tab title="Trae">
    ### 添加 MCP 服务

    1. 打开 Trae **设置** → **MCP**
    2. 点击下拉 **添加**，选择 **手动配置**
    3. 填入以下 JSON 配置：

    ```json theme={null}
    {
      "mcpServers": {
        "textin-docflow-docs": {
          "url": "http://docflow.textin.com/textin-docs/mcp"
        }
      }
    }
    ```

    4. 保存后确认 `textin-docflow-docs` 状态为已连接
  </Tab>
</Tabs>

<Warning>
  请确保你的网络环境可以访问 `docflow.textin.com`，如有网络限制请联系管理员开通白名单。
</Warning>
