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

# 连接 Olostep 到 MCP 客户端

> 设置 Cline、Zed、Gemini CLI、Codex、Goose、opencode、Warp、LM Studio、GitHub Copilot 编码代理等

以下每个 MCP 客户端都连接到托管的 Olostep MCP 服务器 `https://mcp.olostep.com/mcp`，并获取相同的 8 个实时网络工具：搜索、抓取、爬取、带来源的答案，以及最多 100k 个 URL 的批处理。对于 Cursor、Claude Code、Claude Desktop、VS Code 和 Windsurf，请参见 [Olostep MCP Server](https://docs.olostep.com/integrations/mcp-server.md)。

## 开始之前

从 [Olostep 仪表盘](https://www.olostep.com/dashboard/api-keys) 获取一个 API 密钥。新账户可获得 500 个免费积分，无需信用卡。

大多数客户端将密钥作为头部发送：`Authorization: Bearer <YOUR_API_KEY>`。无法设置头部的客户端则使用 OAuth 登录 Olostep：只需添加 URL，客户端会打开一个登录页面。

> [!TIP]
>
> 有几个客户端从环境变量中读取密钥，因此它不会出现在配置文件中。只需在你的 shell 配置文件中设置一次：`export OLOSTEP_API_KEY="<YOUR_API_KEY>"`。

## 终端中的编码代理

> [accordion] Gemini CLI
>
> ```bash theme={null}
> gemini mcp add --transport http --scope user \
>   --header "Authorization: Bearer <YOUR_API_KEY>" \
>   olostep https://mcp.olostep.com/mcp
> ```
>
> 或者将其添加到 `~/.gemini/settings.json`（或项目中的 `.gemini/settings.json`）。`httpUrl` 是可流式传输的 HTTP 端点：
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "olostep": {
>       "httpUrl": "https://mcp.olostep.com/mcp",
>       "headers": { "Authorization": "Bearer <YOUR_API_KEY>" }
>     }
>   }
> }
> ```
>
> **验证：** `gemini mcp list` 显示 `olostep` 已连接，并且 Gemini CLI 中的 `/mcp` 列出了其工具。

> [accordion] OpenAI Codex
>
> Codex 从环境变量中读取密钥。在你的 shell 中设置 `OLOSTEP_API_KEY`：
>
> ```bash theme={null}
> codex mcp add olostep --url https://mcp.olostep.com/mcp --bearer-token-env-var OLOSTEP_API_KEY
> ```
>
> 或者将其添加到 `~/.codex/config.toml`，Codex CLI、IDE 扩展和应用程序共享此配置：
>
> ```toml theme={null}
> [mcp_servers.olostep]
> url = "https://mcp.olostep.com/mcp"
> bearer_token_env_var = "OLOSTEP_API_KEY"
> ```
>
> **验证：** `codex mcp list`，或 Codex 中的 `/mcp`。

> [accordion] Goose
>
> 运行 `goose configure`，选择 **Add Extension** → **Remote Extension (Streamable HTTP)**，输入 `https://mcp.olostep.com/mcp` 作为端点，并添加头部 `Authorization: Bearer <YOUR_API_KEY>`。
>
> 或者将其添加到 `~/.config/goose/config.yaml`。注意键是 `uri`：
>
> ```yaml theme={null}
> extensions:
>   olostep:
>     type: streamable_http
>     name: olostep
>     enabled: true
>     uri: "https://mcp.olostep.com/mcp"
>     headers:
>       Authorization: "Bearer <YOUR_API_KEY>"
>     timeout: 300
> ```

> [accordion] opencode
>
> ```bash theme={null}
> opencode mcp add olostep --global --url https://mcp.olostep.com/mcp \
>   --header 'Authorization=Bearer {env:OLOSTEP_API_KEY}'
> ```
>
> 或者将其添加到 `~/.config/opencode/opencode.json`。设置 `"oauth": false`，因为 Olostep 在这里使用 API 密钥：
>
> ```json theme={null}
> {
>   "$schema": "https://opencode.ai/config.json",
>   "mcp": {
>     "servers": {
>       "olostep": {
>         "type": "remote",
>         "url": "https://mcp.olostep.com/mcp",
>         "oauth": false,
>         "headers": { "Authorization": "Bearer {env:OLOSTEP_API_KEY}" }
>       }
>     }
>   }
> }
> ```
>
> **验证：** `opencode mcp list` 显示 `olostep` 已连接。

> [accordion] Amp
>
> 添加到 `~/.config/amp/settings.json`（或工作区中的 `.amp/settings.json`，然后运行 `amp mcp approve olostep`）：
>
> ```json theme={null}
> {
>   "amp.mcpServers": {
>     "olostep": {
>       "url": "https://mcp.olostep.com/mcp",
>       "headers": { "Authorization": "Bearer ${OLOSTEP_API_KEY}" }
>     }
>   }
> }
> ```
>
> **验证：** `amp mcp doctor`。

