MO

mobidev-org/treegress-browser-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

42 stars 1 forks Качество 81 Тренд 4Apache-2.0

mobidev-org/treegress-browser-mcp - кандидат на сервер MCP, импортированный из https://github.com/mobidev-org/treegress-browser-mcp.

Обзор

mobidev-org/treegress-browser-mcp - кандидат на сервер MCP, импортированный из https://github.com/mobidev-org/treegress-browser-mcp.

Обзор (машинный перевод)

Treegress Browser MCP - это поддерживаемая Treegress вилка Playwright MCP. Он предоставляет инструменты автоматизации браузера для клиентов MCP, делегируя ядро снимка и локатора вилке Treegress Playwright.

Это хранилище является источником для опубликованного пакета @treegress.com/treegress-browser-mcp.

Почему Treegress расширяет MCP драматурга

Агентам ИИ нужен доступ к фактической структуре страницы, которую они тестируют.

Стандартные потоки MCP Playwright обнажают снимок ARIA, полученный из дерева доступности. В реальных тест-потоках, а не просто в демоверсиях, это может оставить часть пользовательского интерфейса вне поля зрения модели, когда взаимодействующие элементы плохо представлены в уровне доступности. Даже когда элемент возвращается с помощью снимка ARIA, информация об этом элементе может быть слишком абстрактной для агента, чтобы правильно понять, как взаимодействовать с веб-сайтом и реализовать сценарий.

Treegress расширяет этот поток:

Сериализация полного дерева DOM

  • извлечение полного набора взаимодействующих элементов
  • обогащение информации об элементах

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

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
Открыть полный README на GitHub

Установка

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" ] } } }