Bruster

io.github.aliilyas由 GitHub 帳號 aliilyas 發布v0.3.2更新於 Oct 29, 2026

Native-webview browser automation: navigate, fill forms, inspect pages, and capture screenshots.

已驗證STDIO僅桌面瀏覽器自動化開發者工具

概覽

AI 產生的概覽

Bruster 是本地 MCP 伺服器,透過驅動原生 webview 讓助理瀏覽頁面、填寫表單、檢視 DOM 並擷取螢幕截圖。

可以做什麼
  • 瀏覽頁面,管理分頁與持續性工作階段
  • 檢視 DOM 並以文字形式取得頁面快照
  • 填寫表單並點擊頁面元素
  • 擷取螢幕截圖並存成檔案
  • 以內建執行器執行 .bru UI 測試並產生 JSON 報告
適用情境
適合代理驅動的網頁操作、針對本機或測試環境的冒煙測試與可重複的 UI 檢查,尤其當你希望使用原生 webview 而非內建的 Chromium,且不想安裝 Node.js 時。
執行需求
以本機程序形式執行於 macOS、Linux 或 Windows,需要桌面顯示環境;Linux 需 WebKitGTK 4.1,無顯示時還需 xvfb 與 xauth;Windows 需 WebView2 執行階段。可透過安裝腳本、發行壓縮檔或 Docker 映像檔安裝,映像檔以 stdio 啟動伺服器。未宣告任何環境變數或憑證。
安裝前請注意
它會操作真實的瀏覽器工作階段:填寫表單與點擊可能送出資料或在正式網站上觸發動作。儲存的 profile 會把 cookie 與儲存空間寫入磁碟。輸入事件為合成事件,不支援跨來源 iframe 與作業系統層級的控制項。較舊的發行版本可能尚未包含 .bru 測試執行器。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Bruster,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[bruster]

[CI] [Dependency audit] [Cargo deny] [OSV-Scanner] [Trivy] [Release] [Docker Hub] [MIT License] [macOS] [Linux] [Windows] [Documentation]

Bruster is an open-source Rust browser automation tool and Model Context Protocol (MCP) server. Control native webviews from AI agents, Python scripts, or your own test runner through MCP or a JSON-lines API. No Node.js required.

Documentation · UI testing · MCP setup · Compare with Playwright · Benchmarks · Releases

Navigate pages, inspect the DOM, fill forms, take screenshots, and manage tabs and persistent sessions on macOS (WKWebView), Linux (WebKitGTK), and Windows (WebView2). Bruster fits native-webview scripts, focused smoke tests, and agent-driven workflows. Run .bru tests with the built-in runner or use your own.

For AI tools: documentation index · full CLI and API reference.

Demo

[Bruster filling a form and taking a screenshot through MCP]

Scripted MCP session with real WebKitGTK captures. Try the demo.

Install

On macOS and Linux:

sh
curl -fsSL https://raw.githubusercontent.com/aliilyas/bruster/main/install.sh | shexport PATH="$HOME/.local/bin:$PATH"

Linux also needs WebKitGTK 4.1. On Ubuntu or Debian:

sh
sudo apt install libwebkit2gtk-4.1-0

Without a desktop display, also install xvfb and xauth. Other Linux distributions.

On Windows, download an archive from Releases and install the WebView2 runtime.

Docker Hub

The Docker image includes the Linux browser runtime and virtual display for amd64 and arm64:

sh
docker run --rm -i ilyastmn/bruster:latest

Starts an MCP server over stdio. Docker client setup.

MCP

Add this server to Claude Desktop's claude_desktop_config.json or Cursor's .cursor/mcp.json:

json
{  "mcpServers": {    "bruster": {      "command": "bruster",      "args": ["--mcp", "--quiet"]    }  }}

Use the executable's absolute path if your client cannot find bruster. Add --visible to watch the browser or --profile ./profile to save cookies and storage.

Setup for other clients and troubleshooting.

JSON lines

Run bruster, then send requests on stdin, waiting for each response before the next request:

json
{"id":1,"method":"navigate","params":{"url":"https://example.com"}}{"id":2,"method":"snapshot","params":{"format":"text"}}{"id":3,"method":"screenshot","params":{"path":"example.png"}}{"id":4,"method":"close"}

Responses carry the matching id; page events also arrive on stdout. Protocol and API reference.

UI tests with the .bru DSL

Bruster includes a compact, line-oriented DSL for repeatable UI checks. It handles browser startup, waits, assertions, and failure evidence so you can focus on the flow being tested. Write a login.bru file:

text
base_url "http://localhost:3000"
test "opens the dashboard"  navigate "/login"  fill "#email" "[email protected]"  fill "#password" "test-password"  click "button[type=submit]"  expect url "/dashboard"  expect text "h1" "Dashboard"end

Run bruster test login.bru. Assertions retry until their deadline; each test gets a fresh browser and profile. Failures include source lines, screenshots, and page diagnostics. The runner writes a JSON report and returns a nonzero exit code on failure. No Node.js or Python is needed to run tests.

Use before_each for shared setup and --base-url to run the same tests against another environment. The time savings are in authoring and debugging tests.

The runner is available in source builds from main; older release binaries may not include bruster test yet.

UI testing guide · Beginner course: 20 lessons · DSL reference · Runnable local example · Website and demo example tests · Web automation testing tutorial

Limitations

Bruster uses WKWebView on macOS, WebKitGTK on Linux, and WebView2 on Windows. Input events are synthetic; cross-origin iframes and OS-level controls aren't supported. See the full limitations when choosing a browser backend.

Development

Build with cargo build --release --locked. See Contributing for dependencies, tests, and documentation changes.

Dependency security checks: daily RustSec, cargo-deny, OSV-Scanner, and Trivy scans, plus Dependabot and Socket setup.

License

MIT

來源:README.md,提交 681f63e

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.3.2最新Oct 29, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分