本文へスキップ
動画中級

LLM が生成したコードを Cloudflare Sandbox で安全に実行する

LLM が生成したコードに認証情報を盗ませない方法。ワークスペースごとのサンドボックス、送信ポリシー、コンテナ外からの認証情報注入を備えた MCP 対応 Worker を紹介します。

公開日
2026年11月4日
YouTube で見る

この紹介文は現在英語版のみです。

A walkthrough of an MCP-enabled Cloudflare Worker with three tools — open workspace, run code and close workspace. Each workspace gets its own Durable Object and sandbox container, so an agent can clone a repo, run npm install and retry its scripts in the same isolated environment.

What you’ll learn

  • Give each workspace its own Durable Object and sandbox container
  • Expose open/run/close tools over MCP
  • Lock down outbound traffic with an egress policy
  • Attach GitHub credentials from the Worker, outside the container

Cloudflare products used

Sandbox SDK, Durable Objects, Workers.

Watch the full video on the Cloudflare Developers YouTube channel.

さらに学ぶ