brawsr

io.github.brawsr由 GitHub 账号 brawsr 发布v0.2.0更新于 Oct 24, 2026

Browser sessions, checkpoints, rewind, fork, lineage, and lifecycle tools for brawsr.

已验证STDIO仅桌面浏览器自动化开发者工具

概览

AI 生成的概览

面向 brawsr 浏览器会话的本地 MCP 桥接,让助手创建、检查点、回退和分叉会话并查看其谱系。

可以做什么
创建、列出、查看、标记和关闭浏览器会话,包括批量关闭及在可连接时获取 CDP URL。创建、获取、列出和删除检查点,并列出可回退的检查点。回退会话,或将其分叉为独立的子会话。查看会话活动、谱系和分叉树。查询或等待长时间运行的操作。
适用场景
当你使用 brawsr 浏览器会话,并希望助手管理其生命周期、创建检查点、回滚到先前状态或分叉会话以并行探索时适用。
运行要求
以 npm 包形式通过 stdio 在本地运行,需要 Node.js 22 或更高版本。必须通过 BRAWSR_API_KEY 环境变量提供 brawsr API 密钥。可选的 BRAWSR_BASE_URL 可覆盖内置生产端点,BRAWSR_MCP_TIMEOUT_MS 可设置默认操作等待时间。需要访问 brawsr API 的网络连接。
安装前请注意
该服务器需要 BRAWSR_API_KEY 密钥并与 brawsr API 通信。工具会写入和删除数据:可关闭会话、修改标签、删除检查点,回退或分叉会改变浏览器状态。回退不会撤销远端网站上的副作用,并使旧的 CDP 句柄失效。CDP URL 属于敏感输出;服务器不代理 CDP,也从不返回 Authorization 头。

安装

在 SourceWeft 中

  1. 打开 控制台中的 brawsr,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

brawsr MCP server

The authenticated local MCP bridge for brawsr browser sessions, checkpoints, rewind, and fork. It uses the official packaged @brawsr/sdk; it does not duplicate API models, poll orchestration, or browser/CDP behavior.

The v0.2 transport is local stdio and requires Node.js 22+.

Install and configure

MCP clients spawn the server locally. Pin the package version in client configuration so an MCP client restart cannot silently select a newer release:

json
{  "mcpServers": {    "brawsr": {      "command": "npx",      "args": ["-y", "@brawsr/[email protected]"],      "env": {        "BRAWSR_API_KEY": "your-brawsr-api-key"      }    }  }}

The npm package includes the official @brawsr/sdk; no second package install is required. BRAWSR_API_KEY is the only required environment variable. The production endpoint https://api.brawsr.io is built in.

For local development or another deployment, BRAWSR_BASE_URL may explicitly override that endpoint. BRAWSR_MCP_TIMEOUT_MS optionally changes the default bounded operation wait from 30 seconds and accepts an integer from 1 through 300000.

The API key is never a tool argument or result. Standard output is reserved for MCP protocol messages. Redacted lifecycle diagnostics use standard error. A direct shell launch uses the same executable:

bash
BRAWSR_API_KEY=... npx -y @brawsr/[email protected]

Tools

  • brawsr_create_session, brawsr_list_sessions, brawsr_get_session, brawsr_update_session_label, brawsr_close_session
  • brawsr_close_sessions
  • brawsr_create_checkpoint, brawsr_get_checkpoint, brawsr_list_checkpoints, brawsr_delete_checkpoint
  • brawsr_list_rewindable_checkpoints, brawsr_list_session_activity, brawsr_get_session_lineage
  • brawsr_rewind, brawsr_fork
  • brawsr_get_operation, brawsr_wait_operation

Session creation accepts an optional display_label. The same label can be changed or cleared with one brawsr_update_session_label call. Session lists are newest-first, bounded, and may include retained closed or expired sessions. brawsr_get_session includes a CDP URL only while the session is attachable.

brawsr_list_checkpoints is capture history: it can include deleted captures for audit and dashboard views. Use brawsr_list_rewindable_checkpoints when choosing a valid rewind or fork target. Lineage returns one session, its optional parent fork edge, and one bounded page of direct children; callers can follow child session IDs to browse a nested fork tree. Pagination cursors are opaque and may be passed back unchanged.

Checkpoint, rewind, and fork are one high-level tool call. The packaged SDK hides ordinary 202 polling. Rewind returns as soon as its result is CDP-usable; the operation may finish bounded post-restore work in the background. A timeout stops only local waiting and returns the operation/idempotency recovery fields; server work continues.

Fork children are independent peer sessions, not implicit winners or losers. There is no browser-state merge and no automatic sibling cleanup. Rewind restores browser/client state, not remote website side effects, and makes old CDP/browser handles stale. Long-lived WSS/SSE/WebRTC streams may need application-level reconnection.

CDP URLs are sensitive structured outputs. The MCP server never returns the Authorization header. Use the ordinary SDK or a supported framework to attach; the MCP server does not proxy CDP.

Remote Streamable HTTP, OAuth, hosted multi-tenancy, legacy HTTP+SSE, and resumable MCP sessions are deferred beyond the local v0.2 stdio boundary.

Development

bash
npm cinpm run verify

Release archives are built reproducibly with the pinned Node 24 and npm 11.5.1 toolchain. CI also exercises the server and its real MCP client boundary on Node 22 and Node 24. npm hosts the executable package; the official MCP Registry hosts discovery metadata for io.github.brawsr/brawsr.

来源:README.md,提交 c6aa3a6

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分