dotsagent.io
言語:日本語
Cline Bot Inc.

ClineにMCPサーバーを追加

Cline は、VS Code の拡張機能ストレージにある cline_mcp_settings.json にサーバーを保存します。CLI の場合は ~/.cline/mcp.json を使います。

macOS
~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux
~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
CLI
~/.cline/mcp.json
トップレベルキー
mcpServers
形式
json
リモートサーバーのOAuth
未記載

設定例

この例では、GitHub のホスト型サーバーと Playwright のローカルサーバーを、このクライアントが想定する形式で追加します。

~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "github": {
      "type": "streamableHttp",
      "url": "https://api.githubcopilot.com/mcp/",
      "disabled": false
    },
    "playwright": {
      "command": "npx",
      "args": [
        "@playwright/mcp@latest"
      ],
      "disabled": false
    }
  }
}

注意点と仕様

  • リモートエントリーには type streamableHttp が必要です。指定しないと、Cline は従来の SSE にフォールバックします。
  • 表示されているパスは安定版 VS Code 用です。ほかの VS Code フォークでは、それぞれ独自の globalStorage フォルダーが使われます。
  • エントリーでは disabled と、ツール名のリストである autoApprove も指定できます。
  • リモートサーバーのOAuthについては、ドキュメントに記載がありません。
  • cline mcpを実行すると、対話形式のセットアップウィザードが開きます。

Clineの設定を作成 →

その他のクライアント

情報源

  1. docs.cline.bot/mcp/configuring-mcp-servers
  2. github.com/cline/cline