dazzle
dazzle
Официальный CLI и MCP-сервер для Dazzle — облачных сцен для ИИ-агентов и прямых трансляций.
Один бинарный файл, два интерфейса:
CLI — полный доступ к оболочке для агентов-кодировщиков (Claude Code, Cursor, терминалы) и автоматизации
MCP-сервер (
dazzle mcp) — интеграция через stdio для изолированных клиентов (Claude Desktop, VS Code, любой MCP-хост)
Установка
macOS / Linux
curl -sSL https://dazzle.fm/install.sh | shWindows (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) доступны на странице релизов.
Related MCP server: browser-gateway
Быстрый старт (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
Инструмент | Описание |
| Запуск команды dazzle CLI. Используйте ["--help"] для просмотра доступных команд. Вывод в формате JSON. |
| Редактирование файла в рабочей области сцены путем точной замены строки. old_string должен ровно один раз встретиться в файле. Сначала используйте read_file, чтобы увидеть текущее содержимое. |
| Получение полного справочника Dazzle — начало работы, команды CLI, возможности контента и настройка стриминга. Прочитайте это перед созданием или изменением контента сцены. |
| Список всех файлов в рабочей области сцены (~/.dazzle/stages/{stage}/). Возвращает относительные пути, по одному в строке. |
| Чтение файла из рабочей области сцены (~/.dazzle/stages/{stage}/{path}). |
| Создание снимка текущего вывода браузера сцены. Возвращает PNG-изображение. |
| Синхронизация рабочей области сцены (~/.dazzle/stages/{stage}/) с активной сценой. Запустите это после записи файлов, чтобы отправить контент. Эквивалентно 'dazzle stage sync {workspace-dir}'. |
| Запись файла в рабочую область сцены (~/.dazzle/stages/{stage}/{path}). Создает родительские директории по мере необходимости. Используйте это для создания контента, который затем можно синхронизировать со сценой. |
Инструменты рабочей области
Инструменты рабочей области (write_file, read_file, edit_file, list_files, sync) хранят файлы в ~/.dazzle/stages/{stage-id}/ на хостовой файловой системе. Это связывает изолированные среды (например, Claude Desktop), где bash агента работает в изолированном контейнере и не может обмениваться файлами с процессом CLI.
Рабочий процесс: write_file → edit_file (итерация) → sync → screenshot (проверка)
Ограничения: Нет оболочки/exec — нельзя запускать инструменты сборки (npm, tailwind и т.д.) в рабочей области. Контент должен быть предварительно собранным HTML/CSS/JS. Агенты с полным доступом к файловой системе и оболочке (например, Claude Code) должны использовать dazzle stage sync напрямую для полноценной работы.
Ресурсы MCP
URI | Описание |
| Полный справочник Dazzle — начало работы, помощь по CLI и руководство по созданию контента. |
| Краткое руководство Dazzle — обзор платформы, настройка, основы CLI и ссылки на документацию. |
CLI против MCP — что использовать?
CLI | MCP | |
Лучше всего для | Агентов-кодировщиков, терминалов, CI/CD | Claude Desktop, VS Code, изолированных клиентов |
Файловая система | Полный доступ — запись везде, запуск инструментов сборки | Только рабочая область ( |
Оболочка | Да — npm, tailwind, любой инструментарий | Нет — только предварительно собранный контент |
Синхронизация контента |
|
|
Скриншот |
| Инструмент |
Авторизация |
|
|
Справочник 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.Разрешение сцены
Для команд, ограниченных сценой, сцена определяется в следующем порядке:
Флаг
-s/--stageили переменная окруженияDAZZLE_STAGEАвтовыбор, если у вас ровно одна сцена
dazzle stage sync ./app --stage my-stage # explicit
export DAZZLE_STAGE=my-stage # or set for your sessionКонфигурация
Переменные окружения (переопределяют файлы конфигурации и сохраненные учетные данные):
Переменная | Назначение | По умолчанию |
| API-ключ — пропуск | сохраненные учетные данные |
| Базовый URL API |
|
| Имя или ID сцены | автовыбор, если только одна |
Файлы конфигурации (~/.config/dazzle/, права доступа 0600):
config.json # { "api_url": "..." }
credentials.json # { "api_key": "dzl_...", "email": "..." }Безопасность
API-ключ хранится в
~/.config/dazzle/credentials.jsonс правами доступа0600Передается только как
Bearer-токен по HTTPSНикогда не логируется, никогда не выводится в консоль, никогда не отправляется третьим лицам
Нет телеметрии — никаких данных об использовании, отчетов о сбоях или аналитики
Весь исходный код открыт и доступен для аудита
Лицензия
Apache 2.0 — см. LICENSE
This server cannot be deployed
Maintenance
Related MCP Connectors
- TabfleetOAuthcom.tabfleet
Launch, inspect, control, and share isolated cloud browsers for your agents.
Cloud browsers for AI agents: get past bot detection, sign in with MFA, run web tasks at scale.
Cloud browsers for AI agents: saved logins, residential IPs, live human takeover, 57 browser tools.
Manage 24/7 live streams, media, playback queues, schedules, and multistreaming from AI assistants.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceRemote browser instances for your AI agents. Reliably complete any browser-based task at scale. Fully-control agentic browsers that spin up in seconds.24 npm42Apache 2.0
- AlicenseNot gradedqualityAmaintenanceReliable, scalable browser infrastructure for AI agents. Route, pool, and failover across any browser provider. 8 built-in browser tools using raw Chrome CDP - navigate, screenshot, snapshot, interact, evaluate. Zero-config with auto Chrome detection & concurrent sessions support378 npm19MIT
- AlicenseNot gradedqualityBmaintenanceProvides AI agents with isolated virtual desktops containing a real Chromium browser, enabling them to see, click, type, and navigate like a human, with features like snapshots and remote control.25AGPL 3.0
- AlicenseNot gradedqualityBmaintenanceCloud browser API with anti-detect engine + AI behavior layer. Session-based undetectable browsers for AI agents and developers.MIT