mcpField
D
Dazzle - Agentic Streaming

Dazzle - Agentic Streaming

ローカル
dazzle.fm開発ツール130 週間前に更新

Dazzle - Agentic Streaming について

Dazzleは、ライブ配信用コンテンツをレンダリングするクラウドブラウザステージを作成するCLIとMCPサーバーです。エージェントや配信ワークフロー向けで、サンドボックスのクライアントにはワークスペース用ツール、CLIにはフルシェルアクセスを提供します。

主な機能

  1. 01クラウドステージの作成と管理
  2. 02コンテンツの同期と変更時の更新
  3. 03ステージ出力のスクリーンショット撮影
  4. 04配信先の設定
  5. 05ステージのワークスペースファイル管理
  6. 06実行中のページへのリアルタイムイベント送信

活用シーン

  1. 01クラウドブラウザ配信用コンテンツの作成
  2. 02サンドボックスのMCPクライアントからステージを更新
  3. 03スクリーンショットで表示結果を確認
  4. 04ステージを配信先に接続

MCP 対応

stdio MCPサーバーは、CLIコマンド、ステージのワークスペースファイル操作、同期、スクリーンショット、ガイドを提供し、2つのドキュメントリソースも公開します。MCPのワークスペースツールではシェルを実行できません。

設定

ローカルサーバーの設定はどのクライアントでも共通です。コピーしてクライアントの MCP 設定ファイルに貼り付けてください。

mcp.json · 共通設定
{
"mcpServers": {
"cli-dazzle-labs": {
"command": "npx",
"args": [
"-y",
"@dazzle-labs/cli"
],
"env": {
"DAZZLE_STAGE": "<DAZZLE_STAGE>",
"DAZZLE_API_KEY": "<DAZZLE_API_KEY>"
}
}
}
}
起動コマンドnpx -y @dazzle-labs/cli
設定が必要な環境変数
DAZZLE_STAGEPin to a specific stage name or ID. If omitted, auto-selects when you have one stage.
DAZZLE_API_KEYシークレットAPI key for headless/CI use. Alternative to interactive login.

ローカルサーバーにはマシン上の実行環境(Node.js 18 以上など)が必要です。設定ファイルの場所はクライアントごとに異なります。

パッケージ
npm@dazzle-labs/cli0.7.1

ツール

8

掲載時のツール一覧 · 3 週間前に更新

パラメーター型必須説明
argsnull|arrayはい必須。CLI 引数(例: ["stage" "list"] または ["--help"])。--json フラグは自動的に追加されます。

詳細

dazzle

Dazzle の公式 CLI および MCP サーバーです。AI エージェントやライブ配信向けのクラウドステージを提供します。

1 つのバイナリで 2 つのインターフェースを利用できます。

  • CLI — コーディングエージェント(Claude Code、Cursor、ターミナル)や自動化向けの、シェルへのフルアクセス
  • MCP サーバー(dazzle mcp)— サンドボックス化されたクライアント(Claude Desktop、VS Code、任意の MCP ホスト)向けの stdio 統合

Dazzle CLI のデモ

インストール

macOS / Linux
curl -sSL https://dazzle.fm/install.sh | sh
Windows(PowerShell)
irm https://dazzle.fm/install.ps1 | iex
その他のオプション
go install github.com/dazzle-labs/cli/cmd/dazzle@latest

macOS(arm64/amd64)、Linux(amd64/arm64)、Windows(amd64/arm64)向けのビルド済みバイナリは、リリースページから入手できます。

クイックスタート(CLI)

dazzle login                              # authenticate (opens browser)
dazzle stage create my-stage              # create a stage
dazzle stage up                           # activate — starts streaming
dazzle stage sync ./my-app --watch        # push content, auto-refresh on changes
dazzle stage screenshot -o preview.png    # verify output
dazzle destination add                    # add Twitch/Kick/custom RTMP
dazzle destination attach my-destination  # go live

クイックスタート(MCP)

MCP クライアントの設定に追加してください。

{
  "mcpServers": {
    "dazzle": {
      "command": "dazzle",
      "args": ["mcp"]
    }
  }
}

