dazzle
dazzle
Dazzle 的官方 CLI 和 MCP 服务器 — 为 AI 智能体和直播提供云端舞台。
一个二进制文件,两种接口:
CLI — 为编码智能体(Claude Code、Cursor、终端)和自动化提供完整的 shell 访问权限
MCP 服务器 (
dazzle mcp) — 为沙盒客户端(Claude Desktop、VS Code、任何 MCP 主机)提供 stdio 集成
安装
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)与 CLI 进程之间的鸿沟,因为智能体的 bash 在隔离容器中运行,无法与 CLI 进程共享文件。
工作流: write_file → edit_file (迭代) → sync → screenshot (验证)
限制: 无 shell/exec — 无法在工作区中运行构建工具(npm、tailwind 等)。内容必须是预构建的 HTML/CSS/JS。拥有完整文件系统和 shell 访问权限的智能体(例如 Claude Code)应直接使用 dazzle stage sync 以获得完整体验。
MCP 资源
URI | 描述 |
| 完整的 Dazzle 参考指南 — 入门、CLI 帮助和内容创作指南。 |
| Dazzle 快速入门指南 — 平台概览、设置、CLI 基础知识和文档链接。 |
CLI 与 MCP — 该使用哪一个?
CLI | MCP | |
最佳用途 | 编码智能体、终端、CI/CD | Claude Desktop、VS Code、沙盒客户端 |
文件系统 | 完全访问 — 可写入任何位置,可运行构建工具 | 仅限工作区 ( |
Shell | 是 — npm、tailwind、任何工具链 | 否 — 仅限预构建内容 |
内容同步 |
|
|
截图 |
|
|
认证 |
| 通过 MCP 使用 |
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 密钥 — 用于 CI、脚本、一次性命令,跳过 | 存储的凭据 |
| API 基础 URL |
|
| 舞台名称或 ID | 如果只有一个则自动选择 |
配置文件 (~/.config/dazzle/, 0600 权限):
config.json # { "api_url": "..." }
credentials.json # { "api_key": "dzl_...", "email": "..." }安全性
API 密钥存储在
~/.config/dazzle/credentials.json中,权限为0600仅通过 HTTPS 以
Bearer令牌形式传输从不记录、从不回显、从不发送给第三方
无遥测 — 无使用数据、崩溃报告或分析
所有源代码均为开源且可审计
许可证
Apache 2.0 — 参见 LICENSE
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
- sleipnirOAuthtv.sleipnir
Multistream to Twitch, YouTube and Kick; generate OBS overlays from a plain-English prompt.
- openhelmOAuthai.openhelm
Autonomous cloud agent tasks: real browser + your tools, structured evidence-backed results.
Hosted browser for AI agents: screenshots, post-JS DOM, console, WCAG. No install, no API key.
Clip Twitch, YouTube and Kick VODs, rank moments by viral score and schedule posts.
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.1540Apache 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 support7999MIT
- FlicenseAqualityDmaintenanceEnables AI agents to control a neko virtual browser via WebSocket and REST APIs, while allowing live viewing through a WebRTC stream.13-

HumanBrowserofficial
AlicenseNot gradedqualityCmaintenanceCloud Chromium for AI agents — stealth, residential proxies, captcha solving, A2A 1.0 endpoint. The MCP server lets Claude Desktop, Cursor, and Cline drive a real browser via three tools (humanbrowser_run, humanbrowser_stream, humanbrowser_viewer_url).21Apache 2.0
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dazzle-labs/cli'
If you have feedback or need assistance with the MCP directory API, please join our Discord server