---
title: "Continue MCP 配置：文件路径、键和示例 · DotsAgent"
description: "从 Continue Dev 向 Continue 添加 MCP 服务器：了解配置文件位置、顶层键和格式、远程 OAuth 支持，以及配置示例。"
url: https://dotsagent.io/zh/mcp/clients/continue
---

Continue Dev

# 向 Continue 添加 MCP 服务器

Continue 会从工作区中的 .continue/mcpServers/ 加载 YAML 块文件。

- **项目文件**: `.continue/mcpServers/<name>.yaml (or drop a Claude/Cursor/Cline-style mcp.json into .continue/mcpServers/)`
- **顶层键**: `mcpServers`
- **格式**: yaml
- **远程服务器的 OAuth**: 

## 配置示例

此示例按该客户端所需的格式，添加 GitHub 托管的服务器和作为本地服务器的 Playwright。

`.continue/mcpServers/mcp.yaml`

```
name: MCP servers
version: 0.0.1
schema: v1
mcpServers:
  - name: "github"
    type: streamable-http
    url: "https://api.githubcopilot.com/mcp/"
  - name: "playwright"
    type: stdio
    command: "npx"
    args:
      - "@playwright/mcp@latest"
```

## 注意事项和特殊情况

- mcpServers 是 YAML 列表，不是映射；每个块文件都需要包含 name、version 和 schema: v1。
- 也可以将 Claude、Cursor 或 Cline 风格的 mcp.json 放入 .continue/mcpServers/。
- 使用 ${{ secrets.NAME }} 引用机密。
- 未提供远程服务器 OAuth 的文档，MCP 页面也没有说明全局配置的位置。

[生成 Continue 配置 →](https://dotsagent.io/zh/mcp/config#client=continue)

## 其他客户端

[Claude Desktop](https://dotsagent.io/zh/mcp/clients/claude-desktop)

[Claude Code](https://dotsagent.io/zh/mcp/clients/claude-code)

[Cursor](https://dotsagent.io/zh/mcp/clients/cursor)

[VS Code (GitHub Copilot)](https://dotsagent.io/zh/mcp/clients/vscode-copilot)

[Windsurf / Devin Desktop](https://dotsagent.io/zh/mcp/clients/windsurf)

[Zed](https://dotsagent.io/zh/mcp/clients/zed)

[OpenAI Codex CLI](https://dotsagent.io/zh/mcp/clients/codex-cli)

[Gemini CLI](https://dotsagent.io/zh/mcp/clients/gemini-cli)

[ChatGPT](https://dotsagent.io/zh/mcp/clients/chatgpt)

[OpenClaw](https://dotsagent.io/zh/mcp/clients/openclaw)

[Cline](https://dotsagent.io/zh/mcp/clients/cline)

[JetBrains AI Assistant](https://dotsagent.io/zh/mcp/clients/jetbrains-ai)

## 来源

1. [docs.continue.dev](https://docs.continue.dev/customize/deep-dives/mcp)/customize/deep-dives/mcp

为 AI agent 开发者提供的独立参考资料。与此处提及的任何厂商均无关联。

© 2026 DotsAgent · 事实核查日期：2026年10月1日