MCP サーバーは認証情報なしで起動します。エージェントは guide を呼び出してプラットフォームについて確認し、cli ["login"] を呼び出して認証できます。

MCP ツール

ツール説明
clidazzle CLI コマンドを実行します。利用可能なコマンドを確認するには、["--help"] を使用してください。出力は JSON です。
edit_file完全一致する文字列の置換によって、ステージのワークスペース内のファイルを編集します。old_string はファイル内で 1 回だけ完全一致する必要があります。現在の内容を確認するには、先に read_file を使用してください。
guideDazzle の完全なリファレンスを取得します。入門ガイド、CLI コマンド、コンテンツ機能、配信のセットアップが含まれます。ステージのコンテンツを作成または変更する前に、これを読んでください。
list_filesステージのワークスペース(~/.dazzle/stages/{stage}/)内のすべてのファイルを一覧表示します。相対パスを 1 行に 1 つずつ返します。
read_fileステージのワークスペース(~/.dazzle/stages/{stage}/{path})からファイルを読み込みます。
screenshotステージで現在表示されているブラウザー出力のスクリーンショットをキャプチャします。PNG 画像を返します。
syncステージのワークスペース(~/.dazzle/stages/{stage}/)をライブステージに同期します。ファイルを書き込んだ後に実行して、コンテンツを反映してください。'dazzle stage sync {workspace-dir}' と同等です。
write_fileステージのワークスペース(~/.dazzle/stages/{stage}/{path})にファイルを書き込みます。必要に応じて親ディレクトリを作成します。ステージに同期できるコンテンツを作成するには、これを使用してください。
ワークスペースツール

ワークスペースツール(write_file、read_file、edit_file、list_files、sync)は、ホストのファイルシステム上の ~/.dazzle/stages/{stage-id}/ にファイルを保存します。これにより、エージェントの bash が分離されたコンテナ内で実行され、CLI プロセスとファイルを共有できない、サンドボックス化された環境(例:Claude Desktop)との橋渡しができます。

ワークフロー: write_file → edit_file(反復) → sync → screenshot(確認)

制限事項: シェル/exec はありません。ワークスペース内ではビルドツール(npm、tailwind など)を実行できません。コンテンツはビルド済みの HTML/CSS/JS である必要があります。ファイルシステムとシェルにフルアクセスできるエージェント(例:Claude Code)は、フル機能を利用するために dazzle stage sync を直接使用してください。

MCP リソース
URI説明
https://dazzle.fm/llms-full.txtDazzle の完全なリファレンス。入門ガイド、CLI ヘルプ、コンテンツ作成ガイドが含まれます。
https://dazzle.fm/llms.txtDazzle のクイックスタートガイド。プラットフォームの概要、セットアップ、CLI の基本、ドキュメントへのリンクが含まれます。

CLI と MCP — どちらを使うべきですか?

CLIMCP
最適な用途コーディングエージェント、ターミナル、CI/CDClaude Desktop、VS Code、サンドボックス化されたクライアント
ファイルシステムフルアクセス — 任意の場所への書き込み、ビルドツールの実行ワークスペースのみ(~/.dazzle/stages/{id}/)
シェルはい — npm、tailwind、あらゆるツールチェーンいいえ — ビルド済みコンテンツのみ
コンテンツの同期dazzle stage sync ./dirwrite_file + sync
スクリーンショットdazzle stage screenshot -o file.pngscreenshot ツール(JPEG を返します)
認証dazzle login または DAZZLE_API_KEYMCP 経由の cli ["login"]

CLI リファレンス

Usage: dazzle <command> [flags]

Dazzle — cloud stages for streaming.

A stage is a cloud browser environment that renders and streams your content.
Sync a local directory (must contain an index.html) and everything visible in
the browser window is what gets streamed to viewers.

Your content runs in a real browser with full access to standard web APIs (DOM,
Canvas, WebGL, Web Audio, fetch, etc.). localStorage is persisted across stage
restarts — use it to store app state that should survive between sessions.

Workflow:
 1. dazzle login # authenticate (one-time)
 2. dazzle s new my-stage # create a stage
 3. dazzle s up # bring it up — starts streaming to Dazzle
 4. dazzle s sync ./my-app -w # sync + auto-refresh on changes
 5. dazzle s ss -o preview.png # take a screenshot to verify
 6. dazzle s down # stop streaming and shut down

