MO

mobidev-org/treegress-browser-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

42 stars 1 forks 品質 81 トレンド 16Apache-2.0

mobidev-org/treegress-browser-mcp は [https://github.com/mobidev-org/treegress-browser-mcp. からインポートされた MCP サーバーの候補です

概要

mobidev-org/treegress-browser-mcp は [https://github.com/mobidev-org/treegress-browser-mcp. からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

Treegress Browser MCP は Playwright MCP の Treegress-maintained フォークです。 スナップショットとロケータコアをツリーグレグレーションしながら、MCP クライアント用のブラウザの自動化ツールを公開します。

このリポジトリは、公開されたパッケージ[@treegress.com/treegress-browser-mcpのソースです。

#ツリーグレインがPlaywright MCPを拡張する理由

AIエージェントは、テストしている実際のページ構造にアクセスする必要があります。

標準の Playwright MCP は、アクセシビリティツリーから派生する ARIA のスナップショットを公開します。 実際のテストフローでは、単純なデモではなく、対話可能な要素がアクセシビリティレイヤーで表わされていない場合、モデルのビューの外側にUIの一部を残すことができます。 要素がARIAのスナップショットによって返される場合でも、その要素に関する情報は、エージェントがウェブサイトとやり取りする方法を適切に理解し、シナリオを実装することができます。

Treegress は、次のフローを拡張します。

  • 完全な DOM ツリーをシリアライズする
  • 相互作用可能な要素の完全なセットを抽出する
  • 要素に関する情報を豊かにする

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Treegress Browser MCP

Treegress Browser MCP is a Treegress-maintained fork of Playwright MCP. It exposes browser automation tools for MCP clients while delegating the snapshot and locator core to the Treegress Playwright fork.

This repository is the source for the published package @treegress.com/treegress-browser-mcp.

Why Treegress Extends Playwright MCP

AI agents need access to the actual page structure they are testing.

Standard Playwright MCP flows expose an ARIA snapshot derived from the accessibility tree. In real test flows, not just simple demos, this can leave part of the UI outside the model’s view when interactable elements are poorly represented in the accessibility layer. Even when an element is returned by an ARIA snapshot, the information about that element can be too abstract for an agent to properly understand how to interact with the website and implement the scenario.

Treegress extends this flow by:

  • serializing the full DOM tree
  • extracting the full set of interactable elements
  • enriching the information about the elements
  • assigning a refId to each element so downstream tools such as browser_click, browser_fill_form, and similar operations can target it reliably.

This gives the agent a structurally complete representation of the page instead of a partial accessibility-based abstraction. In practice, that improves element coverage and enables broader, more reliable test scenarios.

If you want to better understand the problem and technical details, you can check Riding Blind: The Hidden Blind Spot in Playwright MCP.

Here you can find a video comparing Playwright MCP and Treegress MCP on a complex real-world page: Playwright MCP vs Treegress MCP.

In the video, you can see the differences in the number of tests produced by each MCP on the same page, differences in test exploration costs, and how Treegress MCP can find and interact with elements that are missing from the Playwright MCP snapshot.

If you want to see what Treegress is building in the area of automated testing, visit treegress.com.

What This Fork Adds

  • MCP browser tools backed by Treegress custom DOM snapshots
  • A thin adapter layer over the Treegress Playwright fork instead of a second standalone DOM engine
GitHub で README 全文を見る

インストール

npx --yes [email protected]/treegress-browser-mcp@latest treegress-browser-mcp --snapshot-engine dom
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "treegress-browser": { "type": "stdio", "command": "npx", "args": [ "--yes", "[email protected]/treegress-browser-mcp@latest", "treegress-browser-mcp", "--snapshot-engine", "dom" ] } } }