MO

mobidev-org/treegress-browser-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

42 stars 1 forks 质量 81 趋势 4Apache-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 浏览器 MCP 是 Playwright MCP 的一个由 Treegress 维护的分支。它为 MCP 客户端提供浏览器自动化工具,同时将快照和定位器核心委托给 Treegress Playwright 分支。

该仓库是已发布包@treegress.com/treegress-browser-mcp的源代码。

为什么特里格雷斯延长剧作家MCP

AI代理需要访问他们正在测试的实际页面结构。

标准的Playwright MCP流程会从无障碍树中导出ARIA快照。在真实测试流程中,而不仅仅是简单的演示,当可交互元素在无障碍层中表现不佳时,可能会使部分界面不在模型视图之外。即使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
新手?先看 mcpskill.org 教程 →

配置

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