Auth: dazzle login, or set DAZZLE_API_KEY for headless/CI use. Stage selection:
use -s <name>, DAZZLE_STAGE env, or auto-selected if only one.

https://dazzle.fm

Flags:
  -h, --help              Show context-sensitive help.
  -j, --json              Output as JSON.
  -s, --stage=STRING      Stage name or ID ($DAZZLE_STAGE).
      --api-url=STRING    API URL ($DAZZLE_API_URL).

Commands:
  version                          Print version information.
  update                           Update dazzle to the latest release.
  guide                            Show content authoring guide (rendering tips,
                                   performance, best practices).
  login                            Authenticate with Dazzle (opens browser).
  logout                           Clear stored credentials.
  whoami                           Show current user.
  stage (s) list (ls)              List stages.
  stage (s) create (new)           Create a stage.
  stage (s) delete (rm)            Delete a stage.
  stage (s) up                     Activate a stage.
  stage (s) down                   Deactivate a stage.
  stage (s) status (st)            Show stage status.
  stage (s) stats                  Show live pipeline stats.
  stage (s) preview                Show the shareable preview URL for a running
                                   stage.
  stage (s) sync (sy)              Sync a local directory to the stage. This is
                                   the primary way to push content — use --watch
                                   for live development.
  stage (s) refresh (r)            Reload the stage entry point.
  stage (s) event (ev) emit (e)    Push a named event with JSON data to
                                   the running page — dispatched as a DOM
                                   CustomEvent. Use this to send real-time data
                                   from external processes (other agents, APIs,
                                   etc.) without re-syncing or reloading.
  stage (s) logs (l)               Retrieve stage console logs.
  stage (s) screenshot (ss)        Capture a screenshot of the stage.
  stage (s) info                   Get current stream title and category.
  stage (s) title                  Set the stream title (not supported for
                                   Restream).
  stage (s) category               Set the stream category or game (not
                                   supported for Restream).
  stage (s) chat send              Send a message to live chat (not supported
                                   for Restream).
  destination (dest) list (ls)     List broadcast destinations.
  destination (dest) add (create,new)
                                   Add a broadcast destination.
  destination (dest) delete (rm)
                                   Remove a broadcast destination.
  destination (dest) attach (set)
                                   Attach a destination to a stage.
  destination (dest) detach (unset)
                                   Detach a destination from a stage.

Run "dazzle <command> --help" for more information on a command.
ステージのサブコマンド
Usage: dazzle stage (s) <command> [flags]

Manage stages — create, sync content, screenshot, stream.

Flags:
  -h, --help              Show context-sensitive help.
  -j, --json              Output as JSON.
  -s, --stage=STRING      Stage name or ID ($DAZZLE_STAGE).
      --api-url=STRING    API URL ($DAZZLE_API_URL).

Commands:
  stage (s) list (ls)              List stages.
  stage (s) create (new)           Create a stage.
  stage (s) delete (rm)            Delete a stage.
  stage (s) up                     Activate a stage.
  stage (s) down                   Deactivate a stage.
  stage (s) status (st)            Show stage status.
  stage (s) stats                  Show live pipeline stats.
  stage (s) preview                Show the shareable preview URL for a running
                                   stage.
  stage (s) sync (sy)              Sync a local directory to the stage. This is
                                   the primary way to push content — use --watch
                                   for live development.
  stage (s) refresh (r)            Reload the stage entry point.
  stage (s) event (ev) emit (e)    Push a named event with JSON data to
                                   the running page — dispatched as a DOM
                                   CustomEvent. Use this to send real-time data
                                   from external processes (other agents, APIs,
                                   etc.) without re-syncing or reloading.
  stage (s) logs (l)               Retrieve stage console logs.
  stage (s) screenshot (ss)        Capture a screenshot of the stage.
  stage (s) info                   Get current stream title and category.
  stage (s) title                  Set the stream title (not supported for
                                   Restream).
  stage (s) category               Set the stream category or game (not
                                   supported for Restream).
  stage (s) chat send              Send a message to live chat (not supported
                                   for Restream).