> [accordion] Crush
>
> 将此行添加到 `~/.config/crush/crushrc`（或项目中的 `.crushrc`）：
>
> ```bash theme={null}
> mcp add olostep --type http --url https://mcp.olostep.com/mcp --header Authorization "Bearer $OLOSTEP_API_KEY"
> ```

> [accordion] Qwen Code
>
> ```bash theme={null}
> qwen mcp add --transport http \
>   --header "Authorization: Bearer <YOUR_API_KEY>" \
>   olostep https://mcp.olostep.com/mcp
> ```
>
> 配置放在 `~/.qwen/settings.json` 中，使用与 Gemini CLI 相同的 `httpUrl` 和 `headers` 结构。
>
> **验证：** `qwen mcp list`，或 Qwen Code 中的 `/mcp`。

> [accordion] Kiro CLI (formerly Amazon Q Developer CLI)
>
> Kiro CLI 没有用于头部的标志，因此将服务器添加到 `~/.kiro/settings/mcp.json`（或工作区中的 `.kiro/settings/mcp.json`）：
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "olostep": {
>       "url": "https://mcp.olostep.com/mcp",
>       "headers": { "Authorization": "Bearer <YOUR_API_KEY>" }
>     }
>   }
> }
> ```
>
> **验证：** `kiro-cli mcp list`，或聊天会话中的 `/mcp`。

> [accordion] Rovo Dev CLI
>
> 运行 `acli rovodev mcp` 打开 `~/.rovodev/mcp.json`，并添加：
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "olostep": {
>       "url": "https://mcp.olostep.com/mcp",
>       "headers": { "Authorization": "Bearer <YOUR_API_KEY>" },
>       "transport": "http"
>     }
>   }
> }
> ```
>
> **验证：** 交互模式中的 `/mcp` 显示服务器及其工具。

> [accordion] Auggie CLI (Augment Code)
>
> ```bash theme={null}
> auggie mcp add olostep --transport http --url https://mcp.olostep.com/mcp \
>   --header "Authorization:Bearer <YOUR_API_KEY>"
> ```
>
> **验证：** `auggie mcp list`，或 Auggie 中的 `/mcp`。

> [accordion] Warp
>
> 打开 **Settings** → **Agents** → **MCP servers**，点击 **+ Add**，并粘贴：
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "olostep": {
>       "url": "https://mcp.olostep.com/mcp",
>       "headers": { "Authorization": "Bearer <YOUR_API_KEY>" }
>     }
>   }
> }
> ```
>
> 相同的 JSON 也适用于 `~/.warp/.mcp.json`。
>
> **验证：** MCP 服务器页面显示 `olostep` 正在运行，带有其工具和一个 **View Logs** 按钮。

## 编辑器和 IDE

> [accordion] Cline
>
> 打开 Cline 面板 → **MCP Servers** → **Configure** → **Configure MCP Servers**，并添加服务器。将 `type` 设置为 `streamableHttp`；否则，Cline 使用旧的 SSE 传输：
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "olostep": {
>       "type": "streamableHttp",
>       "url": "https://mcp.olostep.com/mcp",
>       "headers": { "Authorization": "Bearer <YOUR_API_KEY>" },
>       "disabled": false
>     }
>   }
> }
> ```

> [accordion] Roo Code
>
> 点击 Roo Code 面板中的 MCP 图标，然后 **Edit Global MCP**（或将 `.roo/mcp.json` 添加到项目中）。注意类型是 `streamable-http`：
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "olostep": {
>       "type": "streamable-http",
>       "url": "https://mcp.olostep.com/mcp",
>       "headers": { "Authorization": "Bearer <YOUR_API_KEY>" }
>     }
>   }
> }
> ```

> [accordion] Zed
>
> 打开 **Settings** → **AI** → **MCP Servers** → **Add Server** → **Add Remote Server**，或将其添加到你的设置文件中（`zed: open settings file`）：
>
> ```json theme={null}
> {
>   "context_servers": {
>     "olostep": {
>       "url": "https://mcp.olostep.com/mcp",
>       "headers": { "Authorization": "Bearer <YOUR_API_KEY>" }
>     }
>   }
> }
> ```
>
> 省略 `headers` 以使用 OAuth 登录。
>
> **验证：** **MCP Servers** 中 `olostep` 旁边的绿色点表示它处于活动状态。

> [accordion] Kiro
>
> 添加到 `~/.kiro/settings/mcp.json`（或工作区中的 `.kiro/settings/mcp.json`）。保存时 Kiro 会重新连接：
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "olostep": {
>       "url": "https://mcp.olostep.com/mcp",
>       "headers": { "Authorization": "Bearer <YOUR_API_KEY>" }
>     }
>   }
> }
> ```

