-
mcp for CLI 3.0 (#5194)
发布于
2026-07-11 18:34:14 +00:00 Summary by cubic
Adds a stdio MCP server for CLI 3.0 behind
--cli-mcp, exposing
persistentbrowser_harnessexecution and screenshots to MCP clients.
Uses a shared, silent stdio runner and validatesmax_diminputs.-
New Features
-
New
--cli-mcpflag startsbrowser_use.mcp.cli_mcpvia a shared
stdio runner (mcp.server.stdio).- Tools:
-
browser_exec: run Python in a persistent namespace with helpers
pre-imported. -
browser_screenshot: returns base64 PNG; supportsfull;max_dim
must be a positive integer. -
Automatically calls
ensure_daemon(except for remote admin calls).
Disables logging to keep stdio clean. -
Migration
-
Run:
browser-use --cli-mcp. SetsBH_CLIENT=browser-use-mcpby
default. -
Connect your MCP client over stdio. Prefer
browser_screenshotover
in-code captures.
Written for commit
133761dbbd.
Summary will update on new commits.下载附件
-