Cloudflare Audit Logs リモートMCPを VS Code にMCP接続する方法(設定手順)

Cloudflare のリモートMCPサーバーを VS Code に約1分でMCP接続。OAuth / 401 の問題は先に OAuth 2.1 デバッガーで確認できます。

🛡️ Official✓ VerifiedStreamable HTTPOAuth 2.1🛡️ A+~279 tok4 tools
Streamable HTTPhttps://auditlogs.mcp.cloudflare.com/mcp
Install in VS Code →

Or add to .vscode/mcp.json:

{
  "servers": {
    "cloudflare-audit-logs": {
      "type": "http",
      "url": "https://auditlogs.mcp.cloudflare.com/mcp"
    }
  }
}

接続手順

  1. MCP 設定を開く — vscode: deeplink でワンクリックインストールするか、プロジェクトルートに .vscode/mcp.json を作成します。
  2. サーバーを追加 — { "servers": { "cloudflare-audit-logs": { "type": "http", "url": https://auditlogs.mcp.cloudflare.com/mcp } } } と記述します。
  3. 認証を完了 — 初回呼び出し時に Cloudflare の OAuth 認可画面が開きます。許可するとツールが有効になります。
  4. 検証 — Copilot Chat を再起動して Agent モードでツールを確認します。オンライン Inspector に https://auditlogs.mcp.cloudflare.com/mcp を貼り付け、initialize と tools/list を実行して接続を確認します。

🧰 ツール一覧(4)

ToolSafetyDescriptionParameters
query_audit_logs
~82 tok
🟢 ReadQuery audit logs with actor, action and time filters.actor: stringaction: stringsince: string
get_audit_log_entry
~54 tok
🟢 ReadGet full detail of a single audit log entry.logId*: string
list_zone_audit_logs
~66 tok
🟢 ReadList audit events scoped to a specific zone.zoneId*: stringsince: string
list_actor_activity
~57 tok
🟢 ReadSummarize recent activity by a specific actor.actorEmail*: string

その他の接続ガイド