stage sync のフラグ
Usage: dazzle stage (s) sync (sy) <dir> [flags]

Sync a local directory to the stage. This is the primary way to push content —
use --watch for live development.

Arguments:
  <dir>    Local directory to sync (must contain an index.html entry point).

Flags:
  -h, --help                  Show context-sensitive help.
  -j, --json                  Output as JSON.
  -s, --stage=STRING          Stage name or ID ($DAZZLE_STAGE).
      --api-url=STRING        API URL ($DAZZLE_API_URL).

  -w, --watch                 Watch for file changes and automatically re-sync.
      --entry="index.html"    HTML entry point file (default: index.html).
stage screenshot のフラグ
Usage: dazzle stage (s) screenshot (ss) [flags]

Capture a screenshot of the stage.

Flags:
  -h, --help              Show context-sensitive help.
  -j, --json              Output as JSON.
  -s, --stage=STRING      Stage name or ID ($DAZZLE_STAGE).
      --api-url=STRING    API URL ($DAZZLE_API_URL).

  -o, --out=STRING        Output file path (default: temp file).
stage event サブコマンド
Usage: dazzle stage (s) event (ev) <command>

Send real-time data to the running page without reloading. Events are dispatched
as DOM CustomEvents — use this for async updates from subagents, APIs, or other
processes.

Flags:
  -h, --help              Show context-sensitive help.
  -j, --json              Output as JSON.
  -s, --stage=STRING      Stage name or ID ($DAZZLE_STAGE).
      --api-url=STRING    API URL ($DAZZLE_API_URL).

Commands:
  stage (s) event (ev) emit (e)    Push a named event with JSON data to
                                   the running page — dispatched as a DOM
                                   CustomEvent. Use this to send real-time data
                                   from external processes (other agents, APIs,
                                   etc.) without re-syncing or reloading.
宛先のサブコマンド
Usage: dazzle destination (dest) <command> [flags]

Manage broadcast destinations (Twitch, YouTube, etc).

Flags:
  -h, --help              Show context-sensitive help.
  -j, --json              Output as JSON.
  -s, --stage=STRING      Stage name or ID ($DAZZLE_STAGE).
      --api-url=STRING    API URL ($DAZZLE_API_URL).

Commands:
  destination (dest) list (ls)    List broadcast destinations.
  destination (dest) add (create,new)
                                  Add a broadcast destination.
  destination (dest) delete (rm)
                                  Remove a broadcast destination.
  destination (dest) attach (set)
                                  Attach a destination to a stage.
  destination (dest) detach (unset)
                                  Detach a destination from a stage.

ステージの解決

ステージを指定するコマンドでは、次の順序でステージが解決されます。

  1. -s / --stage フラグまたは DAZZLE_STAGE 環境変数
  2. ステージが1つだけの場合は自動選択
dazzle stage sync ./app --stage my-stage   # explicit
export DAZZLE_STAGE=my-stage               # or set for your session

設定

環境変数(設定ファイルおよび保存済み認証情報より優先されます):

変数用途デフォルト
DAZZLE_API_KEYAPI キー — CI、スクリプト、一度限りのコマンドで dazzle login を省略します保存済み認証情報
DAZZLE_API_URLAPI ベース URLhttps://dazzle.fm
DAZZLE_STAGEステージ名または IDステージが1つだけの場合は自動選択

設定ファイル(~/.config/dazzle/、権限 0600):

config.json        # { "api_url": "..." }
credentials.json   # { "api_key": "dzl_...", "email": "..." }

セキュリティ

  • API キーは 0600 の権限で ~/.config/dazzle/credentials.json に保存されます
  • HTTPS 経由でのみ Bearer トークンとして送信されます
  • ログに記録されず、エコーされず、第三者に送信されることもありません
  • テレメトリーなし — 使用状況データ、クラッシュレポート、分析データはありません
  • すべてのソースコードはオープンソースで、監査可能です

ライセンス

Apache 2.0 — LICENSE を参照

コメント

MCP は初めてですか?

プロトコルの概要から最初のサーバーの導入まで、よくある疑問にまとめて答えます。

AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。