> [accordion] Trae
>
> 打开 **Settings** → **MCP** → **Add** → **Create Manually**，粘贴此内容，然后点击 **Confirm**。对于项目，打开 **Enable Project MCP** 并使用 `.trae/mcp.json`：
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "olostep": {
>       "url": "https://mcp.olostep.com/mcp",
>       "headers": { "Authorization": "Bearer <YOUR_API_KEY>" }
>     }
>   }
> }
> ```

> [accordion] Visual Studio
>
> 在 Copilot Chat 中，切换到 **Agent** 模式，打开 **Tools**，点击 **+**，并添加 `https://mcp.olostep.com/mcp`。或者将其添加到 `%USERPROFILE%\.mcp.json`（或解决方案中的 `.mcp.json`）：
>
> ```json theme={null}
> {
>   "servers": {
>     "olostep": {
>       "url": "https://mcp.olostep.com/mcp"
>     }
>   }
> }
> ```
>
> Visual Studio 在服务器上方显示 **Authentication Required**：点击它并登录 Olostep。然后在 **Tools** 选择器中启用 Olostep 工具，默认情况下它们是关闭的。

> [accordion] Zencoder
>
> Zencoder 在本地运行 Olostep 服务器（需要 Node.js 18+）。在 VS Code 中，打开 Zencoder 菜单 → **Settings** → **MCP Servers** → **Edit in settings.json** 并添加：
>
> ```json theme={null}
> {
>   "zencoder.mcpServers": {
>     "olostep": {
>       "command": "npx",
>       "args": ["-y", "olostep-mcp"],
>       "env": { "OLOSTEP_API_KEY": "<YOUR_API_KEY>" }
>     }
>   }
> }
> ```
>
> 在 JetBrains IDE 中，将 `olostep` 对象（不带 `zencoder.mcpServers` 包装器）粘贴到 **Settings** → **Tools** → **Zencoder** → **MCP Servers**。

## 桌面应用

> [accordion] LM Studio
>
> 在右侧边栏中，打开 **Program** → **Install** → **Edit mcp.json**（LM Studio 0.3.17 或更高版本），并添加：
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "olostep": {
>       "url": "https://mcp.olostep.com/mcp",
>       "headers": { "Authorization": "Bearer <YOUR_API_KEY>" }
>     }
>   }
> }
> ```

> [accordion] Perplexity (Mac app)
>
> 1. 打开 **Plugins** → **Add custom** → **Connector** → **Add MCP connector**，选择 **Remote**。
> 2. 命名为 `Olostep` 并输入 `https://mcp.olostep.com/mcp` 作为服务器 URL。
> 3. 在 **Advanced** 下，将传输设置为 **Streamable HTTP**，身份验证设置为 **OAuth**。
> 4. 点击 **Add**，然后选择 Olostep 卡并登录 Olostep。
>
> 尝试使用一个命名连接器的提示，例如：“使用 Olostep，找到 stripe.com 的定价页面并总结它。”

> [accordion] BoltAI
>
> 打开 **Settings** → **Connectors** → **+**，命名为 `Olostep`，并输入 `https://mcp.olostep.com/mcp` 作为端点。在 **Authentication** 下，选择 **Custom headers**，点击 **Add Header**，并将 `Authorization` 设置为 `Bearer <YOUR_API_KEY>`。点击 **Save & Connect**。
>
> **验证：** 在聊天的 **Tools** 菜单中开启 Olostep 工具。

## 云代理

> [accordion] GitHub Copilot 编码代理
>
> Copilot 编码代理从你的仓库设置中读取 MCP 服务器。你需要对仓库的管理员访问权限。
>
> 1. 添加密钥：**Settings** → **Secrets and variables** → **Agents** → **New repository secret**。命名为 `COPILOT_MCP_OLOSTEP_AUTH`，并将值设置为 `Bearer <YOUR_API_KEY>`。
> 2. 打开 **Settings** → **Copilot** → **MCP servers**，将此内容粘贴到 **MCP configuration** 中，并点击 **Save MCP configuration**：
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "olostep": {
>       "type": "http",
>       "url": "https://mcp.olostep.com/mcp",
>       "headers": { "Authorization": "$COPILOT_MCP_OLOSTEP_AUTH" },
>       "tools": ["search_web", "scrape_website", "answers", "create_map"]
>     }
>   }
> }
> ```
>
> `tools` 列出了 Copilot 可以调用的工具。使用 `["*"]` 允许所有 8 个，包括爬取和批处理。
>
> **验证：** 将问题分配给 Copilot，打开它创建的拉取请求，点击 **View session**，并展开 **Start MCP Servers**。Olostep 工具在该步骤的末尾列出。

## 本地运行服务器

任何运行本地（stdio）MCP 服务器的客户端也可以在你的机器上使用 Node.js 18+ 运行 Olostep：

```json theme={null}
{
  "command": "npx",
  "args": ["-y", "olostep-mcp"],
  "env": { "OLOSTEP_API_KEY": "<YOUR_API_KEY>" }
}
```

请参见 [Olostep MCP Server](https://docs.olostep.com/integrations/mcp-server.md) 了解工具、故障排除和 Docker 镜像。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.