pentagi icon indicating copy to clipboard operation
pentagi copied to clipboard

docs: add BrowserOS MCP browser backend RFC

Open mason5052 opened this issue 5 months ago • 0 comments

Summary

Add examples/proposals/browseros_mcp_browser_backend.md, a docs-only RFC for a future optional BrowserOS MCP browser backend for PentAGI agents. The RFC keeps the existing scraper backend as the default and frames BrowserOS MCP as disabled-by-default design work for maintainer review before any runtime implementation.

Problem

Issue #342 asks for BrowserOS MCP support because the current backend/pkg/tools/browser.go browser tool is scraper-style: it fetches markdown, HTML, links, and screenshots through configured scraper URLs, but it does not provide a stateful browser session for click/type/navigation/login-page interaction. That feature is large enough to need design agreement first, especially because BrowserOS MCP can expose browser state, cookies, history, bookmarks, and app integrations if it is not scoped carefully.

Solution

Add a focused RFC under examples/proposals/ that:

  • Builds on the existing mcp_client_integration.md direction instead of defining a separate MCP stack.
  • Proposes BrowserOS MCP as an optional browser backend, disabled by default, with scraper remaining the default behavior.
  • Defines a narrow browser-tool surface for future navigation, observation, screenshot, click, fill/type, wait, and submit-style workflows.
  • Explicitly excludes runtime code, BrowserOS client code, schema changes, DB migrations, frontend UI, Docker Compose changes, .env.example changes, generated files, and new env vars.
  • Calls out target allowlists, SSRF protection, DNS/private-network checks, cross-flow session isolation, cookie/session leakage, operator approval for sensitive actions, redaction, and explicit host reachability instead of assuming host.docker.internal.
  • Requires interactive actions such as navigation, click, fill/type, submit, dialog handling, and file upload to be visible in logs with flow/task/subtask context.

User Impact

  • Gives maintainers a concrete design artifact to review before BrowserOS MCP runtime work lands.
  • Clarifies how BrowserOS could improve JavaScript-heavy and interactive browsing without changing today's scraper behavior.
  • No runtime impact. This is documentation only.

Test Plan

  • [x] git diff --check clean.
  • [x] git diff --name-only upstream/main...HEAD shows only examples/proposals/browseros_mcp_browser_backend.md.
  • [x] git status --short clean after commit.
  • [x] Confirmed default branch is still main.
  • [x] Confirmed Issue #342 is still open.
  • [x] Confirmed no open PR currently covers BrowserOS MCP browser backend design.
  • [x] Verified diff is docs-only: no code, schema, generated, config, Docker Compose, frontend, or .env.example changes.

Refs #342

mason5052 avatar Jun 10 '26 00:06 mason5052