@xbrowser/cli 1.23.0 → 1.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -474,6 +474,19 @@ project > browser > page > element
474
474
  Error: 需要活跃的页面,请先执行 xbrowser goto <url>
475
475
  ```
476
476
 
477
+ ## MCP Server(AI Agent 接入)
478
+
479
+ xbrowser 内置 Model Context Protocol 服务器——让 Claude Desktop / Cursor / 任何 MCP 客户端直接使用浏览器能力:
480
+
481
+ ```bash
482
+ # 注册到 Claude Code
483
+ claude mcp add xbrowser -- xbrowser mcp
484
+
485
+ # 或手动配置(stdio):command: xbrowser, args: ["mcp"]
486
+ ```
487
+
488
+ 7 个工具:`browser_navigate` / `browser_act` / `browser_read` / `browser_snapshot`(accessibility tree,token 友好)/ `browser_screenshot` / `browser_network` / `browser_replay`(自愈回放)。协议冒烟:`node scripts/mcp-smoke.mjs`。
489
+
477
490
  ## 插件系统
478
491
 
479
492
  ### 插件加载顺序