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

# Arlet 的 MCP

> 如何将Arlet与各种MCP客户端连接

## 目录

* [Claude Code](#claude-code)
* [Claude.ai和Claude for Desktop](#claudeai和claude-for-desktop)
* [ChatGPT](#chatgpt)
* [Codex](#codex)
* [VS Code](#vs-code)

***

## Claude Code

### 1. 添加MCP服务器

在终端中运行以下命令。

```bash theme={null}
claude mcp add --transport http arlet https://mcp.arlet.dev/mcp/
```

### 2. 认证

1. 启动Claude Code
2. 运行 `/mcp` 命令
3. 选择 `arlet` 并点击 **Authenticate**
4. 浏览器将自动打开——通过Dashboard使用GitHub或Google登录
5. 在同意页面点击 **Allow**
6. 连接完成

***

## Claude.ai和Claude for Desktop

Claude.ai和Claude for Desktop的设置说明即将推出。
在此期间，如果您需要立即连接到Arlet MCP服务器，请使用上面的Claude Code配置。

***

## ChatGPT

<Note>
  使用MCP的自定义连接器可在ChatGPT的Pro和Plus账户的网页版中使用。
</Note>

### 1. 添加MCP服务器

1. 启用[Developer mode](https://platform.openai.com/docs/guides/developer-mode)：
   * 前往 **Settings** → **Connectors** → **Advanced settings** → **Developer mode**
2. 打开 **ChatGPT Settings**
3. 在 **Connectors** 标签页中，点击 **Create** 添加新连接器：
   * **Name**: `Arlet`
   * **MCP server URL**: `https://mcp.arlet.dev/mcp/`
   * **Authentication**: `OAuth`
4. 点击 **Create**

### 2. 认证

Arlet连接器将在对话期间出现在编辑器的 **Developer mode** 工具中。点击它通过Dashboard使用GitHub或Google登录并完成OAuth流程。

***

## Codex

### 1. 添加MCP服务器

在终端中运行以下命令。

```bash theme={null}
# Install Codex
npm i -g @openai/codex

# Add Arlet MCP
codex mcp add arlet --url https://mcp.arlet.dev/mcp/

# Start Codex
codex
```

### 2. 认证

添加MCP服务器时，Codex将检测到OAuth支持并自动打开浏览器——通过Dashboard使用GitHub或Google登录，然后在同意页面点击 **Allow**。

***

## VS Code

### 1. 添加MCP服务器

在项目根目录中创建或编辑 `.vscode/mcp.json`。

```json .vscode/mcp.json theme={null}
{
  "servers": {
    "arlet": {
      "url": "https://mcp.arlet.dev/mcp/"
    }
  }
}
```

### 2. 认证

1. 打开命令面板（`Ctrl+Shift+P` / `Cmd+Shift+P`）
2. 运行 **MCP: List Servers**
3. 选择 `arlet` 并点击 **Authenticate**
4. 浏览器将自动打开——通过Dashboard使用GitHub或Google登录
5. 在同意页面点击 **Allow**
6. 连接完成
